application.properties 4.8 KB
Newer Older
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
1 2 3 4
#spring.profiles.active=dev
#application
application.title=MaxKey
application.name=MaxKey
M
MaxKey 已提交
5
application.formatted-version=v2.6.0 GA
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
6

MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
7
#server port
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
8 9
#server.port=80
server.port=443
M
MaxKey 已提交
10 11
#session default 1800
server.servlet.session.timeout=1800
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
12

MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
13 14 15 16 17 18
#ssl
server.ssl.key-store=maxkeyserver.keystore
server.ssl.key-alias=maxkey
server.ssl.enabled=true
server.ssl.key-store-password=maxkey
server.ssl.key-store-type=JKS
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
19

MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
20 21
#web app context path
server.servlet.context-path=/maxkey
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
22 23
spring.servlet.multipart.enabled=true
spring.servlet.multipart.max-file-size=4194304
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
24

MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
25 26 27 28
#encoding
#server.servlet.encoding.charset=UTF-8
#server.servlet.encoding.enabled=true
#server.servlet.encoding.force=true
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
29

MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
30 31
#datasource
spring.datasource.username=root
MaxKey单点登录官方's avatar
maxkey  
MaxKey单点登录官方 已提交
32
spring.datasource.password=maxkey
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
33
spring.datasource.url=jdbc:mysql://localhost/maxkey?autoReconnect=true&characterEncoding=UTF-8&serverTimezone=UTC
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
34
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
35 36 37
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
#mybatis
mybatis.type-aliases-package=org.maxkey.domain,org.maxkey.domain.apps,
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
38
mybatis.mapper-locations=classpath*:/org/maxkey/persistence/mapper/xml/mysql/*.xml
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
39
mybatis.table-column-escape=true
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
40

MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
41
#redis
M
MaxKey 已提交
42 43 44 45 46 47 48 49
#spring.redis.host=127.0.0.1
#spring.redis.port=6379
#spring.redis.password=password
#spring.redis.timeout=10000
#spring.redis.jedis.pool.max-wait=1000
#spring.redis.jedis.pool.max-idle=200
#spring.redis.lettuce.pool.max-active=-1
#spring.redis.lettuce.pool.min-idle=0
50

MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
51
#mail
M
MaxKey 已提交
52 53 54 55 56 57 58 59
#spring.mail.default-encoding=utf-8
#spring.mail.host=smtp.163.com
#spring.mail.port=465
#spring.mail.username=maxkey@163.com
#spring.mail.password=password
#spring.mail.protocol=smtp
#spring.mail.properties.ssl=true
#spring.mail.properties.sender=maxkey@163.com
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
60 61
spring.mail.properties.mailotp.message.subject=MaxKey One Time PassWord
spring.mail.properties.mailotp.message.template={0} You Token is {1} , it validity in {2}  minutes.
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
62

MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
63 64 65 66 67 68 69 70 71 72
#for freemarker
spring.freemarker.template-loader-path=classpath:/templates/views
spring.freemarker.cache=false
spring.freemarker.charset=UTF-8
spring.freemarker.check-template-location=true
spring.freemarker.content-type=text/html
spring.freemarker.expose-request-attributes=false
spring.freemarker.expose-session-attributes=false
spring.freemarker.request-context-attribute=request
spring.freemarker.suffix=.ftl
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
73

MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
74 75
#static resources
spring.mvc.static-path-pattern=/static/**
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
76 77
spring.messages.basename=classpath:messages/message
spring.messages.encoding=UTF-8
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
78

MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
79
#main
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
80
spring.main.banner-mode=log
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
81
spring.main.allow-bean-definition-overriding=true
82
 
83
# Session store type.
84
spring.session.store-type=none
85 86 87 88 89 90 91
#spring.session.store-type=redis
# Session timeout. If a duration suffix is not specified, seconds is used.
#server.servlet.session.timeout=1800
# Sessions flush mode.
#spring.session.redis.flush-mode=on_save 
# Namespace for keys used to store sessions.
#spring.session.redis.namespace=spring:session 
92

MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
93
###########\u3010Kafka\u96c6\u7fa4\u3011###########
94
spring.kafka.bootstrap-servers=localhost:9092
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
95 96
###########\u3010\u521d\u59cb\u5316\u751f\u4ea7\u8005\u914d\u7f6e\u3011###########
# \u91cd\u8bd5\u6b21\u6570
97
spring.kafka.producer.retries=0
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
98
# \u5e94\u7b54\u7ea7\u522b:\u591a\u5c11\u4e2a\u5206\u533a\u526f\u672c\u5907\u4efd\u5b8c\u6210\u65f6\u5411\u751f\u4ea7\u8005\u53d1\u9001ack\u786e\u8ba4(\u53ef\u90090\u30011\u3001all/-1)
99
spring.kafka.producer.acks=1
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
100
# \u6279\u91cf\u5927\u5c0f
101
spring.kafka.producer.batch-size=16384
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
102
# \u63d0\u4ea4\u5ef6\u65f6
103
spring.kafka.producer.properties.linger.ms=0
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
104 105
# \u5f53\u751f\u4ea7\u7aef\u79ef\u7d2f\u7684\u6d88\u606f\u8fbe\u5230batch-size\u6216\u63a5\u6536\u5230\u6d88\u606flinger.ms\u540e,\u751f\u4ea7\u8005\u5c31\u4f1a\u5c06\u6d88\u606f\u63d0\u4ea4\u7ed9kafka
# linger.ms\u4e3a0\u8868\u793a\u6bcf\u63a5\u6536\u5230\u4e00\u6761\u6d88\u606f\u5c31\u63d0\u4ea4\u7ed9kafka,\u8fd9\u65f6\u5019batch-size\u5176\u5b9e\u5c31\u6ca1\u7528\u4e86
106

MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
107
# \u751f\u4ea7\u7aef\u7f13\u51b2\u533a\u5927\u5c0f
108
spring.kafka.producer.buffer-memory = 33554432
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
109
# Kafka\u63d0\u4f9b\u7684\u5e8f\u5217\u5316\u548c\u53cd\u5e8f\u5217\u5316\u7c7b
110 111
spring.kafka.producer.key-serializer=org.apache.kafka.common.serialization.StringSerializer
spring.kafka.producer.value-serializer=org.apache.kafka.common.serialization.StringSerializer
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
112
# \u81ea\u5b9a\u4e49\u5206\u533a\u5668
113
# spring.kafka.producer.properties.partitioner.class=com.felix.kafka.producer.CustomizePartitioner
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
114 115 116 117 118 119

#springfox.documentation.swagger.v2.path=/api-docs
#Swagger Configure Properties
maxkey.swagger.enable=true
maxkey.swagger.title=MaxKey\u5355\u70b9\u767b\u5f55\u8ba4\u8bc1\u7cfb\u7edfapi\u6587\u6863
maxkey.swagger.description=MaxKey\u5355\u70b9\u767b\u5f55\u8ba4\u8bc1\u7cfb\u7edfapi\u6587\u6863
M
MaxKey 已提交
120 121 122 123 124 125
maxkey.swagger.version=${application.formatted-version}

management.security.enabled=false
#management.endpoints.jmx.exposure.include=health,info
management.endpoints.web.exposure.include=metrics,health,info,env