cqyt/shapelight-admin/src/main/resources/application.yml

149 lines
4.2 KiB
YAML
Raw Normal View History

2020-10-19 17:44:19 +08:00
# Tomcat
server:
tomcat:
uri-encoding: UTF-8
max-threads: 1000
min-spare-threads: 30
max-connections: 2000
port: 8018
servlet:
context-path: /cell
http:
port: 8019
2020-10-19 17:44:19 +08:00
# ssl:
# key-store: classpath:4145009_c.shapelight.net.pfx
# key-store-password: 8n8bU823
# keyStoreType: PKCS12
spring:
main:
banner-mode: log
allow-bean-definition-overriding: true
profiles:
active: dev
jackson:
date-format: yyyy-MM-dd HH:mm:ss
time-zone: GMT+8
servlet:
multipart:
2021-01-29 16:02:50 +08:00
max-file-size: 1000MB
max-request-size: 1000MB
2020-10-19 17:44:19 +08:00
enabled: true
redis:
database: 0
2021-01-29 16:02:50 +08:00
host: 192.168.50.232
2020-10-19 17:44:19 +08:00
port: 6379
password: 123456 # 密码(默认为空)
timeout: 6000ms # 连接超时时长(毫秒)
jedis:
pool:
max-active: 1000 # 连接池最大连接数(使用负值表示没有限制)
max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
max-idle: 10 # 连接池中的最大空闲连接
min-idle: 5 # 连接池中的最小空闲连接
# freemarker:
# suffix: .html
# request-context-attribute: request
# mvc:
# throw-exception-if-no-handler-found: true
mqtt:
username: admin
password: public
2021-01-29 16:02:50 +08:00
url: tcp://192.168.50.232:1883
2020-10-19 17:44:19 +08:00
keepAliveInterval: 10
client:
id: web-server
default:
topic: topic
2021-01-29 16:02:50 +08:00
api: http://192.168.50.232:8081
2020-10-19 17:44:19 +08:00
mvc:
static-path-pattern: /files/**
async:
request-timeout: 60000 #60秒
resources:
static-locations: file:D:/project/cell #根目录
#file:
#文件上传目录注意Linux和Windows上的目录结构不同
#uploadPath: D:/project/cell/temp
global:
http_flag: http
file_path:
static-locations: D:/project/cell #根目录必须是在static-locations下
temp_dir: temp
images_dir: images
apk_dir: apk
opt_dir: opt
db_bak:
db_filepath: db_bak
db_name: cell_db
db_username: root
db_password: root
db_host: localhost
db_port: 3306
minio:
2021-01-29 16:02:50 +08:00
endpoint: http://192.168.50.232:9000
2020-10-19 17:44:19 +08:00
port: 9000
accessKey: admin
secretKey: admin@C501
bucketName: cell
device:
appId: 8e9b941923abd
appSecret: Mjk0ODIxOTcwMTQ0NjkwNzA1NDE0MzcyNjgxMTQ0MDc0MjE
# endpoint: https://c.shapelight.net:19000
# port: 9000
# accessKey: 7885444af42e4b30c518c5be17c8850b
# secretKey: 0fad3477fb9f60c7be75561db967e8d7
# bucketName: cell
wx:
appid: wxf59991f23f1f5500
secret: 30b523b2bdd7b0739b7f06e9dc1519f8
2021-02-22 13:58:17 +08:00
tcp_server:
2021-02-25 09:33:01 +08:00
port: 8086
app:
key: 9894480ac52e4
secret: Mjk0ODUzNzA2Mzk3NzEzMjU2OTIwOTk1NzUzMDI5MTQwNDI
2020-10-19 17:44:19 +08:00
shapelight:
cluster: false #集群配置 true集群环境 false单机环境还需打开pom.xml里的spring-session-data-redis注释
globalSessionTimeout: 3600 #单机环境session过期时间为60分钟
redis:
open: true #是否开启redis缓存 true开启 false关闭
jwt:
# 加密秘钥
secret: e6d96502596d7e7887b76646c5f615d9[api.shapelight.net]
# token有效时长7天单位秒 604800
expire: 2592000
#expire: 30
#2592000三十天
# token有效时长180天单位秒
#expire: 15552000
header: token
#mybatis
mybatis-plus:
mapper-locations: classpath*:/mapper/**/*.xml
#实体扫描多个package用逗号或者分号分隔
typeAliasesPackage: net.shapelight.modules.*.entity
global-config:
#数据库相关配置
db-config:
#主键类型 AUTO:"数据库ID自增", INPUT:"用户输入ID", ID_WORKER:"全局唯一ID (数字类型唯一ID)", UUID:"全局唯一ID UUID";
id-type: AUTO
#字段策略 IGNORED:"忽略判断",NOT_NULL:"非 NULL 判断"),NOT_EMPTY:"非空判断"
field-strategy: NOT_NULL
#驼峰下划线转换
column-underline: true
logic-delete-field: delete_flag #全局逻辑删除字段值 3.3.0开始支持,详情看下面。
logic-delete-value: 1 # 逻辑已删除值(默认为 1)
logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)
banner: false
#原生配置
configuration:
map-underscore-to-camel-case: true
cache-enabled: false
call-setters-on-nulls: true
jdbc-type-for-null: 'null'