Update database and Redis configuration, add production profile settings

main
chenhao 2026-03-23 11:24:31 +08:00
parent 007875a14a
commit 512f42dfd4
2 changed files with 62 additions and 5 deletions

View File

@ -0,0 +1,55 @@
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/
captcha:
ttl-seconds: 120
max-attempts: 5
token:
access-default-minutes: 30
refresh-default-days: 7

View File

@ -9,16 +9,16 @@ spring:
max-file-size: 20MB
max-request-size: 25MB
datasource:
url: jdbc:postgresql://192.168.124.202:5432/unis_crm
url: jdbc:postgresql://127.0.0.1:5432/nex_auth
username: postgres
password: unis@123
password: 199628
driver-class-name: org.postgresql.Driver
data:
redis:
host: 192.168.124.202
host: 127.0.0.1
port: 6379
password: zghz@123
database: 12
password: 199628@tlw
database: 14
mybatis-plus:
mapper-locations: classpath*:/mapper/**/*.xml
@ -32,6 +32,8 @@ logging:
com.unis.crm: info
unisbase:
tenant:
enabled: false
web:
auth-endpoints-enabled: true
management-endpoints-enabled: true