05988c4325
- Replace hardcoded public namespace with NACOS_NAMESPACE - Document nacos init container troubleshooting for 1Panel deploy
59 lines
1.4 KiB
YAML
59 lines
1.4 KiB
YAML
server:
|
|
port: 9001
|
|
|
|
spring:
|
|
application:
|
|
name: video-auth
|
|
cloud:
|
|
nacos:
|
|
discovery:
|
|
server-addr: ${NACOS_HOST:nacos}:${NACOS_PORT:8848}
|
|
namespace: ${NACOS_NAMESPACE:}
|
|
group: DEFAULT_GROUP
|
|
sentinel:
|
|
transport:
|
|
dashboard: ${SENTINEL_HOST:sentinel}:${SENTINEL_PORT:8080}
|
|
port: 8721
|
|
eager: true
|
|
datasource:
|
|
url: jdbc:mysql://${MYSQL_HOST:mysql}:${MYSQL_PORT:3306}/video_auth?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
|
|
username: root
|
|
password: ${MYSQL_ROOT_PASSWORD}
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
data:
|
|
redis:
|
|
host: ${REDIS_HOST:redis}
|
|
port: ${REDIS_PORT:6379}
|
|
password: ${REDIS_PASSWORD}
|
|
database: 0
|
|
timeout: 10000
|
|
lettuce:
|
|
pool:
|
|
max-active: 200
|
|
max-wait: -1
|
|
max-idle: 10
|
|
min-idle: 0
|
|
|
|
mybatis-plus:
|
|
mapper-locations: classpath:mapper/*.xml
|
|
type-aliases-package: com.nuaa.video.auth.entity
|
|
configuration:
|
|
map-underscore-to-camel-case: true
|
|
cache-enabled: false
|
|
global-config:
|
|
db-config:
|
|
id-type: auto
|
|
logic-delete-field: is_deleted
|
|
logic-delete-value: 1
|
|
logic-not-delete-value: 0
|
|
|
|
service:
|
|
auth:
|
|
token: ${SERVICE_AUTH_TOKEN}
|
|
|
|
jwt:
|
|
secret: ${USER_JWT_SECRET}
|
|
expiration: ${JWT_EXPIRATION}
|
|
header: Authorization
|
|
tokenPrefix: Bearer
|