55 lines
1.7 KiB
YAML
55 lines
1.7 KiB
YAML
# 头程本地公共配置。生产环境不得直接使用本文件中的本地默认密钥。
|
|
baiyue:
|
|
deployment:
|
|
region-code: ${REGION_CODE:CN}
|
|
cell: ${DEPLOYMENT_CELL:local-cn}
|
|
data-residency: ${DATA_RESIDENCY:CN}
|
|
security:
|
|
jwt-secret: ${JWT_SECRET:change-me-to-at-least-32-bytes-long-before-start}
|
|
issuer: ${JWT_ISSUER:auth-service}
|
|
internal-service-token: ${INTERNAL_SERVICE_TOKEN:change-me-to-an-internal-token-at-least-32-bytes-long}
|
|
token-key-prefix: ${REDIS_TOKEN_KEY_PREFIX:baiyue:auth}
|
|
openapi.enabled: ${SWAGGER_ENABLED:true}
|
|
audit.enabled: true
|
|
spring:
|
|
jackson:
|
|
default-property-inclusion: non_null
|
|
deserialization.fail-on-unknown-properties: false
|
|
serialization.write-dates-as-timestamps: false
|
|
data:
|
|
redis:
|
|
host: ${REDIS_HOST:127.0.0.1}
|
|
port: ${REDIS_PORT:6379}
|
|
password: ${REDIS_PASSWORD:}
|
|
database: ${REDIS_DATABASE:0}
|
|
timeout: ${REDIS_TIMEOUT:3s}
|
|
cloud:
|
|
nacos.discovery:
|
|
group: ${NACOS_GROUP:BAIYUE}
|
|
namespace: ${NACOS_NAMESPACE:public}
|
|
openfeign:
|
|
circuitbreaker.enabled: true
|
|
client.config.default:
|
|
connect-timeout: 3000
|
|
read-timeout: 5000
|
|
server.shutdown: graceful
|
|
management:
|
|
endpoints.web.exposure.include: health,info,prometheus
|
|
endpoint.health:
|
|
probes.enabled: true
|
|
show-details: always
|
|
mybatis-plus:
|
|
configuration:
|
|
map-underscore-to-camel-case: true
|
|
call-setters-on-nulls: true
|
|
global-config:
|
|
banner: false
|
|
db-config:
|
|
id-type: assign_id
|
|
logic-delete-field: deleted
|
|
logic-delete-value: 1
|
|
logic-not-delete-value: 0
|
|
springdoc:
|
|
api-docs.enabled: ${SWAGGER_ENABLED:true}
|
|
swagger-ui.enabled: ${SWAGGER_ENABLED:true}
|