diff --git a/update-service/BOOT-INF/classes/application.yml b/update-service/BOOT-INF/classes/application.yml new file mode 100644 index 0000000..69dc77c --- /dev/null +++ b/update-service/BOOT-INF/classes/application.yml @@ -0,0 +1,52 @@ +server: + port: 8084 + +spring: + application: + name: update-service + datasource: + url: ${SPRING_DATASOURCE_URL:jdbc:mysql://39.107.53.187:3306/xuqm_update?useUnicode=true&characterEncoding=utf8&useSSL=true&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true} + username: ${SPRING_DATASOURCE_USERNAME:xuqm} + password: ${SPRING_DATASOURCE_PASSWORD:Xuqm@2026} + driver-class-name: com.mysql.cj.jdbc.Driver + hikari: + minimum-idle: 5 + maximum-pool-size: 20 + connection-timeout: 30000 + idle-timeout: 300000 + max-lifetime: 900000 + jpa: + hibernate: + ddl-auto: validate + show-sql: false + servlet: + multipart: + max-file-size: 200MB + max-request-size: 200MB + flyway: + enabled: true + baseline-on-migrate: true + baseline-version: 0 + locations: classpath:db/migration + table: flyway_history_update + +jwt: + secret: ${XUQM_JWT_SECRET:xuqm-tenant-service-secret-key-must-be-at-least-256-bits-long-for-hmac} + expiration: 3153600000000 + +update: + upload-dir: ${UPDATE_UPLOAD_DIR:/tmp/xuqm-update} + base-url: ${UPDATE_BASE_URL:https://update.dev.xuqinmin.com} + +sdk: + tenant-service-url: ${SDK_TENANT_SERVICE_URL:http://xuqm-tenant-service:9001} + internal-token: ${SDK_INTERNAL_TOKEN:xuqm-internal-token} + +management: + endpoints: + web: + exposure: + include: health,info + endpoint: + health: + show-details: always