86 lines
2.5 KiB
YAML
86 lines
2.5 KiB
YAML
# Tomcat
|
|
server:
|
|
port: 12900
|
|
|
|
# nacos线上地址
|
|
nacos:
|
|
addr: 47.116.173.119:8848
|
|
user-name: nacos
|
|
password: nacos
|
|
namespace: oneone
|
|
# SPRING_AMQP_DESERIALIZATION_TRUST_ALL=true spring.amqp.deserialization.trust.all
|
|
# Spring
|
|
spring:
|
|
rabbitmq:
|
|
host: 47.116.173.119
|
|
port: 5672
|
|
username: guest
|
|
password: guest
|
|
virtual-host: /
|
|
listener:
|
|
simple:
|
|
prefetch: 1 # 默认每次取出一条消息消费, 消费完成取下一条
|
|
acknowledge-mode: manual # 设置消费端手动ack确认
|
|
retry:
|
|
enabled: true # 是否支持重试
|
|
publisher-confirm-type: correlated #确认消息已发送到交换机(Exchange)
|
|
publisher-returns: true #确认消息已发送到队列(Queue)
|
|
amqp:
|
|
deserialization:
|
|
trust:
|
|
all: true
|
|
main:
|
|
allow-bean-definition-overriding: true
|
|
|
|
application:
|
|
# 应用名称
|
|
name: cloud-car-gateway
|
|
profiles:
|
|
# 环境配置
|
|
active: dev
|
|
cloud:
|
|
nacos:
|
|
discovery:
|
|
# 服务注册地址
|
|
server-addr: ${nacos.addr}
|
|
# nacos用户名
|
|
username: ${nacos.user-name}
|
|
# nacos密码
|
|
password: ${nacos.password}
|
|
# 命名空间
|
|
namespace: ${nacos.namespace}
|
|
config:
|
|
# 服务注册地址
|
|
server-addr: ${nacos.addr}
|
|
# nacos用户名
|
|
username: ${nacos.user-name}
|
|
# nacos密码
|
|
password: ${nacos.password}
|
|
# 命名空间
|
|
namespace: ${nacos.namespace}
|
|
# 配置文件格式
|
|
file-extension: yml
|
|
# 共享配置
|
|
shared-configs:
|
|
# 系统共享配置
|
|
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
|
# 系统环境Config共享配置
|
|
- application-config-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
|
# xxl-job 配置文件
|
|
- application-xxl-config-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
|
# rabbit 配置文件
|
|
- application-rabbit-config-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
|
logging:
|
|
level:
|
|
com.muyu.breakdown.mapper: DEBUG
|
|
aliyun:
|
|
access-key-id: LTAI5tDH3FyRx4PRr6anx2TL
|
|
access-key-secret: xdQnX2tDattY50raNkUWmHzE2tondP
|
|
endpoint: ecs-cn-hangzhou.aliyuncs.com
|
|
region-id: cn-shanghai
|
|
image-id: m-uf6ih0vnl5f51pquns11
|
|
instance-type: ecs.t6-c1m1.large
|
|
security-group-id: sg-uf642d5u4ja5gsiitx8y
|
|
switch-id: vsw-uf66lifrkhxqc94xi06v3
|
|
amount: 1
|