Files
intranet_app_manager/src/main/resources/application.properties
T
2022-02-23 17:06:52 +08:00

70 lines
2.6 KiB
Properties

########################################################
### Mysql
########################################################
spring.datasource.url=jdbc:mysql://${ip}:3306/app_manager?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&autoReconnect=true&failOverReadOnly=false
spring.datasource.username=app_manager
spring.datasource.password=app_manager123456
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
########################################################
### Java Persistence Api
########################################################
# Specify the DBMS
spring.jpa.database = MYSQL
# Show or not log for each sql query
spring.jpa.show-sql = true
# Hibernate ddl auto (create, create-drop, update)
spring.jpa.hibernate.ddl-auto = update
# Naming strategy
spring.jpa.hibernate.naming-strategy = org.hibernate.cfg.ImprovedNamingStrategy
spring.jpa.properties.hibernate.dialect= org.hibernate.dialect.MySQL5InnoDBDialect
############################################################
#
# 上传文件大小
#
############################################################
spring.servlet.multipart.max-file-size=300MB
spring.servlet.multipart.max-request-size=300MB
############################################################
#
# ssl
#
############################################################
server.ssl.key-store=classpath:server.pkcs12
server.ssl.key-store-password=123456
server.ssl.key-store-type=PKCS12
server.ssl.key-alias=1
# 对象存储配置
# 当前工作的对象存储模式,分别是local、aliyun、tencent、qiniu
storage.active=local
# 本地对象存储配置信息
storage.local.storagePath=storage
# 这个地方应该是wx模块的WxStorageController的fetch方法对应的地址
storage.local.address=http://${ip}/fetch/
# 阿里云对象存储配置信息
storage.aliyun.endpoint=oss-cn-shenzhen.aliyuncs.com
storage.aliyun.accessKeyId=111111
storage.aliyun.accessKeySecret=xxxxxx
storage.aliyun.bucketName=app_manager
# 腾讯对象存储配置信息
# 请参考 https://cloud.tencent.com/document/product/436/6249
storage.tencent.secretId=AKIDOccMr856uoU1Tsa2MQL5aqseBUWRrb5i
storage.tencent.secretKey=XqtgEhIdrupTs4ygaWlkUUXv3w3FiwuD
storage.tencent.region=ap-shanghai
storage.tencent.bucketName=vytech-1300096589
# 七牛云对象存储配置信息
storage.qiniu.endpoint=http://pd5cb6ulu.bkt.clouddn.com
storage.qiniu.accessKey=111111
storage.qiniu.secretKey=xxxxxx
storage.qiniu.bucketName=app_manager
# 自定义配置
server.port=443
server.http.port=8080
config.debug=debug
server.domain=${ip}
admin.username=admin
admin.password=admin123456