修改配置

This commit is contained in:
wanggeng 2021-12-13 20:51:42 +08:00
parent daa964515f
commit 95e1580b86
3 changed files with 152 additions and 32 deletions

View File

@ -0,0 +1,124 @@
server:
port: 7011
ip: 192.168.0.103
url: http://${server.ip}:7011/usercenter
system-title: 统一用户管理系统
system-sub-title: 智慧城市
default-index-page: route/custom/index
servlet:
context-path: /usercenter
spring:
login-url: /oauth/login
login-failure: /oauth/login?error
login-process: /userlogin
assets-matchers: /assets/**
thymeleaf:
prefix: classpath:/templates/
suffix: .html
mode: HTML5
encoding: UTF-8
cache: false
main:
allow-bean-definition-overriding: true
servlet:
multipart:
max-file-size: 1GB
max-request-size: 1GB
datasource:
druid:
url: jdbc:mysql://127.0.0.1:3306/db_smart_city_usercenter?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false&serverTimezone=UTC&nullCatalogMeansCurrent=true
db-type: mysql
driver-class-name: com.mysql.cj.jdbc.Driver
username: root
password: root
initial-size: 2
min-idle: 2
max-active: 5
max-wait: 60000
time-between-eviction-runs-millis: 60000
min-evictable-idle-time-millis: 300000
validation-query: SELECT 1 FROM DUAL
test-while-idle: true
test-on-borrow: false
test-on-return: false
pool-prepared-statements: true
max-pool-prepared-statement-per-connection-size: 10
filter:
commons-log:
connection-logger-name: stat,wall,log4j
stat:
log-slow-sql: true
slow-sql-millis: 2000
connection-properties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
use-global-data-source-stat: true
data:
mongodb:
uri: mongodb://smartcity:smartcity@127.0.0.1:27017/smartcity
redis:
database: 6
host: 127.0.0.1
port: 6379
password: 666
timeout: 3000ms
jedis:
pool:
max-active: 8
max-wait: 1ms
max-idle: 8
min-idle: 0
mybatis:
config-location: classpath:mybatis/mybatis-config.xml
mapper-locations: classpath*:mybatis/mapper/**/*.xml
access-control:
role-permission: false
swagger:
base-package-list: ink.wgink,cn.com.tenlion
file:
upload-path: /project/UploadFiles/
image-types: png,jpg,jpeg,gif,blob
video-types: mp4,rmvb
audio-types: mp3,wmv,amr
file-types: doc,docx,xls,xlsx,ppt,pptx,txt,zip,rar,apk,pdf
max-file-count: 6
image-output-quality: 0.4
# 启用minIo
use-min-io: true
# 与use-min-io配套使用
min-io:
endpoint: http://127.0.0.1:9900
access-key: smartcity
secret-key: smartcity
# 即时通讯
websocket:
url: ${server.ip}
port: 1991
context: websocket
is-encrypt: false
aes-key: SocKEtsEcReT_KeY
# 短信服务
sms:
active: true
type: default
default-sms:
account: xd001382
password: xd001382136
sign: 【日喀则文化馆】
template:
verification-code: '{sign} 您的验证码为 {content}, 有效时间为120秒若非本人操作请忽略。'
logging:
# enable-api-log: true
file:
name: /project/logs/usercenter-logs.log
level:
root: error
org.springframework.data.mongodb: debug
org.springframework.boot.autoconfigure.security.servlet: debug
ink.wgink: debug

View File

