wlcb-smart-city-usercenter/src/main/resources/application-prod.yml

103 lines
2.7 KiB
YAML
Raw Normal View History

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-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
# 即时通讯
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
# 短信服务
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