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

163 lines
5.5 KiB
YAML
Raw Normal View History

2021-11-05 00:44:13 +08:00
server:
port: 7011
ip: 1.24.238.149
2021-12-27 22:22:42 +08:00
url: http://1.24.238.149:37210/usercenter
2021-11-05 00:44:13 +08:00
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:
2021-12-13 20:51:42 +08:00
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
2021-11-05 00:44:13 +08:00
db-type: mysql
driver-class-name: com.mysql.cj.jdbc.Driver
2021-12-13 20:51:42 +08:00
username: tsroot
password: TSkj@0471.TSROOT
2021-11-05 00:44:13 +08:00
initial-size: 2
min-idle: 2
2021-12-13 20:51:42 +08:00
max-active: 200
2021-11-05 00:44:13 +08:00
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-12-13 20:51:42 +08:00
uri: mongodb://smartcity:smartcity@192.168.158.20:6011/smartcity
2021-11-30 14:53:08 +08:00
redis:
database: 6
2021-12-13 20:51:42 +08:00
host: 192.168.158.20
port: 6012
password: TSkj@0471.REDIS
2021-11-30 14:53:08 +08:00
timeout: 3000ms
jedis:
pool:
max-active: 8
max-wait: 1ms
max-idle: 8
min-idle: 0
kafka:
bootstrap-servers: 192.168.158.14:9092
producer:
# 写入失败时重试次数。当leader节点失效一个repli节点会替代成为leader节点此时可能出现写入失败
# 当retris为0时produce不会重复。retirs重发此时repli节点完全成为leader节点不会产生消息丢失。
2022-01-25 11:19:10 +08:00
retries: 3
#procedure要求leader在考虑完成请求之前收到的确认数用于控制发送记录在服务端的持久化其值可以为如下
#acks = 0 如果设置为零,则生产者将不会等待来自服务器的任何确认,该记录将立即添加到套接字缓冲区并视为已发送。在这种情况下,无法保证服务器已收到记录,并且重试配置将不会生效(因为客户端通常不会知道任何故障),为每条记录返回的偏移量始终设置为-1。
#acks = 1 这意味着leader会将记录写入其本地日志但无需等待所有副本服务器的完全确认即可做出回应在这种情况下如果leader在确认记录后立即失败但在将数据复制到所有的副本服务器之前则记录将会丢失。
#acks = all 这意味着leader将等待完整的同步副本集以确认记录这保证了只要至少一个同步副本服务器仍然存活记录就不会丢失这是最强有力的保证这相当于acks = -1的设置。
#可以设置的值为all, -1, 0, 1
acks: 1
consumer:
group-id: SmartCity
# smallest和largest才有效如果smallest重新0开始读取如果是largest从logfile的offset读取。一般情况下我们都是设置smallest
auto-offset-reset: earliest
# 设置自动提交offset
enable-auto-commit: true
# 如果'enable.auto.commit'为true则消费者偏移自动提交给Kafka的频率以毫秒为单位默认值为5000。
auto-commit-interval: 100
max-poll-records: 5
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:
2021-12-13 20:51:42 +08:00
endpoint: http://192.168.158.17:9001
2021-12-12 23:07:37 +08:00
access-key: smartcity
secret-key: smartcity
2021-11-05 00:44:13 +08:00
# 即时通讯
websocket:
2021-12-13 20:51:42 +08:00
url: ${server.ip}
port: 7012
2021-11-05 00:44:13 +08:00
context: websocket
2021-12-13 20:51:42 +08:00
is-encrypt: true
2021-12-08 20:50:38 +08:00
aes-key: SocKEtsEcReT_KeY
2021-11-05 00:44:13 +08:00
2021-12-28 14:51:49 +08:00
map:
super-map:
center-lat: 40.98896497581636
center-lng: 113.11412662267688
zoom: 8
base-map-url: https://iserver.supermap.io/iserver/services/map-china400/rest/maps/China
2022-02-14 16:20:57 +08:00
baidu-map:
2022-02-25 22:56:07 +08:00
center-lat: 41.000587
center-lng: 113.138723
2022-02-14 16:20:57 +08:00
zoom: 11
boundary: 乌兰察布市
2021-12-28 14:51:49 +08:00
2021-11-05 00:44:13 +08:00
# 短信服务
sms:
active: true
type: default
default-sms:
account: xd001382
password: xd001382136
2022-02-10 17:37:49 +08:00
sign: 【市域社会治理】
2021-11-05 00:44:13 +08:00
template:
verification-code: '{sign} 您的验证码为 {content}, 有效时间为120秒若非本人操作请忽略。'
logging:
2021-12-27 22:22:42 +08:00
enable-api-log: false
2021-11-05 00:44:13 +08:00
file:
name: /project/logs/usercenter-logs.log
level:
root: error
ink.wgink: debug
2022-02-10 17:37:49 +08:00
params-config:
# 专管员角色ID
role-specialized-person: 6ac90f36-caa0-4273-9489-4d0197124c33
# 网格员角色ID
2022-02-27 02:36:20 +08:00
role-grid-member: 90675eba-e63e-4819-b45d-2c99ab78a278
# 华为融合通信支持
2022-02-27 17:54:19 +08:00
huawei-smc: false