chore(config): 更新配置文件添加Nacos认证和生产环境监控设置
- 在多个module的application.yml中添加Nacos的username和password配置 - 新增admin模块application.yml添加server端口和上传大小限制配置 - 新增各模块application-prod.yml增加Loki日志采集配置 - 各模块生产环境配置中新增Hikari数据源连接池参数 - 添加sa-token SSO客户端配置及管理端点追踪设置 - 调整部分模块loki推送地址至192.168.163.85服务器
This commit is contained in:
parent
7602a08348
commit
7701cfdc23
|
|
@ -1,13 +1,13 @@
|
|||
logging:
|
||||
loki:
|
||||
url: http://192.168.163.83:3100/loki/api/v1/push
|
||||
url: http://192.168.163.85:3100/loki/api/v1/push
|
||||
level:
|
||||
root: info
|
||||
com:
|
||||
nflg: debug
|
||||
alibaba:
|
||||
cloud:
|
||||
nacos: info
|
||||
nacos: trace
|
||||
org:
|
||||
springframework: info
|
||||
# sa-token配置
|
||||
|
|
@ -27,4 +27,14 @@ sa-token:
|
|||
management:
|
||||
otlp:
|
||||
tracing:
|
||||
endpoint: http://192.168.163.83:4318/v1/traces
|
||||
endpoint: http://192.168.163.85:4318/v1/traces
|
||||
spring:
|
||||
datasource:
|
||||
hikari:
|
||||
pool-name: WmsAdminProdPool
|
||||
maximum-pool-size: 20
|
||||
minimum-idle: 20
|
||||
idle-timeout: 600000
|
||||
max-lifetime: 1800000
|
||||
connection-timeout: 30000
|
||||
leak-detection-threshold: 60000
|
||||
|
|
@ -13,10 +13,14 @@ spring:
|
|||
import: nacos:shared.properties?group=${spring.profiles.active}&refreshEnabled=true
|
||||
cloud:
|
||||
nacos:
|
||||
username: wms
|
||||
password: wms
|
||||
config:
|
||||
server-addr: ${nacos.server-addr:192.168.163.83:8848}
|
||||
namespace: wms
|
||||
group: ${spring.profiles.active}
|
||||
file-extension: properties
|
||||
refresh-enabled: true
|
||||
discovery:
|
||||
server-addr: ${nacos.server-addr:192.168.163.83:8848}
|
||||
namespace: wms
|
||||
|
|
|
|||
|
|
@ -1,10 +1,20 @@
|
|||
logging:
|
||||
loki:
|
||||
url: http://192.168.163.83:3100/loki/api/v1/push
|
||||
url: http://192.168.163.85:3100/loki/api/v1/push
|
||||
level:
|
||||
root: info
|
||||
com:
|
||||
nflg: debug
|
||||
alibaba:
|
||||
cloud:
|
||||
nacos: info
|
||||
nacos: info
|
||||
spring:
|
||||
datasource:
|
||||
hikari:
|
||||
pool-name: WmsAuthProdPool
|
||||
maximum-pool-size: 20
|
||||
minimum-idle: 20
|
||||
idle-timeout: 600000
|
||||
max-lifetime: 1800000
|
||||
connection-timeout: 30000
|
||||
leak-detection-threshold: 60000
|
||||
|
|
@ -9,6 +9,8 @@ spring:
|
|||
import: nacos:shared.properties?group=${spring.profiles.active}&refreshEnabled=true
|
||||
cloud:
|
||||
nacos:
|
||||
username: wms
|
||||
password: wms
|
||||
config:
|
||||
server-addr: ${nacos.server-addr:192.168.163.83:8848}
|
||||
namespace: wms
|
||||
|
|
|
|||
|
|
@ -1,10 +1,20 @@
|
|||
logging:
|
||||
loki:
|
||||
url: http://192.168.163.83:3100/loki/api/v1/push
|
||||
url: http://192.168.163.85:3100/loki/api/v1/push
|
||||
level:
|
||||
root: info
|
||||
com:
|
||||
nflg: debug
|
||||
alibaba:
|
||||
cloud:
|
||||
nacos: info
|
||||
nacos: info
|
||||
spring:
|
||||
datasource:
|
||||
hikari:
|
||||
pool-name: WmsGatewayProdPool
|
||||
maximum-pool-size: 20
|
||||
minimum-idle: 20
|
||||
idle-timeout: 600000
|
||||
max-lifetime: 1800000
|
||||
connection-timeout: 30000
|
||||
leak-detection-threshold: 60000
|
||||
|
|
@ -9,6 +9,8 @@ spring:
|
|||
import: nacos:shared.properties?group=${spring.profiles.active}&refreshEnabled=true
|
||||
cloud:
|
||||
nacos:
|
||||
username: wms
|
||||
password: wms
|
||||
config:
|
||||
server-addr: ${nacos.server-addr:112.74.186.154:8848}
|
||||
namespace: wms
|
||||
|
|
|
|||
|
|
@ -1,10 +1,20 @@
|
|||
logging:
|
||||
loki:
|
||||
url: http://192.168.163.83:3100/loki/api/v1/push
|
||||
url: http://192.168.163.85:3100/loki/api/v1/push
|
||||
level:
|
||||
root: info
|
||||
com:
|
||||
nflg: debug
|
||||
alibaba:
|
||||
cloud:
|
||||
nacos: info
|
||||
nacos: info
|
||||
spring:
|
||||
datasource:
|
||||
hikari:
|
||||
pool-name: WmsScheduledProdPool
|
||||
maximum-pool-size: 20
|
||||
minimum-idle: 20
|
||||
idle-timeout: 600000
|
||||
max-lifetime: 1800000
|
||||
connection-timeout: 30000
|
||||
leak-detection-threshold: 60000
|
||||
|
|
@ -9,6 +9,8 @@ spring:
|
|||
import: nacos:shared.properties?group=${spring.profiles.active}&refreshEnabled=true
|
||||
cloud:
|
||||
nacos:
|
||||
username: wms
|
||||
password: wms
|
||||
config:
|
||||
server-addr: ${nacos.server-addr:192.168.163.83:8848}
|
||||
namespace: wms
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
logging:
|
||||
loki:
|
||||
url: http://192.168.163.83:3100/loki/api/v1/push
|
||||
url: http://192.168.163.85:3100/loki/api/v1/push
|
||||
level:
|
||||
root: info
|
||||
com:
|
||||
|
|
@ -27,4 +27,14 @@ sa-token:
|
|||
management:
|
||||
otlp:
|
||||
tracing:
|
||||
endpoint: http://192.168.163.83:4318/v1/traces
|
||||
endpoint: http://192.168.163.83:4318/v1/traces
|
||||
spring:
|
||||
datasource:
|
||||
hikari:
|
||||
pool-name: WmsShipmentProdPool
|
||||
maximum-pool-size: 20
|
||||
minimum-idle: 20
|
||||
idle-timeout: 600000
|
||||
max-lifetime: 1800000
|
||||
connection-timeout: 30000
|
||||
leak-detection-threshold: 60000
|
||||
|
|
@ -13,6 +13,8 @@ spring:
|
|||
import: nacos:shared.properties?group=${spring.profiles.active}&refreshEnabled=true
|
||||
cloud:
|
||||
nacos:
|
||||
username: wms
|
||||
password: wms
|
||||
config:
|
||||
server-addr: ${nacos.server-addr:192.168.163.83:8848}
|
||||
namespace: wms
|
||||
|
|
|
|||
|
|
@ -1,10 +1,20 @@
|
|||
logging:
|
||||
loki:
|
||||
url: http://192.168.163.83:3100/loki/api/v1/push
|
||||
url: http://192.168.163.85:3100/loki/api/v1/push
|
||||
level:
|
||||
root: info
|
||||
com:
|
||||
nflg: debug
|
||||
alibaba:
|
||||
cloud:
|
||||
nacos: info
|
||||
nacos: info
|
||||
spring:
|
||||
datasource:
|
||||
hikari:
|
||||
pool-name: WmsSrmReceiveProdPool
|
||||
maximum-pool-size: 20
|
||||
minimum-idle: 20
|
||||
idle-timeout: 600000
|
||||
max-lifetime: 1800000
|
||||
connection-timeout: 30000
|
||||
leak-detection-threshold: 60000
|
||||
|
|
@ -13,6 +13,8 @@ spring:
|
|||
import: nacos:shared.properties?group=${spring.profiles.active}&refreshEnabled=true
|
||||
cloud:
|
||||
nacos:
|
||||
username: wms
|
||||
password: wms
|
||||
config:
|
||||
server-addr: ${nacos.server-addr:192.168.163.83:8848}
|
||||
namespace: wms
|
||||
|
|
|
|||
Loading…
Reference in New Issue