2026-04-21 22:07:29 +08:00
|
|
|
server:
|
|
|
|
|
port: 8083
|
|
|
|
|
|
|
|
|
|
spring:
|
|
|
|
|
application:
|
|
|
|
|
name: push-service
|
|
|
|
|
datasource:
|
2026-04-21 23:11:05 +08:00
|
|
|
url: jdbc:mysql://39.107.53.187:3306/xuqm_push?useUnicode=true&characterEncoding=utf8&useSSL=true&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true
|
|
|
|
|
username: xuqm
|
|
|
|
|
password: Xuqm@2026
|
2026-04-21 22:07:29 +08:00
|
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
2026-04-21 23:11:05 +08:00
|
|
|
hikari:
|
|
|
|
|
minimum-idle: 5
|
|
|
|
|
maximum-pool-size: 20
|
|
|
|
|
connection-timeout: 30000
|
|
|
|
|
idle-timeout: 300000
|
|
|
|
|
max-lifetime: 900000
|
2026-04-21 22:07:29 +08:00
|
|
|
jpa:
|
|
|
|
|
hibernate:
|
|
|
|
|
ddl-auto: update
|
|
|
|
|
show-sql: false
|
|
|
|
|
|
|
|
|
|
jwt:
|
2026-04-28 09:45:20 +08:00
|
|
|
secret: ${XUQM_JWT_SECRET:xuqm-tenant-service-secret-key-must-be-at-least-256-bits-long-for-hmac}
|
2026-04-21 22:07:29 +08:00
|
|
|
expiration: 86400000
|
|
|
|
|
|
|
|
|
|
push:
|
2026-04-28 09:45:20 +08:00
|
|
|
internal-token: ${SDK_INTERNAL_TOKEN:xuqm-internal-token}
|
2026-04-21 22:07:29 +08:00
|
|
|
huawei:
|
|
|
|
|
app-id: ${HUAWEI_APP_ID:}
|
|
|
|
|
app-secret: ${HUAWEI_APP_SECRET:}
|
|
|
|
|
token-url: https://oauth-login.cloud.huawei.com/oauth2/v3/token
|
|
|
|
|
push-url: https://push-api.cloud.huawei.com/v1/{appId}/messages:send
|
|
|
|
|
xiaomi:
|
|
|
|
|
app-secret: ${XIAOMI_APP_SECRET:}
|
|
|
|
|
push-url: https://api.xmpush.xiaomi.com/v3/message/regid
|
2026-05-01 21:27:39 +08:00
|
|
|
fcm:
|
|
|
|
|
project-id: ${FCM_PROJECT_ID:}
|
|
|
|
|
service-account-json: ${FCM_SERVICE_ACCOUNT_JSON:}
|
|
|
|
|
token-url: https://oauth2.googleapis.com/token
|
|
|
|
|
push-url: https://fcm.googleapis.com/v1/projects/{projectId}/messages:send
|
2026-04-21 22:07:29 +08:00
|
|
|
apns:
|
|
|
|
|
team-id: ${APNS_TEAM_ID:}
|
2026-05-01 21:27:39 +08:00
|
|
|
key-id: ${APNS_KEY_ID:}
|
2026-04-21 22:07:29 +08:00
|
|
|
bundle-id: ${APNS_BUNDLE_ID:}
|
2026-05-01 21:27:39 +08:00
|
|
|
private-key: ${APNS_PRIVATE_KEY:}
|
2026-04-21 22:07:29 +08:00
|
|
|
production: false
|
2026-05-01 21:27:39 +08:00
|
|
|
push-url: https://api.push.apple.com/3/device/{token}
|
|
|
|
|
sandbox-push-url: https://api.sandbox.push.apple.com/3/device/{token}
|
2026-04-30 09:49:05 +08:00
|
|
|
|
|
|
|
|
tenant-service-base-url: ${TENANT_SERVICE_BASE_URL:http://tenant-service:8081}
|