unis_crm/backend/src/main/resources/application-prod.yml

69 lines
1.8 KiB
YAML
Raw Normal View History

spring:
application:
name: unis-crm-backend
servlet:
multipart:
max-file-size: 20MB
max-request-size: 25MB
datasource:
url: jdbc:postgresql://192.168.124.202:5432/unis_crm
username: postgres
password: unis@123
driver-class-name: org.postgresql.Driver
data:
redis:
host: 192.168.124.202
port: 6379
password: zghz@123
database: 12
mybatis-plus:
mapper-locations: classpath*:/mapper/**/*.xml
type-aliases-package: com.unis.crm.dto.dashboard
configuration:
map-underscore-to-camel-case: true
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
logging:
level:
com.unis.crm: info
unisbase:
web:
auth-endpoints-enabled: true
management-endpoints-enabled: true
security:
enabled: true
mode: embedded
jwt-secret: change-me-please-change-me-32bytes
auth-header: Authorization
token-prefix: "Bearer "
permit-all-urls:
- /actuator/health
internal-auth:
enabled: true
secret: change-me-internal-secret
header-name: X-Internal-Secret
app:
upload-path: /Users/kangwenjing/Downloads/crm/uploads
resource-prefix: /sys/api/static/
2026-03-26 09:29:55 +00:00
tencent-map:
key: ${TENCENT_MAP_KEY:LJYBZ-HCQCV-N37PU-5FIOX-QFA26-FPB6U}
captcha:
ttl-seconds: 120
max-attempts: 5
token:
access-default-minutes: 30
refresh-default-days: 7
wecom:
enabled: ${WECOM_ENABLED:false}
corp-id: ${WECOM_CORP_ID:}
agent-id: ${WECOM_AGENT_ID:}
secret: ${WECOM_SECRET:}
redirect-uri: ${WECOM_REDIRECT_URI:https://crm.unissense.top/api/wecom/sso/callback}
frontend-callback-path: ${WECOM_FRONTEND_CALLBACK_PATH:/login/wecom}
scope: ${WECOM_SCOPE:snsapi_base}
state-ttl-seconds: 300
ticket-ttl-seconds: 180
access-token-safety-seconds: 120