Files
tianai-captcha-enhanced/tianai-captcha-platform/src/main/resources/application-prod.yml
T
abcv7 a478bf1cf2
deploy-test / build-and-deploy-test (push) Successful in 2m39s
fix: application-prod.yml 增加 Redis database + MinIO bucket 配置
- Redis: 新增 database 参数支持多项目隔离 (DB 0=公共, DB 1=tianai-captcha)
- MinIO: bucket 默认值改为 tianai-captcha
- 所有参数通过环境变量注入,兼容不同环境
2026-08-26 15:13:12 +08:00

54 lines
1.2 KiB
YAML

server:
port: 18200
spring:
datasource:
url: jdbc:postgresql://${DB_HOST:localhost}:${DB_PORT:5432}/${DB_NAME:captcha_forge}
username: ${DB_USER:pgsql}
password: ${DB_PASS:}
driver-class-name: org.postgresql.Driver
jpa:
hibernate:
ddl-auto: none
show-sql: false
properties:
hibernate:
dialect: org.hibernate.dialect.PostgreSQLDialect
sql:
init:
mode: never
data:
redis:
host: ${REDIS_HOST:localhost}
port: ${REDIS_PORT:6379}
password: ${REDIS_PASS:}
database: ${REDIS_DB:0}
jackson:
date-format: yyyy-MM-dd HH:mm:ss
time-zone: Asia/Shanghai
captcha:
prefix: captcha
expire:
default: 120000
init-default-resource: true
local-cache-enabled: true
local-cache-size: 20
jwt:
secret: ${JWT_SECRET:tianai-captcha-jwt-secret-key-must-be-at-least-256-bits-long-for-hs256}
expiration: ${JWT_EXPIRATION:86400000}
minio:
endpoint: ${MINIO_ENDPOINT:http://localhost:9000}
access-key: ${MINIO_ACCESS_KEY:minioadmin}
secret-key: ${MINIO_SECRET_KEY:minioadmin}
bucket: ${MINIO_BUCKET:tianai-captcha}
logging:
level:
cloud.tianai.captcha: INFO
root: WARN