41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
server:
|
|||
|
|
port: ${EVENT_BRIDGE_PORT:9300}
|
||
|
|
|
||
|
|
spring:
|
||
|
|
application:
|
||
|
|
name: event-bridge-service
|
||
|
|
config:
|
||
|
|
import:
|
||
|
|
- optional:nacos:baiyue-common.yml?group=BAIYUE&refreshEnabled=true
|
||
|
|
- optional:nacos:${spring.application.name}.yml?group=BAIYUE&refreshEnabled=true
|
||
|
|
datasource:
|
||
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||
|
|
url: ${EVENT_BRIDGE_DB_URL:jdbc:mysql://127.0.0.1:3306/baiyue_event_bridge?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true}
|
||
|
|
username: ${EVENT_BRIDGE_DB_USERNAME:root}
|
||
|
|
password: ${EVENT_BRIDGE_DB_PASSWORD:123456}
|
||
|
|
cloud:
|
||
|
|
nacos:
|
||
|
|
server-addr: ${NACOS_SERVER_ADDR:127.0.0.1:8848}
|
||
|
|
username: ${NACOS_USERNAME:nacos}
|
||
|
|
password: ${NACOS_PASSWORD:nacos}
|
||
|
|
discovery:
|
||
|
|
group: ${NACOS_GROUP:BAIYUE}
|
||
|
|
namespace: ${NACOS_NAMESPACE:}
|
||
|
|
config:
|
||
|
|
namespace: ${NACOS_NAMESPACE:}
|
||
|
|
|
||
|
|
baiyue:
|
||
|
|
region: ${REGION_CODE:CN}
|
||
|
|
security:
|
||
|
|
internal-service-token: ${INTERNAL_SERVICE_TOKEN:}
|
||
|
|
|
||
|
|
management:
|
||
|
|
endpoints:
|
||
|
|
web:
|
||
|
|
exposure:
|
||
|
|
include: health,info,prometheus
|
||
|
|
|
||
|
|
springdoc:
|
||
|
|
api-docs:
|
||
|
|
path: /v3/api-docs
|