application-https.properties 27.1 KB
Newer Older
M
MaxKey 已提交
1
############################################################################
M
MaxKey 已提交
2 3 4 5 6 7 8 9 10 11 12 13 14 15
#  Copyright [2021] [MaxKey of copyright http://www.maxkey.top]
#  
#  Licensed under the Apache License, Version 2.0 (the "License");
#  you may not use this file except in compliance with the License.
#  You may obtain a copy of the License at
#  
#      http://www.apache.org/licenses/LICENSE-2.0
#  
#  Unless required by applicable law or agreed to in writing, software
#  distributed under the License is distributed on an "AS IS" BASIS,
#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#  See the License for the specific language governing permissions and
#  limitations under the License.
############################################################################
M
MaxKey 已提交
16 17
#spring.profiles.active=http                                               #
############################################################################
M
MaxKey 已提交
18
#server port
19
server.port                                     =443
M
MaxKey 已提交
20
#session default 1800
M
MaxKey 已提交
21 22
#1800s =30m
#28800s=8h
23
server.servlet.session.timeout                  =1800
M
MaxKey 已提交
24
#server context path
25
server.servlet.context-path                     =/maxkey
26
#nacos
27 28 29
spring.cloud.nacos.discovery.enabled            =${NACOS_DISCOVERY_ENABLED:false}
spring.cloud.nacos.discovery.instance-enabled   =false
spring.cloud.nacos.discovery.server-addr        =${NACOS_DISCOVERY_SERVER_ADDR:127.0.0.1:8848}
M
MaxKey 已提交
30 31 32
############################################################################
#domain name configuration                                                 #
############################################################################
33 34 35 36 37 38 39 40 41 42 43 44
maxkey.server.scheme                            =https
maxkey.server.basedomain                        =${SERVER_DOMAIN:maxkey.top}
maxkey.server.domain                            =sso.${maxkey.server.basedomain}
maxkey.server.name                              =${maxkey.server.scheme}://${maxkey.server.domain}
maxkey.server.uri                               =${maxkey.server.name}/maxkey
#default.uri                
maxkey.server.default.uri                       =${maxkey.server.uri}/maxkey/appList
maxkey.server.mgt.uri                           =${maxkey.server.name}:9527/maxkey-mgt/login
maxkey.server.authz.uri                         =${maxkey.server.name}/maxkey
#InMemory 0 , Redis 2               
maxkey.server.persistence                       =${SERVER_PERSISTENCE:0}
#identity               
45
maxkey.server.kafka.support                     =${SERVER_KAFKA_SUPPORT:false}
46 47
#issuer name                
maxkey.app.issuer                               =CN=ConSec,CN=COM,CN=SH
M
MaxKey 已提交
48 49 50 51 52

############################################################################
#Login configuration                                                       #
############################################################################
#enable captcha
53
maxkey.login.captcha                            =${LOGIN_CAPTCHA:true}
M
MaxKey 已提交
54
#text or arithmetic
55
maxkey.login.captcha.type                       =${LOGIN_CAPTCHA_TYPE:text}
M
MaxKey 已提交
56
#enable two factor,use one time password
57
maxkey.login.mfa                                =${LOGIN_MFA_ENABLED:true}
M
MaxKey 已提交
58
#TimeBasedOtpAuthn MailOtpAuthn SmsOtpAuthnYunxin SmsOtpAuthnAliyun SmsOtpAuthnTencentCloud
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
maxkey.login.mfa.type                           =${LOGIN_MFA_TYPE:TimeBasedOtpAuthn}
#enable social sign on          
maxkey.login.socialsignon                       =${LOGIN_SOCIAL_ENABLED:true}
#social sign on providers           
maxkey.login.socialsignon.providers             =${LOGIN_SOCIAL_PROVIDERS:gitee,wechatopen,sinaweibo,google,qq,dingtalk,microsoft,facebook,workweixin}
#Enable kerberos/SPNEGO         
maxkey.login.kerberos                           =false
#wsFederation           
maxkey.login.wsfederation                       =false
#remeberme          
maxkey.login.remeberme                          =${LOGIN_REMEBERME:true}
#validity           
maxkey.login.remeberme.validity                 =0
#to default application web site            
maxkey.login.default.uri                        =appList
maxkey.ipaddress.whitelist                      =false
maxkey.notices.visible                          =false
M
MaxKey 已提交
76

