2023-09-20 12:05:08 +08:00
|
|
|
|
server.port=5567
|
2023-01-06 15:17:37 +08:00
|
|
|
|
|
|
|
|
|
|
#datasource
|
2024-05-17 11:40:38 +08:00
|
|
|
|
spring.datasource.primary.driver-class-name=com.mysql.cj.jdbc.Driver
|
|
|
|
|
|
spring.datasource.primary.jdbcUrl=jdbc:mysql://18.167.251.121:3306/aida?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
|
|
|
|
|
|
spring.datasource.primary.username=root
|
|
|
|
|
|
spring.datasource.primary.password=QWa998345
|
|
|
|
|
|
|
|
|
|
|
|
spring.datasource.secondary.driver-class-name=com.mysql.cj.jdbc.Driver
|
2025-11-21 16:49:07 +08:00
|
|
|
|
spring.datasource.secondary.jdbcUrl=jdbc:mysql://18.167.251.121:33008/attribute_retrieval_style?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
|
2024-05-17 11:40:38 +08:00
|
|
|
|
spring.datasource.secondary.username=aida_con
|
|
|
|
|
|
spring.datasource.secondary.password=123456
|
2023-01-06 15:17:37 +08:00
|
|
|
|
|
|
|
|
|
|
#security
|
|
|
|
|
|
spring.security.jwtSecret=JWTSECRET
|
|
|
|
|
|
spring.security.jwtTokenHeader=Authorization
|
|
|
|
|
|
spring.security.jwtTokenPrefix=Bearer-
|
|
|
|
|
|
## 24Сʱ
|
2025-02-17 17:14:30 +08:00
|
|
|
|
#spring.security.jwtExpiration=8640000000
|
|
|
|
|
|
spring.security.jwtExpiration=604800000
|
2023-01-06 15:17:37 +08:00
|
|
|
|
#spring security权限设置 认证了token还要认证权限 不然报错Full authentication is required to access this resource
|
|
|
|
|
|
spring.security.ignorePaths=/,/favicon.ico,/doc.html,/webjars/**,/swagger-resources,/v2/api-docs,\
|
2024-05-17 12:13:35 +08:00
|
|
|
|
/api/account/**,/api/element/**,/api/python/**,/api/design/**,/api/history/**,/api/library/**,/api/third/party/**,/api/generate/**,/api/workspace/**,/api/classification/**,\
|
2024-10-20 11:50:52 +08:00
|
|
|
|
/api/product/**,/api/ali-pay/**,/api/order-info/**,/api/paypal/**,/api/credits/**,/api/inquiry/**,/api/tasks/**,/api/python/prepareForSR,/api/alipay-hk/**,/api/portfolio/**,\
|
2026-01-21 10:35:22 +08:00
|
|
|
|
/api/stripe/**,/api/message/**,/api/tags/**,/notification/**,/api/affiliate/**,/api/project/**,/api/llm/**, /api/subscription_plan/**,/api/global-award/**
|
2023-01-06 15:17:37 +08:00
|
|
|
|
spring.security.authApi=/auth/login
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
rsa.private_key=MIIBUwIBADANBgkqhkiG9w0BAQEFAASCAT0wggE5AgEAAkEA0vfvyTdGJkdbHkB8mp0f3FE0GYP3AYPaJF7jUd1M0XxFSE2ceK3k2kw20YvQ09NJKk+OMjWQl9WitG9pB6tSCQIDAQABAkA2SimBrWC2/wvauBuYqjCFwLvYiRYqZKThUS3MZlebXJiLB+Ue/gUifAAKIg1avttUZsHBHrop4qfJCwAI0+YRAiEA+W3NK/RaXtnRqmoUUkb59zsZUBLpvZgQPfj1MhyHDz0CIQDYhsAhPJ3mgS64NbUZmGWuuNKp5coY2GIj/zYDMJp6vQIgUueLFXv/eZ1ekgz2Oi67MNCk5jeTF2BurZqNLR3MSmUCIFT3Q6uHMtsB9Eha4u7hS31tj1UWE+D+ADzp59MGnoftAiBeHT7gDMuqeJHPL4b+kC+gzV4FGTfhR9q3tTbklZkD2A==
|
|
|
|
|
|
|
|
|
|
|
|
#mybatis
|
|
|
|
|
|
mybatis-plus.global-config.banner=false
|
2024-05-17 12:13:35 +08:00
|
|
|
|
mybatis-plus.mapper-locations=classpath:mapper/*/*.xml
|
2023-09-20 12:05:08 +08:00
|
|
|
|
mybatis-plus.global-config.db-config.logic-delete-field=isDeleted
|
|
|
|
|
|
mybatis-plus.global-config.db-config.logic-delete-value=1
|
|
|
|
|
|
mybatis-plus.global-config.db-config.logic-not-delete-value=0
|
2023-01-06 15:17:37 +08:00
|
|
|
|
|
|
|
|
|
|
spring.mvc.pathmatch.matching-strategy=ant_path_matcher
|
|
|
|
|
|
|
|
|
|
|
|
file.mac.path=~/file/
|
|
|
|
|
|
file.linux.path=/workspace/home/aida/file/
|
|
|
|
|
|
#linux服务器域名(预览和下载用)
|
|
|
|
|
|
file.linuxDomain=https://www.aida.com.hk/download/
|
|
|
|
|
|
file.windows.path=D:\\upload\\
|
2024-01-27 16:32:18 +08:00
|
|
|
|
spring.servlet.multipart.max-file-size = 10MB
|
|
|
|
|
|
spring.servlet.multipart.max-request-size= 10MB
|
2023-01-06 15:17:37 +08:00
|
|
|
|
#访问python服务的ip(对应环境)
|
2023-12-22 12:09:00 +08:00
|
|
|
|
access.python.ip=http://18.167.251.121
|
2024-01-09 17:44:17 +08:00
|
|
|
|
access.python.port=9990
|
2024-07-09 11:07:01 +08:00
|
|
|
|
access.python.generate_sr_port=9990
|
|
|
|
|
|
access.python.address=http://18.167.251.121:9990
|
2023-09-20 12:05:08 +08:00
|
|
|
|
|
2025-05-07 22:04:10 +08:00
|
|
|
|
minio.endpoint=https://www.minio-api.aida.com.hk
|
2023-12-22 12:09:00 +08:00
|
|
|
|
minio.accessKey=admin
|
2024-07-09 10:13:32 +08:00
|
|
|
|
minio.secretKey=Aidlab123123!
|
2023-09-20 12:05:08 +08:00
|
|
|
|
minio.bucketName.clothing=aida-clothing
|
|
|
|
|
|
minio.bucketName.mannequins=aida-mannequins
|
|
|
|
|
|
minio.bucketName.results=aida-results
|
|
|
|
|
|
minio.bucketName.sysImage=aida-sys-image
|
2024-01-02 11:53:09 +08:00
|
|
|
|
minio.bucketName.users=aida-users
|
2024-01-06 20:08:19 +08:00
|
|
|
|
minio.bucketName.collectionElement=aida-collection-element
|
2024-05-28 11:17:46 +08:00
|
|
|
|
minio.bucketName.gradient=aida-gradient
|
2024-07-09 09:46:41 +08:00
|
|
|
|
minio.bucketName.modifiedSketch=aida-modified-sketch
|
|
|
|
|
|
minio.bucketName.slogan=aida-slogan
|
2025-02-25 13:03:52 +08:00
|
|
|
|
minio.bucketName.partialDesign=aida-partial-design
|
2024-01-18 09:56:50 +08:00
|
|
|
|
redirect_url=http://18.167.251.121:7788
|
2024-01-25 13:37:17 +08:00
|
|
|
|
|
|
|
|
|
|
spring.rabbitmq.host=18.167.251.121
|
|
|
|
|
|
spring.rabbitmq.port=5672
|
|
|
|
|
|
spring.rabbitmq.username=rabbit
|
|
|
|
|
|
spring.rabbitmq.password=123456
|
|
|
|
|
|
spring.rabbitmq.virtual-host=/
|
|
|
|
|
|
|
2025-12-19 21:21:21 +08:00
|
|
|
|
spring.data.redis.host=172.31.11.32
|
|
|
|
|
|
#spring.data.redis.host=18.167.251.121
|
|
|
|
|
|
spring.data.redis.port=6379
|
|
|
|
|
|
spring.data.redis.database=2
|
|
|
|
|
|
spring.data.redis.password=Aidlab
|
|
|
|
|
|
spring.data.redis.lettuce.pool.max-active=8
|
|
|
|
|
|
spring.data.redis.lettuce.pool.max-idle=8
|
|
|
|
|
|
spring.data.redis.lettuce.pool.min-idle=0
|
|
|
|
|
|
spring.data.redis.lettuce.pool.max-wait=5
|
2024-01-25 13:37:17 +08:00
|
|
|
|
|
2024-05-17 12:13:35 +08:00
|
|
|
|
redis.key.orderForGenerate=OrderForGenerate
|
|
|
|
|
|
redis.key.generateCancelSet=GenerateCancelSet
|
|
|
|
|
|
redis.key.generateExceptionMap=Generate:Exception
|
|
|
|
|
|
redis.key.resultMap=ResultMap
|
|
|
|
|
|
redis.key.orderForSR=OrderForSR
|
|
|
|
|
|
redis.key.SRCancelSet=SRCancelSet
|
|
|
|
|
|
redis.key.SRExceptionMap=SRExceptionMap
|
|
|
|
|
|
redis.key.taskList=TaskList
|
|
|
|
|
|
redis.key.credits.pre-deduction=Credits:PreDeduction
|
2024-07-09 09:46:41 +08:00
|
|
|
|
redis.key.generateResult=Generate:Result
|
|
|
|
|
|
redis.key.toProductImageResultKey=ToProductImage:Result
|
|
|
|
|
|
redis.key.relightResultKey=Relight:Result
|
2024-10-20 11:50:52 +08:00
|
|
|
|
redis.key.newPosted=LastViewNewPostedTime
|
|
|
|
|
|
redis.key.maximumUserId=CodeCreate:MaximumUserId
|
2024-07-09 09:46:41 +08:00
|
|
|
|
|
|
|
|
|
|
aws.s3.accessKeyId=AKIAVD3OJIMF6UJFLSHZ
|
|
|
|
|
|
aws.s3.secretKey=LNIwFFB27/QedtZ+Q/viVUoX9F5x1DbuM8N0DkD8
|
2024-09-27 15:33:20 +08:00
|
|
|
|
aws.s3.regionName=ap-east-1
|
|
|
|
|
|
|
|
|
|
|
|
# RabbitMQ Exchange and Queue configurations
|
2024-09-27 16:24:45 +08:00
|
|
|
|
rabbitmq.queues.generate=generate-queue-prod
|
|
|
|
|
|
rabbitmq.queues.sr=SR-queue-prod
|
|
|
|
|
|
rabbitmq.queues.srResult=SuperResolution-prod
|
|
|
|
|
|
rabbitmq.queues.generateResult=GenerateImage-prod
|
|
|
|
|
|
rabbitmq.queues.toProductImageResult=ToProductImage-prod
|
|
|
|
|
|
rabbitmq.queues.relightResult=Relight-prod
|
2025-03-20 17:42:16 +08:00
|
|
|
|
rabbitmq.queues.poseTransform=PoseTransform-prod
|
2024-12-19 13:56:17 +08:00
|
|
|
|
rabbitmq.exchange.generate=generate-exchange
|
2025-09-02 20:09:37 +08:00
|
|
|
|
rabbitmq.queues.designBatch=DesignBatch-dev
|
|
|
|
|
|
rabbitmq.queues.relightBatch=BatchRelight-dev
|
|
|
|
|
|
rabbitmq.queues.toProductImageBatch=BatchToProductImage-dev
|
|
|
|
|
|
rabbitmq.queues.poseTransformBatch=BatchPoseTransform-dev
|
|
|
|
|
|
rabbitmq.queues.emailRetry=emailRetry-business
|
|
|
|
|
|
# 死信队列配置
|
|
|
|
|
|
rabbitmq.dead-letter.exchange=dlx.email-retry
|
|
|
|
|
|
rabbitmq.dead-letter.queue=dlx.email-retry.queue
|
|
|
|
|
|
rabbitmq.dead-letter.routing-key=dlx.email-retry.key
|
2024-12-19 13:56:17 +08:00
|
|
|
|
|
2025-02-19 14:14:20 +08:00
|
|
|
|
orderList.link=https://aida.com.hk/home/homePage?order=
|
|
|
|
|
|
|
|
|
|
|
|
# 0 不发送邮件通知 1 发送邮件通知
|
2025-02-19 17:44:14 +08:00
|
|
|
|
stripe.webhook.fail.reminder=1
|
|
|
|
|
|
# kim live
|
2025-09-02 20:09:37 +08:00
|
|
|
|
stripe.paymentMethodConfiguration=pmc_1Qu6yJH7nPZ8bkrNULYnFFPf
|
|
|
|
|
|
# kim test
|
|
|
|
|
|
#stripe.paymentMethodConfiguration=pmc_1LywTWH7nPZ8bkrN6FvdCUWG
|
|
|
|
|
|
# developer test
|
|
|
|
|
|
#stripe.paymentMethodConfiguration=pmc_1QIKyq02n1TEydyNKVEYvhW7
|
|
|
|
|
|
#thymelea模板配置
|
|
|
|
|
|
#控制 Thymeleaf 是否启用模板缓存 生产环境用true,以提高性能
|
|
|
|
|
|
spring.thymeleaf.cache=false
|
|
|
|
|
|
|
|
|
|
|
|
#指定邮件服务器的地址。
|
|
|
|
|
|
spring.mail.host=mail.aida.com.hk
|
|
|
|
|
|
#指定邮件服务器的端口号。
|
|
|
|
|
|
spring.mail.port=465
|
|
|
|
|
|
#指定登录邮件服务器的用户名
|
|
|
|
|
|
spring.mail.username=info@aida.com.hk
|
|
|
|
|
|
#指定登录邮件服务器的密码 / 授权码
|
|
|
|
|
|
spring.mail.password=AIdlab@2025
|
|
|
|
|
|
spring.mail.default-encoding=UTF-8
|
|
|
|
|
|
|
|
|
|
|
|
# SSL 配置
|
|
|
|
|
|
#启用 SSL 加密
|
|
|
|
|
|
spring.mail.properties.mail.smtp.ssl.enable=true
|
|
|
|
|
|
#指定 SSL 连接的端口号。通常与 spring.mail.port 一致
|
|
|
|
|
|
spring.mail.properties.mail.smtp.socketFactory.port=465
|
|
|
|
|
|
|
|
|
|
|
|
ALIYUN_API_KEY=sk-dc3f88b7df844fc5a7d3616ebd8a589c
|
2025-10-02 09:37:21 +08:00
|
|
|
|
DOUBAO_API_KEY=853b3c55-f1dd-406e-a356-64123637f635
|
2025-09-03 18:15:23 +08:00
|
|
|
|
FREEPIK_API_KEY=FPSX94e5917d376a4facb87dabbaa0319c72
|
|
|
|
|
|
|
|
|
|
|
|
google.client.id=29310152396-nnsd3h533fld665oguu8ovrt1nukmt46.apps.googleusercontent.com
|
|
|
|
|
|
google.client.secret=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
|
2025-12-16 14:10:22 +08:00
|
|
|
|
google.redirect.uri=https://www.api.aida.com.hk/api/third/party/auth/google_callback
|
2026-01-20 15:58:27 +08:00
|
|
|
|
design.callback.url=https://api.aida.com.hk/api/third/party/receiveDesignResults
|
|
|
|
|
|
|
|
|
|
|
|
# ===== 分片上传配置 =====
|
|
|
|
|
|
|
|
|
|
|
|
# 临时文件目录
|
|
|
|
|
|
file.upload.temp.dir=temp/uploads
|
|
|
|
|
|
|
|
|
|
|
|
# 分片大小配置
|
|
|
|
|
|
# PDF分片大小:1MB
|
|
|
|
|
|
file.upload.chunk.size.pdf=1048576
|
|
|
|
|
|
# 视频分片大小:2MB
|
|
|
|
|
|
file.upload.chunk.size.video=2097152
|
|
|
|
|
|
|
|
|
|
|
|
# 文件大小限制
|
|
|
|
|
|
# PDF最大文件大小:20MB
|
|
|
|
|
|
file.upload.max.size.pdf=20971520
|
|
|
|
|
|
# 视频最大文件大小:100MB
|
|
|
|
|
|
file.upload.max.size.video=104857600
|
|
|
|
|
|
|
|
|
|
|
|
# 上传任务过期时间(小时)
|
|
|
|
|
|
file.upload.task.expiry.hours=24
|
|
|
|
|
|
|
|
|
|
|
|
# MinIO配置
|
2026-01-20 16:20:41 +08:00
|
|
|
|
minio.bucket=contestants
|
2026-01-20 13:14:50 +08:00
|
|
|
|
global.award.link=https://www.aida.com.hk/
|