2021-11-05 00:44:13 +08:00
|
|
|
|
server:
|
|
|
|
|
port: 7011
|
|
|
|
|
url: http://192.168.0.155:7011/usercenter
|
|
|
|
|
system-title: 统一用户管理系统
|
|
|
|
|
system-sub-title: 智慧城市
|
2021-11-17 17:19:47 +08:00
|
|
|
|
default-index-page: route/custom/index
|
2021-11-05 00:44:13 +08:00
|
|
|
|
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://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: 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:
|
2021-11-25 18:16:35 +08:00
|
|
|
|
uri: mongodb://smartcity:smartcity@192.168.0.156:27017/smartcity
|
2021-11-30 14:53:08 +08:00
|
|
|
|
redis:
|
|
|
|
|
database: 6
|
|
|
|
|
host: 192.168.0.156
|
|
|
|
|
port: 6379
|
|
|
|
|
password: 666
|
|
|
|
|
timeout: 3000ms
|
|
|
|
|
jedis:
|
|
|
|
|
pool:
|
|
|
|
|
max-active: 8
|
|
|
|
|
max-wait: 1ms
|
|
|
|
|
max-idle: 8
|
|
|
|
|
min-idle: 0
|
2021-11-05 00:44:13 +08:00
|
|
|
|
|
|
|
|
|
mybatis:
|
|
|
|
|
config-location: classpath:mybatis/mybatis-config.xml
|
|
|
|
|
mapper-locations: classpath*:mybatis/mapper/**/*.xml
|
|
|
|
|
|
2021-11-16 10:44:24 +08:00
|
|
|
|
access-control:
|
|
|
|
|
role-permission: false
|
|
|
|
|
|
2021-11-05 00:44:13 +08:00
|
|
|
|
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
|
2021-12-08 20:50:38 +08:00
|
|
|
|
# 启用minIo
|
|
|
|
|
use-min-io: true
|
|
|
|
|
# 与use-min-io配套使用
|
|
|
|
|
min-io:
|
|
|
|
|
endpoint: http://192.168.0.156:9900
|
|
|
|
|
access-key: usercenter
|
|
|
|
|
secret-key: aaa111!!!
|
2021-11-05 00:44:13 +08:00
|
|
|
|
|
|
|
|
|
# 即时通讯
|
|
|
|
|
websocket:
|
2021-11-11 17:17:25 +08:00
|
|
|
|
url: 192.168.0.155
|
|
|
|
|
port: 1991
|
2021-11-05 00:44:13 +08:00
|
|
|
|
context: websocket
|
2021-12-08 20:50:38 +08:00
|
|
|
|
is-encrypt: false
|
|
|
|
|
aes-key: SocKEtsEcReT_KeY
|
2021-11-05 00:44:13 +08:00
|
|
|
|
|
|
|
|
|
# 短信服务
|
|
|
|
|
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
|