mirror of
https://gitee.com/farsunset/cim.git
synced 2025-06-17 07:35:25 +08:00
77 lines
3.0 KiB
Properties
77 lines
3.0 KiB
Properties
server.port=8080
|
|
spring.profiles.active=dev
|
|
|
|
##################################################################
|
|
# JDBC Config #
|
|
##################################################################
|
|
spring.datasource.url = jdbc:mysql://127.0.0.1:3306/cim?useUnicode=true&characterEncoding=utf8&serverTimezone=UTC
|
|
spring.datasource.username = cim
|
|
spring.datasource.password = cimv587!
|
|
spring.datasource.type=com.zaxxer.hikari.HikariDataSource
|
|
spring.datasource.driver-class-name = com.mysql.cj.jdbc.Driver
|
|
|
|
spring.datasource.hikari.minimum-idle=5
|
|
spring.datasource.hikari.maximum-pool-size=10
|
|
spring.datasource.hikari.auto-commit=true
|
|
spring.datasource.hikari.idle-timeout=30000
|
|
spring.datasource.hikari.pool-name=MASTER_HIKARI_POOL
|
|
spring.datasource.hikari.max-lifetime=120000
|
|
spring.datasource.hikari.connection-timeout=30000
|
|
spring.datasource.hikari.connection-test-query=SELECT 1
|
|
spring.datasource.hikari.validation-timeout=600000
|
|
|
|
##################################################################
|
|
# JPA Config #
|
|
##################################################################
|
|
spring.jpa.database = MYSQL
|
|
spring.jpa.database-platform=org.hibernate.dialect.MySQL5InnoDBDialect
|
|
spring.jpa.hibernate.ddl-auto = update
|
|
spring.jpa.open-in-view = false
|
|
spring.jpa.hibernate.naming.implicit-strategy= org.hibernate.boot.model.naming.ImplicitNamingStrategyJpaCompliantImpl
|
|
spring.jpa.hibernate.naming.physical-strategy= org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
|
|
|
|
##################################################################
|
|
# Redis Config #
|
|
##################################################################
|
|
spring.redis.host=127.0.0.1
|
|
spring.redis.port=6379
|
|
spring.redis.database=12
|
|
spring.redis.lettuce.pool.max-active=10
|
|
spring.redis.lettuce.pool.max-wait= 10s
|
|
spring.redis.lettuce.pool.max-idle=5
|
|
spring.redis.lettuce.pool.min-idle=1
|
|
spring.redis.timeout=10s
|
|
|
|
##################################################################
|
|
# Freemarker Config #
|
|
##################################################################
|
|
spring.freemarker.suffix=.html
|
|
spring.freemarker.charset=utf-8
|
|
spring.freemarker.content-type=text/html
|
|
spring.freemarker.cache=false
|
|
spring.freemarker.templateLoaderPath=classpath:/page/
|
|
spring.freemarker.settings.auto_import = /ftl/spring.ftl as spring
|
|
spring.messages.encoding=UTF-8
|
|
spring.messages.basename=i18n/messages
|
|
|
|
|
|
##################################################################
|
|
# CIM Config #
|
|
##################################################################
|
|
|
|
#commented to disable this port.
|
|
cim.app.port=23456
|
|
cim.app.enable=true
|
|
|
|
cim.websocket.enable=true
|
|
cim.websocket.port=34567
|
|
cim.websocket.path=/
|
|
## json or protobuf
|
|
cim.websocket.protocol=protobuf
|
|
|
|
#please setting your p12 info and appId.
|
|
cim.apns.p12.file=/apns/app.p12
|
|
cim.apns.p12.password=123
|
|
cim.apns.debug=false
|
|
cim.apns.app-id=com.xxx.xxx.ios
|