@ -1,6 +1,7 @@
server:
port: 7011
url: http://192.168.0.155:7011/usercenter
ip: 10.25.242.190
url: http://${server.ip}:7011/usercenter
system-title: 统一用户管理系统
system-sub-title: 智慧城市
default-index-page: route/custom/index
@ -26,14 +27,14 @@ spring:
max-request-size: 1GB
datasource:
druid:
url: jdbc:mysql://192.168.0.151:3306/db_smart_city_usercenter?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false&serverTimezone=UTC&nullCatalogMeansCurrent=true
url: jdbc:mysql://192.168.158.18:3306/db_smart_city_usercenter?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false&serverTimezone=UTC&nullCatalogMeansCurrent=true
db-type: mysql
driver-class-name: com.mysql.cj.jdbc.Driver
username: root
password: root
username: tsroot
password: TSkj@0471.TSROOT
initial-size: 2
min-idle: 2
max-active: 5
max-active: 200
max-wait: 60000
time-between-eviction-runs-millis: 60000
min-evictable-idle-time-millis: 300000
@ -53,11 +54,11 @@ spring:
use-global-data-source-stat: true
data:
mongodb:
uri: mongodb://smartcity:smartcity@192.168.0.156:27017/smartcity
uri: mongodb://smartcity:smartcity@192.168.158.20:6011/smartcity
redis:
database: 6
host: 192.168.0.156
port: 6379
host: 192.168.158.20
port: 6012
password: 666
timeout: 3000ms
jedis:
@ -89,16 +90,16 @@ file:
use-min-io: true
# 与use-min-io配套使用
min-io:
endpoint: http://192.168.0.156:19000
endpoint: http://192.168.158.17:9001
access-key: smartcity
secret-key: smartcity
# 即时通讯
websocket:
url: 192.168.0.155
port: 1991
url: ${server.ip}
port: 7012
context: websocket
is-encrypt: false
is-encrypt: true
aes-key: SocKEtsEcReT_KeY
# 短信服务
@ -113,11 +114,9 @@ sms:
verification-code: '{sign} 您的验证码为 {content}, 有效时间为120秒若非本人操作请忽略。'
logging:
# enable-api-log: true
enable-api-log: true
file:
name: /project/logs/usercenter-logs.log
level:
root: error
org.springframework.data.mongodb: debug
org.springframework.boot.autoconfigure.security.servlet: debug
ink.wgink: debug

View File

@ -1,6 +1,6 @@
server:
port: 7011
url: http://192.168.0.103:7011/usercenter
url: http://192.168.0.155:7011/usercenter
system-title: 统一用户管理系统
system-sub-title: 智慧城市
default-index-page: route/custom/index
@ -26,13 +26,12 @@ spring:
max-request-size: 1GB
datasource:
druid:
url: jdbc:mysql://127.0.0.1:3306/db_smart_city_usercenter?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false&serverTimezone=UTC&nullCatalogMeansCurrent=true
# standby-url: jdbc:mysql://192.168.0.151:3306/db_smart_city_usercenter?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false&serverTimezone=UTC&nullCatalogMeansCurrent=true
url: jdbc:mysql://192.168.0.151:3306/db_smart_city_usercenter?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false&serverTimezone=UTC&nullCatalogMeansCurrent=true
db-type: mysql
driver-class-name: com.mysql.cj.jdbc.Driver
username: root
password: root
initial-size: 1
initial-size: 2
min-idle: 2
max-active: 5
max-wait: 60000
@ -54,10 +53,10 @@ spring:
use-global-data-source-stat: true
data:
mongodb:
uri: mongodb://smartcity:smartcity@127.0.0.1:27017/smartcity
uri: mongodb://smartcity:smartcity@192.168.0.156:27017/smartcity
redis:
database: 6
host: 127.0.0.1
host: 192.168.0.156
port: 6379
password: 666
timeout: 3000ms
@ -79,7 +78,7 @@ swagger:
base-package-list: ink.wgink,cn.com.tenlion
file:
upload-path: /Users/wanggeng/Desktop/UploadFiles/
upload-path: /project/UploadFiles/
image-types: png,jpg,jpeg,gif,blob
video-types: mp4,rmvb
audio-types: mp3,wmv,amr
@ -87,17 +86,17 @@ file:
max-file-count: 6
image-output-quality: 0.4
# 启用minIo
use-min-io: false
use-min-io: true
# 与use-min-io配套使用
min-io:
endpoint: http://127.0.0.1:9900
access-key: usercenter
secret-key: aaa111!!!
endpoint: http://192.168.0.156:19000
access-key: smartcity
secret-key: smartcity
# 即时通讯
websocket:
url: 127.0.0.1
port: 8081
url: 192.168.0.155
port: 1991
context: websocket
is-encrypt: false
aes-key: SocKEtsEcReT_KeY
@ -114,13 +113,11 @@ sms:
verification-code: '{sign} 您的验证码为 {content}, 有效时间为120秒若非本人操作请忽略。'
logging:
# 收集接口日志
enable-api-log: true
# enable-api-log: true
file:
name: /Users/wanggeng/Desktop/UploadFiles/logs/usercenter-logs.log
name: /project/logs/usercenter-logs.log
level:
root: error
org.springframework.data.mongodb: debug
org.springframework.web.client: debug
org.springframework.boot.autoconfigure.security.servlet: debug
ink.wgink: debug