Files
baiyue-firstleg/config/nacos/test/baiyue-common.yml
T
2026-09-29 18:47:37 +08:00

81 lines
2.5 KiB
YAML

baiyue:
security:
jwt-mode: jwks
session-mode: redis
audience: ${JWT_AUDIENCE:lastleg-api}
jwk-set-uri: ${JWT_JWKS_URI:http://auth:9100/api/auth/.well-known/jwks.json}
issuer: ${JWT_ISSUER:auth-service}
internal-service-token: ${INTERNAL_SERVICE_TOKEN}
token-key-prefix: ${REDIS_TOKEN_KEY_PREFIX:baiyue:auth}
warehouse:
public-tenant-id: 0
openapi.enabled: ${SWAGGER_ENABLED:false}
audit:
enabled: true
endpoint: ${AUDIT_SERVICE_URL:http://audit-service:9700}/internal/audit/events
outbox:
enabled: ${AUDIT_OUTBOX_ENABLED:false}
publisher-enabled: ${AUDIT_OUTBOX_PUBLISHER_ENABLED:false}
batch-size: ${AUDIT_OUTBOX_BATCH_SIZE:50}
lease-seconds: ${AUDIT_OUTBOX_LEASE_SECONDS:60}
max-attempts: ${AUDIT_OUTBOX_MAX_ATTEMPTS:5}
max-compensations: ${AUDIT_OUTBOX_MAX_COMPENSATIONS:2}
compensation-delay-minutes: ${AUDIT_OUTBOX_COMPENSATION_DELAY_MINUTES:30}
retention-days: ${AUDIT_OUTBOX_RETENTION_DAYS:30}
rocketmq:
topic: ${MQ_TOPIC_PREFIX:test-}baiyue-audit-event-v1
send-timeout-ms: ${AUDIT_MQ_SEND_TIMEOUT_MS:3000}
spring:
jackson:
default-property-inclusion: non_null
deserialization:
fail-on-unknown-properties: false
serialization:
write-dates-as-timestamps: false
data:
redis:
username: ${REDIS_USERNAME:default}
host: ${REDIS_HOST}
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}
openfeign:
circuitbreaker.enabled: true
client.config.default:
connect-timeout: 3000
read-timeout: 5000
server:
shutdown: graceful
max-http-request-header-size: ${SERVER_MAX_HTTP_REQUEST_HEADER_SIZE:32KB}
management:
endpoints:
web:
exposure:
include: health,info,prometheus
endpoint:
health:
probes.enabled: true
show-details: never
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:false}
swagger-ui.enabled: ${SWAGGER_ENABLED:false}
baiyue.security.session-validation-uri: ${AUTH_SESSION_VALIDATION_URL:http://auth:9100/internal/auth/accounts/sessions/validate}