# ============================================================ # aida-back - 本地配置(不区分环境) # 公共配置(DB、Redis、RabbitMQ、MinIO、API Keys 等)由 Nacos 统一管理 # 此文件仅包含 back 服务私有的业务配置 # ============================================================ server: port: 5567 spring: application: name: aida-back # ---------- 副数据源(back 私有,由 Nacos 统一管理) ---------- # ---------- Token 生成参数(由 TokenGenerateUtils 使用) ---------- security: jwtSecret: ${JWT_SECRET:JWTSECRET} jwtTokenHeader: Authorization jwtTokenPrefix: Bearer- jwtExpiration: ${JWT_EXPIRATION:8640000000} # ---------- Python 服务 ---------- access: python: ip: ${PYTHON_HOST:http://18.167.251.121} port: 9994 generate_sr_port: 9994 address: http://18.167.251.121:9994 # ---------- MinIO Buckets ---------- minio: bucketName: clothing: aida-clothing mannequins: aida-mannequins results: aida-results sysImage: aida-sys-image users: aida-users collectionElement: aida-collection-element gradient: aida-gradient modifiedSketch: aida-modified-sketch slogan: aida-slogan partialDesign: aida-partial-design globalAward: global-award # ---------- Redis Keys ---------- redis: key: orderForGenerate: OrderForGenerate generateCancelSet: GenerateCancelSet generateExceptionMap: Generate:Exception resultMap: ResultMap orderForSR: OrderForSR SRCancelSet: SRCancelSet SRExceptionMap: SRExceptionMap taskList: TaskList credits: pre-deduction: Credits:PreDeduction generateResult: Generate:Result toProductImageResultKey: ToProductImage:Result relightResultKey: Relight:Result newPosted: LastViewNewPostedTime maximumUserId: CodeCreate:MaximumUserId # ---------- RabbitMQ 队列 ---------- rabbitmq: queues: generate: generate-queue sr: SR-queue srResult: SuperResolution generateResult: GenerateImage toProductImageResult: ToProductImage relightResult: Relight poseTransform: PoseTransform designBatch: DesignBatch relightBatch: BatchRelight toProductImageBatch: BatchToProductImage poseTransformBatch: BatchPoseTransform emailRetry: emailRetry-business exchange: generate: generate-exchange dead-letter: exchange: dlx.email-retry queue: dlx.email-retry.queue routing-key: dlx.email-retry.key # ---------- 第三方服务 ---------- orderList: link: ${ORDER_LINK:https://develop.aida.com.hk/home/homePage?order=} stripe: webhook: fail: reminder: 0 paymentMethodConfiguration: pmc_1QIKyq02n1TEydyNKVEYvhW7 google: client: id: ${GOOGLE_CLIENT_ID:157095842121-kdd1fdf8m8nudvj9sprstb2k2prnf9e4.apps.googleusercontent.com} secret: ${GOOGLE_CLIENT_SECRET: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} redirect: uri: ${GOOGLE_REDIRECT_URI:https://develop.api.aida.com.hk/api/third/party/auth/google_callback} design: callback: url: ${DESIGN_CALLBACK_URL:https://develop.api.aida.com.hk/api/third/party/receiveDesignResults} redirect: url: ${REDIRECT_URL:http://18.167.251.121:7788} global: award: link: https://aida-global-design-awards.com.hk/contestants?id= # ---------- 文件上传 ---------- file: upload: temp: dir: temp/uploads chunk: size: pdf: 1048576 video: 2097152 max: size: pdf: 20971520 video: 104857600 task: expiry: hours: 24 logging: level: com.aida: debug