M
MaxKey 已提交
77 78 79
############################################################################
#ssl configuration                                                         #
############################################################################
80 81 82 83 84
server.ssl.key-store                            =${SSL_KEY_STORE:classpath:maxkeyserver.keystore}
server.ssl.key-alias                            =${SSL_KEY_ALIAS:maxkey}
server.ssl.enabled                              =${SSL_ENABLED:true}
server.ssl.key-store-password                   =${SSL_KEY_PASSWORD:maxkey}
server.ssl.key-store-type                       =${SSL_KEY_STORE_TYPE:JKS}
M
MaxKey 已提交
85

M
MaxKey 已提交
86
############################################################################
M
MaxKey 已提交
87 88 89 90 91
#database configuration 
#   supported database
#       mysql
#       highgo
#       postgresql
M
MaxKey 已提交
92
############################################################################
93
spring.datasource.type                          =com.alibaba.druid.pool.DruidDataSource
M
MaxKey 已提交
94
#mysql
95 96 97 98
spring.datasource.driver-class-name             =com.mysql.cj.jdbc.Driver
spring.datasource.username                      =${DATABASE_USER:root}
spring.datasource.password                      =${DATABASE_PWD:maxkey}
spring.datasource.url                           =jdbc:mysql://${DATABASE_HOST:localhost}:${DATABASE_PORT:3306}/${DATABASE_NAME:maxkey}?autoReconnect=true&characterEncoding=UTF-8&serverTimezone=UTC
M
MaxKey 已提交
99
#highgo
100
#spring.datasource.driver-class-name=com.highgo.jdbc.Driver
M
MaxKey 已提交
101 102 103 104
#spring.datasource.username=highgo
#spring.datasource.password=High@123
#spring.datasource.url=jdbc:highgo://192.168.56.107:5866/highgo?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
#postgresql
105
#spring.datasource.driver-class-name=org.postgresql.Driver
M
MaxKey 已提交
106 107 108
#spring.datasource.username=root
#spring.datasource.password=maxkey!
#spring.datasource.url=jdbc:postgresql://localhost/maxkey?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
M
MaxKey 已提交
109
#mybatis
110 111 112 113 114 115 116
mybatis.dialect                                 =mysql
mybatis.type-aliases-package                    =org.maxkey.entity,org.maxkey.entity.apps,
mybatis.mapper-locations                        =classpath*:/org/maxkey/persistence/mapper/xml/${mybatis.dialect}/*.xml
mybatis.table-column-snowflake-datacenter-id    =1
mybatis.table-column-snowflake-machine-id       =1
mybatis.table-column-escape                     =false
mybatis.table-column-case                       =lowercase
M
MaxKey 已提交
117

M
MaxKey 已提交
118 119 120
############################################################################
#redis server  configuration                                               #
############################################################################
121 122 123 124 125 126 127 128
spring.redis.host                               =${REDIS_HOST:127.0.0.1}
spring.redis.port                               =${REDIS_PORT:6379}
spring.redis.password                           =${REDIS_PWD: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
M
MaxKey 已提交
129

M
MaxKey 已提交
130 131 132
############################################################################
#mail configuration                                                        #
############################################################################
133 134 135 136 137 138 139 140 141 142 143 144
spring.mail.default-encoding                    =utf-8
spring.mail.host                                =${MAIL_HOST:smtp.163.com}
spring.mail.port                                =${MAIL_PORT:465}
spring.mail.username                            =${MAIL_USER:maxkey@163.com}
spring.mail.password                            =${MAIL_PWD:password}
spring.mail.protocol                            =smtp
spring.mail.properties.ssl                      =true
spring.mail.properties.sender                   =${MAIL_SENDER:maxkey@163.com}
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.
spring.mail.properties.mailotp.message.type     =html
spring.mail.properties.mailotp.message.validity =300
M
MaxKey 已提交
145

M
MaxKey 已提交
146 147 148
############################################################################
#Spring Session for Cluster configuration                                  #
############################################################################
M
MaxKey 已提交
149
# Session store type.
150
spring.session.store-type                       =none
M
MaxKey 已提交
151 152 153 154 155 156 157 158
#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 

M
MaxKey 已提交
159 160 161
############################################################################
#Kafka for connectors configuration                                        #
############################################################################
162 163 164 165 166 167 168 169 170 171 172 173 174 175
spring.kafka.bootstrap-servers                  =${KAFKA_SERVERS:localhost:9092}
# retries   
spring.kafka.producer.retries                   =0
# acks  
spring.kafka.producer.acks                      =1
# batch-size    
spring.kafka.producer.batch-size                =16384
# linger.ms 
spring.kafka.producer.properties.linger.ms      =0
# buffer-memory 
spring.kafka.producer.buffer-memory             =33554432
# serializer    
spring.kafka.producer.key-serializer            =org.apache.kafka.common.serialization.StringSerializer
spring.kafka.producer.value-serializer          =org.apache.kafka.common.serialization.StringSerializer
M
http  
MaxKey 已提交
176 177
# partitioner
#spring.kafka.producer.properties.partitioner.class=com.felix.kafka.producer.CustomizePartitioner
M
MaxKey 已提交
178

M
MaxKey 已提交
179
############################################################################ 
M
MaxKey 已提交
180
#SMS Message Login configuration                                           #
181
#aliyun yunxin tencentcloud                                                #
M
MaxKey 已提交
182 183
############################################################################
#default
184
maxkey.otp.sms.provider                         =${SMS_PROVIDER:yunxin}
185 186 187 188 189 190 191 192 193 194 195 196 197 198 199
#aliyun     
maxkey.otp.sms.aliyun.accesskeyid               =${SMS_ALIYUN_ACCESSKEYID:94395d754eb55693043f5d6a2b772ef4}
maxkey.otp.sms.aliyun.accesssecret              =${SMS_ALIYUN_ACCESSSECRET:05d5485357bc}
maxkey.otp.sms.aliyun.templatecode              =${SMS_ALIYUN_TEMPLATECODE:14860095}
maxkey.otp.sms.aliyun.signname                  =${SMS_ALIYUN_SIGNNAME:maxkey}
#yunxin     
maxkey.otp.sms.yunxin.appkey                    =${SMS_YUNXIN_APPKEY:94395d754eb55693043f5d6a2b772ef3}
maxkey.otp.sms.yunxin.appsecret                 =${SMS_YUNXIN_APPSECRET:05d5485357bc}
maxkey.otp.sms.yunxin.templateid                =${SMS_YUNXIN_TEMPLATEID:14860099}
#tencentcloud       
maxkey.otp.sms.tencentcloud.secretid            =${SMS_TENCENTCLOUD_SECRETID:94395d754eb55693043f5d6a2b772ef4}
maxkey.otp.sms.tencentcloud.secretkey           =${SMS_TENCENTCLOUD_SECRETKEY:05d5485357bc}
maxkey.otp.sms.tencentcloud.smssdkappid         =${SMS_TENCENTCLOUD_SMSSDKAPPID:1486220095}
maxkey.otp.sms.tencentcloud.templateid          =${SMS_TENCENTCLOUD_TEMPLATEID:14860095}
maxkey.otp.sms.tencentcloud.sign                =${SMS_TENCENTCLOUD_SIGN:1486009522}
M
MaxKey 已提交
200

M
MaxKey 已提交
201 202 203
############################################################################ 
#Time-based One-Time Password configuration                                #
############################################################################
204 205 206 207 208
maxkey.otp.policy.type                          =totp
maxkey.otp.policy.digits                        =6
maxkey.otp.policy.issuer                        =${OTP_POLICY_ISSUER:MaxKey}
maxkey.otp.policy.domain                        =${maxkey.server.domain}
maxkey.otp.policy.period                        =30
M
MaxKey 已提交
209

M
MaxKey 已提交
210 211 212
############################################################################ 
#LDAP Login support configuration                                          #
############################################################################
213 214 215 216 217 218 219 220 221 222 223 224 225 226
maxkey.support.ldap.enable                      =${LDAP_ENABLE:false}
maxkey.support.ldap.jit                         =false
#openldap,activedirectory,normal    
maxkey.support.ldap.product                     =${LDAP_PRODUCT:openldap}
maxkey.support.ldap.ssl                         =${LDAP_SSL:false}
maxkey.support.ldap.providerurl                 =${LDAP_PROVIDERURL:ldap://localhost:389}
maxkey.support.ldap.principal                   =${LDAP_PRINCIPAL:cn=Manager,dc=maxcrc,dc=com}
maxkey.support.ldap.credentials                 =${LDAP_CREDENTIALS:secret}
maxkey.support.ldap.basedn                      =${LDAP_BASEDN:dc=maxcrc,dc=com}
maxkey.support.ldap.filter                      =(uid=%s)
maxkey.support.ldap.truststore                  =${LDAP_TRUSTSTORE:maxkey}
maxkey.support.ldap.truststorepassword          =${LDAP_TRUSTSTORE_PASSWORD:maxkey}
#activedirectory effective  
maxkey.support.ldap.activedirectory.domain      =${LDAP_AD_DOMAIN:MAXKEY.ORG}
M
MaxKey 已提交
227

M
MaxKey 已提交
228
############################################################################ 
M
MaxKey 已提交
229 230
#Kerberos Login configuration                                              #
#short name of user domain must be in upper case,eg:MAXKEY                 #
M
MaxKey 已提交
231
############################################################################
232
maxkey.support.kerberos.default.userdomain      =MAXKEY
M
MaxKey 已提交
233
#short name of user domain must be in upper case,eg:MAXKEY.ORG
234
maxkey.support.kerberos.default.fulluserdomain  =MAXKEY.ORG
M
MaxKey 已提交
235
#last 8Bit crypto for Kerberos web Authentication 
236
maxkey.support.kerberos.default.crypto          =846KZSzYq56M6d5o
M
MaxKey 已提交
237
#Kerberos Authentication server RUL
238
maxkey.support.kerberos.default.redirecturi     =http://sso.maxkey.top/kerberos/authn/
M
MaxKey 已提交
239

M
MaxKey 已提交
240
############################################################################ 
M
MaxKey 已提交
241
#HTTPHEADER Login configuration                                            #
M
MaxKey 已提交
242
############################################################################
243 244
maxkey.support.httpheader.enable                =false
maxkey.support.httpheader.headername            =header-user
M
MaxKey 已提交
245 246 247 248
# iv-user is for IBM Security Access Manager
#config.httpheader.headername=iv-user

############################################################################ 
M
MaxKey 已提交
249
#BASIC Login support configuration                                         #
M
MaxKey 已提交
250
############################################################################
251
maxkey.support.basic.enable                     =false
M
MaxKey 已提交
252

M
MaxKey 已提交
253
#############################################################################
M
MaxKey 已提交
254
#WsFederation Login support configuration
M
MaxKey 已提交
255 256 257 258 259 260 261 262
#identifier: the identifer for the ADFS server
#url: the login url for ADFS
#principal: the name of the attribute/assertion returned by ADFS that contains the principal's username.
#relyingParty: the identifier of the CAS Server as it has been configured in ADFS.
#tolerance: (optional) the amount of drift to allow when validating the timestamp on the token. Default: 10000 (ms)
#attributeMutator: (optional) a class (defined by you) that can modify the attributes/assertions returned by the ADFS server
#signingCertificate: ADFS's signing certificate used to validate the token/assertions issued by ADFS.
############################################################################
263 264 265 266 267 268 269 270
maxkey.support.wsfederation.identifier          =http://adfs.maxkey.top/adfs/services/trust
maxkey.support.wsfederation.url                 =https://adfs.maxkey.top/adfs/ls/
maxkey.support.wsfederation.principal           =upn
maxkey.support.wsfederation.relyingParty        =urn:federation:connsec
maxkey.support.wsfederation.signingCertificate  =adfs-signing.crt
maxkey.support.wsfederation.tolerance           =10000
maxkey.support.wsfederation.upn.suffix          =maxkey.org
maxkey.support.wsfederation.logoutUrl           =https://adfs.maxkey.top/adfs/ls/?wa=wsignout1.0
M
MaxKey 已提交
271 272

#############################################################################
M
MaxKey 已提交
273 274
#OIDC V1.0 METADATA configuration                                           #
#############################################################################
275 276 277 278
maxkey.oidc.metadata.issuer                     =${maxkey.server.name}/maxkey
maxkey.oidc.metadata.authorizationEndpoint      =${maxkey.server.name}/maxkey/authz/oauth/v20/authorize
maxkey.oidc.metadata.tokenEndpoint              =${maxkey.server.name}/maxkey/authz/oauth/v20/token
maxkey.oidc.metadata.userinfoEndpoint           =${maxkey.server.name}/maxkey/api/connect/userinfo
M
MaxKey 已提交
279 280

#############################################################################
M
MaxKey 已提交
281 282
#SAML V2.0 configuration                                                    #
#############################################################################
M
MaxKey 已提交
283
#saml common
284 285 286 287 288
maxkey.saml.v20.max.parser.pool.size                            =2
maxkey.saml.v20.assertion.validity.time.ins.seconds             =90
maxkey.saml.v20.replay.cache.life.in.millis                     =14400000
maxkey.saml.v20.issue.instant.check.clock.skew.in.seconds       =90
maxkey.saml.v20.issue.instant.check.validity.time.in.seconds    =300
M
MaxKey 已提交
289
#saml idp keystore
290 291 292
maxkey.saml.v20.idp.keystore.password                           =maxkey
maxkey.saml.v20.idp.keystore.private.key.password               =maxkey
maxkey.saml.v20.idp.keystore                                    =classpath\:config/samlServerKeystore.jks
M
MaxKey 已提交
293
#keystore id for sec
294 295 296
maxkey.saml.v20.idp.issuing.entity.id                           =maxkey.top
maxkey.saml.v20.idp.issuer                                      =https://sso.maxkey.top/maxkey/saml
maxkey.saml.v20.idp.receiver.endpoint                           =https\://sso.maxkey.top/
M
MaxKey 已提交
297
#saml sp keystore
298 299 300 301
maxkey.saml.v20.sp.keystore.password                            =maxkey
maxkey.saml.v20.sp.keystore.private.key.password                =maxkey
maxkey.saml.v20.sp.keystore                                     =classpath\:config/samlClientKeystore.jks
maxkey.saml.v20.sp.issuing.entity.id                            =client.maxkey.org
M
MaxKey 已提交
302
#Saml v20 METADATA
303 304 305 306 307 308 309 310 311
maxkey.saml.v20.metadata.orgName                =MaxKeyTop
maxkey.saml.v20.metadata.orgDisplayName         =MaxKeyTop
maxkey.saml.v20.metadata.orgURL                 =https://www.maxkey.top
maxkey.saml.v20.metadata.contactType            =technical
maxkey.saml.v20.metadata.company                =MaxKeyTop
maxkey.saml.v20.metadata.givenName              =maxkey
maxkey.saml.v20.metadata.surName                =maxkey
maxkey.saml.v20.metadata.emailAddress           =maxkeysupport@163.com
maxkey.saml.v20.metadata.telephoneNumber        =4008981111
M
MaxKey 已提交
312 313 314

############################################################################
#              Social Sign On Configuration                                #
M
MaxKey 已提交
315
#you config client.id & client.secret only                                 #
M
MaxKey 已提交
316 317
############################################################################
#gitee
318 319 320 321 322 323 324 325
maxkey.socialsignon.gitee.provider              =gitee
maxkey.socialsignon.gitee.provider.name         =Gitee
maxkey.socialsignon.gitee.icon                  =images/social/gitee.png
maxkey.socialsignon.gitee.client.id             =${SOCIAL_GITEE_CLIENTID:ee6fdc484b3398d17e77d6ff37fd8b9fe502106398c7b22bf5522d3c01303f45}
maxkey.socialsignon.gitee.client.secret         =${SOCIAL_GITEE_CLIENTSECRET:d6c3558f295f044df538c966a9084166f9a877c7a7392543184007a5faccdbad}
maxkey.socialsignon.gitee.account.id            =id
maxkey.socialsignon.gitee.hidden                =false
maxkey.socialsignon.gitee.sortorder             =1
M
MaxKey 已提交
326
#wechat
327 328 329 330 331 332 333 334
maxkey.socialsignon.wechatopen.provider         =wechatopen
maxkey.socialsignon.wechatopen.provider.name    =\u5fae\u4fe1
maxkey.socialsignon.wechatopen.icon             =images/social/wechat.png
maxkey.socialsignon.wechatopen.client.id        =${SOCIAL_WECHATOPEN_CLIENTID:ee6fdc484b3398d17e7}
maxkey.socialsignon.wechatopen.client.secret    =${SOCIAL_WECHATOPEN_CLIENTSECRET:7a5faccdbad}
maxkey.socialsignon.wechatopen.account.id       =id
maxkey.socialsignon.wechatopen.hidden           =false
maxkey.socialsignon.wechatopen.sortorder        =2
M
MaxKey 已提交
335
#work weixin
336 337 338 339 340 341 342 343 344
maxkey.socialsignon.workweixin.provider         =workweixin
maxkey.socialsignon.workweixin.provider.name    =\u4F01\u4E1A\u5fae\u4fe1
maxkey.socialsignon.workweixin.icon             =images/social/wechat_enterprise.png
maxkey.socialsignon.workweixin.client.id        =${SOCIAL_WORKWEIXIN_CLIENTID:ww61ca142e1fe5b8ca}
maxkey.socialsignon.workweixin.client.secret    =${SOCIAL_WORKWEIXIN_CLIENTSECRET:CfWEoALuKdSKzXiV-QWXeGSD5zPd6Svze3GR_gB5eFs}
maxkey.socialsignon.workweixin.agent.id         =${SOCIAL_WORKWEIXIN_AGENTID:1000002}
maxkey.socialsignon.workweixin.account.id       =id
maxkey.socialsignon.workweixin.hidden           =true
maxkey.socialsignon.workweixin.sortorder        =2
M
MaxKey 已提交
345
#sina weibo
346 347 348 349 350 351 352 353
maxkey.socialsignon.sinaweibo.provider          =sinaweibo
maxkey.socialsignon.sinaweibo.provider.name     =\u65b0\u6d6a\u5fae\u535a
maxkey.socialsignon.sinaweibo.icon              =images/social/weibo.png
maxkey.socialsignon.sinaweibo.client.id         =${SOCIAL_SINAWEIBO_CLIENTID:3379757634}
maxkey.socialsignon.sinaweibo.client.secret     =${SOCIAL_SINAWEIBO_CLIENTSECRET:1adfdf9800299037bcab9d1c238664ba}
maxkey.socialsignon.sinaweibo.account.id        =id
maxkey.socialsignon.sinaweibo.hidden            =false
maxkey.socialsignon.sinaweibo.sortorder         =3
M
MaxKey 已提交
354
#Google
355 356 357 358 359 360 361 362
maxkey.socialsignon.google.provider             =google
maxkey.socialsignon.google.provider.name        =Google
maxkey.socialsignon.google.icon                 =images/social/google.png
maxkey.socialsignon.google.client.id            =${SOCIAL_GOOGLE_CLIENTID:519914515488.apps.googleusercontent.com}
maxkey.socialsignon.google.client.secret        =${SOCIAL_GOOGLE_CLIENTSECRET:3aTW3Iw7e11QqMnHxciCaXTt}
maxkey.socialsignon.google.account.id           =id
maxkey.socialsignon.google.hidden               =false
maxkey.socialsignon.google.sortorder            =4
M
MaxKey 已提交
363
#dingtalk
364 365 366 367 368 369 370 371
maxkey.socialsignon.dingtalk.provider           =dingtalk
maxkey.socialsignon.dingtalk.provider.name      =dingtalk
maxkey.socialsignon.dingtalk.icon               =images/social/dingtalk.png
maxkey.socialsignon.dingtalk.client.id          =${SOCIAL_DINGTALK_CLIENTID:dingoawf2jyiwh2uzqnphg}
maxkey.socialsignon.dingtalk.client.secret      =${SOCIAL_DINGTALK_CLIENTSECRET:Crm7YJbMKfRlvG2i1SHpg4GHVpqF_oXiEjhmRQyiSiuzNRWpbFh9i0UjDTfhOoN9}
maxkey.socialsignon.dingtalk.account.id         =openid
maxkey.socialsignon.dingtalk.hidden             =false
maxkey.socialsignon.dingtalk.sortorder          =5
M
MaxKey 已提交
372
#QQ
373 374 375 376 377 378 379 380
maxkey.socialsignon.qq.provider                 =qq
maxkey.socialsignon.qq.provider.name            =QQ
maxkey.socialsignon.qq.icon                     =images/social/qq.png
maxkey.socialsignon.qq.client.id                =${SOCIAL_QQ_CLIENTID:101225363}
maxkey.socialsignon.qq.client.secret            =${SOCIAL_QQ_CLIENTSECRET:8577d75e0eb4a91ac549cc8be3371bfd}
maxkey.socialsignon.qq.account.id               =openid
maxkey.socialsignon.qq.hidden                   =false
maxkey.socialsignon.qq.sortorder                =6
M
MaxKey 已提交
381
#Microsoft
382 383 384 385 386 387 388 389
maxkey.socialsignon.microsoft.provider          =microsoft
maxkey.socialsignon.microsoft.provider.name     =Microsoft
maxkey.socialsignon.microsoft.icon              =images/social/microsoft.png
maxkey.socialsignon.microsoft.client.id         =${SOCIAL_MICROSOFT_CLIENTID:24aa73b6-7928-4e64-bd64-d8682e650f95}
maxkey.socialsignon.microsoft.client.secret     =${SOCIAL_MICROSOFT_CLIENTSECRET:PF[_AthtjVrtWVO2mNy@CJxY1@Z8FNf5}
maxkey.socialsignon.microsoft.account.id        =id
maxkey.socialsignon.microsoft.hidden            =false
maxkey.socialsignon.microsoft.sortorder         =7
M
MaxKey 已提交
390
#facebook
391 392 393 394 395 396 397 398
maxkey.socialsignon.facebook.provider           =facebook
maxkey.socialsignon.facebook.provider.name      =facebook
maxkey.socialsignon.facebook.icon               =images/social/facebook.png
maxkey.socialsignon.facebook.client.id          =${SOCIAL_FACEBOOK_CLIENTID:appKey}
maxkey.socialsignon.facebook.client.secret      =${SOCIAL_FACEBOOK_CLIENTSECRET:appSecret}
maxkey.socialsignon.facebook.account.id         =id
maxkey.socialsignon.facebook.hidden             =false
maxkey.socialsignon.facebook.sortorder          =8
M
MaxKey 已提交
399

M
MaxKey 已提交
400 401 402
############################################################################
#Management endpoints configuration                                        #
############################################################################
403
management.security.enabled                     =false
M
MaxKey 已提交
404 405
#management.endpoints.jmx.exposure.include=health,info
#management.endpoints.web.exposure.include=metrics,health,info,env
406 407
management.endpoints.web.exposure.include       =*
management.endpoint.health.show-details         =ALWAYS
M
MaxKey 已提交
408
#Spring Boot Admin Client
409 410
spring.boot.admin.client.url                    =${SPRING_BOOT_ADMIN_URL:http://127.0.0.1:9528}
management.health.redis.enabled                 =false
M
MaxKey 已提交
411

M
MaxKey 已提交
412 413 414 415
############################################################################
#springfox.documentation.swagger.v2.path=/api-docs                         #
#Swagger Configure Properties                                              #
############################################################################
416 417 418 419
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
maxkey.swagger.version                          =${application.formatted-version}
M
MaxKey 已提交
420 421 422 423

############################################################################
#freemarker configuration                                                  #
############################################################################
424 425 426 427 428 429 430 431 432
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
M
MaxKey 已提交
433 434 435 436

############################################################################
#static resources configuration                                            #
############################################################################
437 438 439
spring.mvc.static-path-pattern                  =/static/**
spring.messages.basename                        =classpath:messages/message
spring.messages.encoding                        =UTF-8
M
MaxKey 已提交
440 441 442 443 444 445 446 447 448 449 450 451

############################################################################
#server servlet encoding configuration                                     #
############################################################################
#encoding
#server.servlet.encoding.charset=UTF-8
#server.servlet.encoding.enabled=true
#server.servlet.encoding.force=true

############################################################################
#Servlet multipart configuration                                           #
############################################################################
452 453
spring.servlet.multipart.enabled                =true
spring.servlet.multipart.max-file-size          =4194304