application-https.properties 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454
  1. ############################################################################
  2. # Copyright [2021] [MaxKey of copyright http://www.maxkey.top]
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. ############################################################################
  16. #spring.profiles.active=http #
  17. ############################################################################
  18. #server port
  19. server.port =443
  20. #session default 1800
  21. #1800s =30m
  22. #28800s=8h
  23. server.servlet.session.timeout =1800
  24. #server context path
  25. server.servlet.context-path =/maxkey
  26. #nacos
  27. spring.cloud.nacos.discovery.enabled =${NACOS_DISCOVERY_ENABLED:false}
  28. spring.cloud.nacos.discovery.instance-enabled =false
  29. spring.cloud.nacos.discovery.server-addr =${NACOS_DISCOVERY_SERVER_ADDR:127.0.0.1:8848}
  30. ############################################################################
  31. #domain name configuration #
  32. ############################################################################
  33. maxkey.server.scheme =https
  34. maxkey.server.basedomain =${SERVER_DOMAIN:maxkey.top}
  35. maxkey.server.domain =sso.${maxkey.server.basedomain}
  36. maxkey.server.name =${maxkey.server.scheme}://${maxkey.server.domain}
  37. maxkey.server.uri =${maxkey.server.name}/maxkey
  38. #default.uri
  39. maxkey.server.default.uri =${maxkey.server.uri}/maxkey/appList
  40. maxkey.server.mgt.uri =${maxkey.server.name}:9527/maxkey-mgt/login
  41. maxkey.server.authz.uri =${maxkey.server.name}/maxkey
  42. #InMemory 0 , Redis 2
  43. maxkey.server.persistence =${SERVER_PERSISTENCE:0}
  44. #identity
  45. maxkey.identity.kafkasupport =${SERVER_KAFKA_SUPPORT:false}
  46. #issuer name
  47. maxkey.app.issuer =CN=ConSec,CN=COM,CN=SH
  48. ############################################################################
  49. #Login configuration #
  50. ############################################################################
  51. #enable captcha
  52. maxkey.login.captcha =${LOGIN_CAPTCHA:true}
  53. #text or arithmetic
  54. maxkey.login.captcha.type =${LOGIN_CAPTCHA_TYPE:text}
  55. #enable two factor,use one time password
  56. maxkey.login.mfa =${LOGIN_MFA_ENABLED:true}
  57. #TimeBasedOtpAuthn MailOtpAuthn SmsOtpAuthnYunxin SmsOtpAuthnAliyun SmsOtpAuthnTencentCloud
  58. maxkey.login.mfa.type =${LOGIN_MFA_TYPE:TimeBasedOtpAuthn}
  59. #enable social sign on
  60. maxkey.login.socialsignon =${LOGIN_SOCIAL_ENABLED:true}
  61. #social sign on providers
  62. maxkey.login.socialsignon.providers =${LOGIN_SOCIAL_PROVIDERS:gitee,wechatopen,sinaweibo,google,qq,dingtalk,microsoft,facebook,workweixin}
  63. #Enable kerberos/SPNEGO
  64. maxkey.login.kerberos =false
  65. #wsFederation
  66. maxkey.login.wsfederation =false
  67. #remeberme
  68. maxkey.login.remeberme =${LOGIN_REMEBERME:true}
  69. #validity
  70. maxkey.login.remeberme.validity =0
  71. #to default application web site
  72. maxkey.login.default.uri =appList
  73. maxkey.ipaddress.whitelist =false
  74. maxkey.notices.visible =false
  75. ############################################################################
  76. #ssl configuration #
  77. ############################################################################
  78. server.ssl.key-store =${SSL_KEY_STORE:classpath:maxkeyserver.keystore}
  79. server.ssl.key-alias =${SSL_KEY_ALIAS:maxkey}
  80. server.ssl.enabled =${SSL_ENABLED:true}
  81. server.ssl.key-store-password =${SSL_KEY_PASSWORD:maxkey}
  82. server.ssl.key-store-type =${SSL_KEY_STORE_TYPE:JKS}
  83. ############################################################################
  84. #database configuration
  85. # supported database
  86. # mysql
  87. # highgo
  88. # postgresql
  89. ############################################################################
  90. spring.datasource.type =com.alibaba.druid.pool.DruidDataSource
  91. #mysql
  92. spring.datasource.driver-class-name =com.mysql.cj.jdbc.Driver
  93. spring.datasource.username =${DATABASE_USER:root}
  94. spring.datasource.password =${DATABASE_PWD:maxkey}
  95. spring.datasource.url =jdbc:mysql://${DATABASE_HOST:localhost}:${DATABASE_PORT:3306}/${DATABASE_NAME:maxkey}?autoReconnect=true&characterEncoding=UTF-8&serverTimezone=UTC
  96. #highgo
  97. #spring.datasource.driver-class-name=com.highgo.jdbc.Driver
  98. #spring.datasource.username=highgo
  99. #spring.datasource.password=High@123
  100. #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
  101. #postgresql
  102. #spring.datasource.driver-class-name=org.postgresql.Driver
  103. #spring.datasource.username=root
  104. #spring.datasource.password=maxkey!
  105. #spring.datasource.url=jdbc:postgresql://localhost/maxkey?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
  106. #mybatis
  107. mybatis.dialect =mysql
  108. mybatis.type-aliases-package =org.maxkey.entity,org.maxkey.entity.apps,
  109. mybatis.mapper-locations =classpath*:/org/maxkey/persistence/mapper/xml/${mybatis.dialect}/*.xml
  110. mybatis.table-column-snowflake-datacenter-id =1
  111. mybatis.table-column-snowflake-machine-id =1
  112. mybatis.table-column-escape =false
  113. mybatis.table-column-case =lowercase
  114. ############################################################################
  115. #redis server configuration #
  116. ############################################################################
  117. spring.redis.host =${REDIS_HOST:127.0.0.1}
  118. spring.redis.port =${REDIS_PORT:6379}
  119. spring.redis.password =${REDIS_PWD:password}
  120. spring.redis.timeout =10000
  121. spring.redis.jedis.pool.max-wait =1000
  122. spring.redis.jedis.pool.max-idle =200
  123. spring.redis.lettuce.pool.max-active =-1
  124. spring.redis.lettuce.pool.min-idle =0
  125. ############################################################################
  126. #mail configuration #
  127. ############################################################################
  128. spring.mail.default-encoding =utf-8
  129. spring.mail.host =${MAIL_HOST:smtp.163.com}
  130. spring.mail.port =${MAIL_PORT:465}
  131. spring.mail.username =${MAIL_USER:maxkey@163.com}
  132. spring.mail.password =${MAIL_PWD:password}
  133. spring.mail.protocol =smtp
  134. spring.mail.properties.ssl =true
  135. spring.mail.properties.sender =${MAIL_SENDER:maxkey@163.com}
  136. spring.mail.properties.mailotp.message.subject =MaxKey One Time PassWord
  137. spring.mail.properties.mailotp.message.template ={0} You Token is {1} , it validity in {2} minutes.
  138. spring.mail.properties.mailotp.message.type =html
  139. spring.mail.properties.mailotp.message.validity =300
  140. ############################################################################
  141. #Spring Session for Cluster configuration #
  142. ############################################################################
  143. # Session store type.
  144. spring.session.store-type =none
  145. #spring.session.store-type=redis
  146. # Session timeout. If a duration suffix is not specified, seconds is used.
  147. #server.servlet.session.timeout=1800
  148. # Sessions flush mode.
  149. #spring.session.redis.flush-mode=on_save
  150. # Namespace for keys used to store sessions.
  151. #spring.session.redis.namespace=spring:session
  152. ############################################################################
  153. #Kafka for connectors configuration #
  154. ############################################################################
  155. spring.kafka.bootstrap-servers =${KAFKA_SERVERS:localhost:9092}
  156. # retries
  157. spring.kafka.producer.retries =0
  158. # acks
  159. spring.kafka.producer.acks =1
  160. # batch-size
  161. spring.kafka.producer.batch-size =16384
  162. # linger.ms
  163. spring.kafka.producer.properties.linger.ms =0
  164. # buffer-memory
  165. spring.kafka.producer.buffer-memory =33554432
  166. # serializer
  167. spring.kafka.producer.key-serializer =org.apache.kafka.common.serialization.StringSerializer
  168. spring.kafka.producer.value-serializer =org.apache.kafka.common.serialization.StringSerializer
  169. # partitioner
  170. #spring.kafka.producer.properties.partitioner.class=com.felix.kafka.producer.CustomizePartitioner
  171. ############################################################################
  172. #SMS Message Login configuration #
  173. #SmsOtpAuthnYunxin SmsOtpAuthnAliyun SmsOtpAuthnTencentCloud #
  174. ############################################################################
  175. #default
  176. maxkey.otp.sms =${SMS_IMPL:SmsOtpAuthnYunxin}
  177. #aliyun
  178. maxkey.otp.sms.aliyun.accesskeyid =${SMS_ALIYUN_ACCESSKEYID:94395d754eb55693043f5d6a2b772ef4}
  179. maxkey.otp.sms.aliyun.accesssecret =${SMS_ALIYUN_ACCESSSECRET:05d5485357bc}
  180. maxkey.otp.sms.aliyun.templatecode =${SMS_ALIYUN_TEMPLATECODE:14860095}
  181. maxkey.otp.sms.aliyun.signname =${SMS_ALIYUN_SIGNNAME:maxkey}
  182. #yunxin
  183. maxkey.otp.sms.yunxin.appkey =${SMS_YUNXIN_APPKEY:94395d754eb55693043f5d6a2b772ef3}
  184. maxkey.otp.sms.yunxin.appsecret =${SMS_YUNXIN_APPSECRET:05d5485357bc}
  185. maxkey.otp.sms.yunxin.templateid =${SMS_YUNXIN_TEMPLATEID:14860099}
  186. #tencentcloud
  187. maxkey.otp.sms.tencentcloud.secretid =${SMS_TENCENTCLOUD_SECRETID:94395d754eb55693043f5d6a2b772ef4}
  188. maxkey.otp.sms.tencentcloud.secretkey =${SMS_TENCENTCLOUD_SECRETKEY:05d5485357bc}
  189. maxkey.otp.sms.tencentcloud.smssdkappid =${SMS_TENCENTCLOUD_SMSSDKAPPID:1486220095}
  190. maxkey.otp.sms.tencentcloud.templateid =${SMS_TENCENTCLOUD_TEMPLATEID:14860095}
  191. maxkey.otp.sms.tencentcloud.sign =${SMS_TENCENTCLOUD_SIGN:1486009522}
  192. ############################################################################
  193. #Time-based One-Time Password configuration #
  194. ############################################################################
  195. maxkey.otp.keyuri.format.type =totp
  196. maxkey.otp.keyuri.format.digits =6
  197. maxkey.otp.keyuri.format.issuer =${OTP_KEYURI_ISSUER:MaxKey}
  198. maxkey.otp.keyuri.format.domain =${maxkey.server.domain}
  199. maxkey.otp.keyuri.format.period =30
  200. ############################################################################
  201. #LDAP Login support configuration #
  202. ############################################################################
  203. maxkey.support.ldap.enable =${LDAP_ENABLE:false}
  204. maxkey.support.ldap.jit =false
  205. #openldap,activedirectory,normal
  206. maxkey.support.ldap.product =${LDAP_PRODUCT:openldap}
  207. maxkey.support.ldap.ssl =${LDAP_SSL:false}
  208. maxkey.support.ldap.providerurl =${LDAP_PROVIDERURL:ldap://localhost:389}
  209. maxkey.support.ldap.principal =${LDAP_PRINCIPAL:cn=Manager,dc=maxcrc,dc=com}
  210. maxkey.support.ldap.credentials =${LDAP_CREDENTIALS:secret}
  211. maxkey.support.ldap.basedn =${LDAP_BASEDN:dc=maxcrc,dc=com}
  212. maxkey.support.ldap.filter =(uid=%s)
  213. maxkey.support.ldap.truststore =${LDAP_TRUSTSTORE:maxkey}
  214. maxkey.support.ldap.truststorepassword =${LDAP_TRUSTSTORE_PASSWORD:maxkey}
  215. #activedirectory effective
  216. maxkey.support.ldap.activedirectory.domain =${LDAP_AD_DOMAIN:MAXKEY.ORG}
  217. ############################################################################
  218. #Kerberos Login configuration #
  219. #short name of user domain must be in upper case,eg:MAXKEY #
  220. ############################################################################
  221. maxkey.support.kerberos.default.userdomain =MAXKEY
  222. #short name of user domain must be in upper case,eg:MAXKEY.ORG
  223. maxkey.support.kerberos.default.fulluserdomain =MAXKEY.ORG
  224. #last 8Bit crypto for Kerberos web Authentication
  225. maxkey.support.kerberos.default.crypto =846KZSzYq56M6d5o
  226. #Kerberos Authentication server RUL
  227. maxkey.support.kerberos.default.redirecturi =http://sso.maxkey.top/kerberos/authn/
  228. ############################################################################
  229. #HTTPHEADER Login configuration #
  230. ############################################################################
  231. maxkey.support.httpheader.enable =false
  232. maxkey.support.httpheader.headername =header-user
  233. # iv-user is for IBM Security Access Manager
  234. #config.httpheader.headername=iv-user
  235. ############################################################################
  236. #BASIC Login support configuration #
  237. ############################################################################
  238. maxkey.support.basic.enable =false
  239. #############################################################################
  240. #WsFederation Login support configuration
  241. #identifier: the identifer for the ADFS server
  242. #url: the login url for ADFS
  243. #principal: the name of the attribute/assertion returned by ADFS that contains the principal's username.
  244. #relyingParty: the identifier of the CAS Server as it has been configured in ADFS.
  245. #tolerance: (optional) the amount of drift to allow when validating the timestamp on the token. Default: 10000 (ms)
  246. #attributeMutator: (optional) a class (defined by you) that can modify the attributes/assertions returned by the ADFS server
  247. #signingCertificate: ADFS's signing certificate used to validate the token/assertions issued by ADFS.
  248. ############################################################################
  249. maxkey.support.wsfederation.identifier =http://adfs.maxkey.top/adfs/services/trust
  250. maxkey.support.wsfederation.url =https://adfs.maxkey.top/adfs/ls/
  251. maxkey.support.wsfederation.principal =upn
  252. maxkey.support.wsfederation.relyingParty =urn:federation:connsec
  253. maxkey.support.wsfederation.signingCertificate =adfs-signing.crt
  254. maxkey.support.wsfederation.tolerance =10000
  255. maxkey.support.wsfederation.upn.suffix =maxkey.org
  256. maxkey.support.wsfederation.logoutUrl =https://adfs.maxkey.top/adfs/ls/?wa=wsignout1.0
  257. #############################################################################
  258. #OIDC V1.0 METADATA configuration #
  259. #############################################################################
  260. maxkey.oidc.metadata.issuer =${maxkey.server.name}/maxkey
  261. maxkey.oidc.metadata.authorizationEndpoint =${maxkey.server.name}/maxkey/authz/oauth/v20/authorize
  262. maxkey.oidc.metadata.tokenEndpoint =${maxkey.server.name}/maxkey/authz/oauth/v20/token
  263. maxkey.oidc.metadata.userinfoEndpoint =${maxkey.server.name}/maxkey/api/connect/userinfo
  264. #############################################################################
  265. #SAML V2.0 configuration #
  266. #############################################################################
  267. #saml common
  268. maxkey.saml.v20.max.parser.pool.size =2
  269. maxkey.saml.v20.assertion.validity.time.ins.seconds =90
  270. maxkey.saml.v20.replay.cache.life.in.millis =14400000
  271. maxkey.saml.v20.issue.instant.check.clock.skew.in.seconds =90
  272. maxkey.saml.v20.issue.instant.check.validity.time.in.seconds =300
  273. #saml idp keystore
  274. maxkey.saml.v20.idp.keystore.password =maxkey
  275. maxkey.saml.v20.idp.keystore.private.key.password =maxkey
  276. maxkey.saml.v20.idp.keystore =classpath\:config/samlServerKeystore.jks
  277. #keystore id for sec
  278. maxkey.saml.v20.idp.issuing.entity.id =maxkey.top
  279. maxkey.saml.v20.idp.issuer =https://sso.maxkey.top/maxkey/saml
  280. maxkey.saml.v20.idp.receiver.endpoint =https\://sso.maxkey.top/
  281. #saml sp keystore
  282. maxkey.saml.v20.sp.keystore.password =maxkey
  283. maxkey.saml.v20.sp.keystore.private.key.password =maxkey
  284. maxkey.saml.v20.sp.keystore =classpath\:config/samlClientKeystore.jks
  285. maxkey.saml.v20.sp.issuing.entity.id =client.maxkey.org
  286. #Saml v20 METADATA
  287. maxkey.saml.v20.metadata.orgName =MaxKeyTop
  288. maxkey.saml.v20.metadata.orgDisplayName =MaxKeyTop
  289. maxkey.saml.v20.metadata.orgURL =https://www.maxkey.top
  290. maxkey.saml.v20.metadata.contactType =technical
  291. maxkey.saml.v20.metadata.company =MaxKeyTop
  292. maxkey.saml.v20.metadata.givenName =maxkey
  293. maxkey.saml.v20.metadata.surName =maxkey
  294. maxkey.saml.v20.metadata.emailAddress =maxkeysupport@163.com
  295. maxkey.saml.v20.metadata.telephoneNumber =4008981111
  296. ############################################################################
  297. # Social Sign On Configuration #
  298. #you config client.id & client.secret only #
  299. ############################################################################
  300. #gitee
  301. maxkey.socialsignon.gitee.provider =gitee
  302. maxkey.socialsignon.gitee.provider.name =Gitee
  303. maxkey.socialsignon.gitee.icon =images/social/gitee.png
  304. maxkey.socialsignon.gitee.client.id =${SOCIAL_GITEE_CLIENTID:ee6fdc484b3398d17e77d6ff37fd8b9fe502106398c7b22bf5522d3c01303f45}
  305. maxkey.socialsignon.gitee.client.secret =${SOCIAL_GITEE_CLIENTSECRET:d6c3558f295f044df538c966a9084166f9a877c7a7392543184007a5faccdbad}
  306. maxkey.socialsignon.gitee.account.id =id
  307. maxkey.socialsignon.gitee.hidden =false
  308. maxkey.socialsignon.gitee.sortorder =1
  309. #wechat
  310. maxkey.socialsignon.wechatopen.provider =wechatopen
  311. maxkey.socialsignon.wechatopen.provider.name =\u5fae\u4fe1
  312. maxkey.socialsignon.wechatopen.icon =images/social/wechat.png
  313. maxkey.socialsignon.wechatopen.client.id =${SOCIAL_WECHATOPEN_CLIENTID:ee6fdc484b3398d17e7}
  314. maxkey.socialsignon.wechatopen.client.secret =${SOCIAL_WECHATOPEN_CLIENTSECRET:7a5faccdbad}
  315. maxkey.socialsignon.wechatopen.account.id =id
  316. maxkey.socialsignon.wechatopen.hidden =false
  317. maxkey.socialsignon.wechatopen.sortorder =2
  318. #work weixin
  319. maxkey.socialsignon.workweixin.provider =workweixin
  320. maxkey.socialsignon.workweixin.provider.name =\u4F01\u4E1A\u5fae\u4fe1
  321. maxkey.socialsignon.workweixin.icon =images/social/wechat_enterprise.png
  322. maxkey.socialsignon.workweixin.client.id =${SOCIAL_WORKWEIXIN_CLIENTID:ww61ca142e1fe5b8ca}
  323. maxkey.socialsignon.workweixin.client.secret =${SOCIAL_WORKWEIXIN_CLIENTSECRET:CfWEoALuKdSKzXiV-QWXeGSD5zPd6Svze3GR_gB5eFs}
  324. maxkey.socialsignon.workweixin.agent.id =${SOCIAL_WORKWEIXIN_AGENTID:1000002}
  325. maxkey.socialsignon.workweixin.account.id =id
  326. maxkey.socialsignon.workweixin.hidden =true
  327. maxkey.socialsignon.workweixin.sortorder =2
  328. #sina weibo
  329. maxkey.socialsignon.sinaweibo.provider =sinaweibo
  330. maxkey.socialsignon.sinaweibo.provider.name =\u65b0\u6d6a\u5fae\u535a
  331. maxkey.socialsignon.sinaweibo.icon =images/social/weibo.png
  332. maxkey.socialsignon.sinaweibo.client.id =${SOCIAL_SINAWEIBO_CLIENTID:3379757634}
  333. maxkey.socialsignon.sinaweibo.client.secret =${SOCIAL_SINAWEIBO_CLIENTSECRET:1adfdf9800299037bcab9d1c238664ba}
  334. maxkey.socialsignon.sinaweibo.account.id =id
  335. maxkey.socialsignon.sinaweibo.hidden =false
  336. maxkey.socialsignon.sinaweibo.sortorder =3
  337. #Google
  338. maxkey.socialsignon.google.provider =google
  339. maxkey.socialsignon.google.provider.name =Google
  340. maxkey.socialsignon.google.icon =images/social/google.png
  341. maxkey.socialsignon.google.client.id =${SOCIAL_GOOGLE_CLIENTID:519914515488.apps.googleusercontent.com}
  342. maxkey.socialsignon.google.client.secret =${SOCIAL_GOOGLE_CLIENTSECRET:3aTW3Iw7e11QqMnHxciCaXTt}
  343. maxkey.socialsignon.google.account.id =id
  344. maxkey.socialsignon.google.hidden =false
  345. maxkey.socialsignon.google.sortorder =4
  346. #dingtalk
  347. maxkey.socialsignon.dingtalk.provider =dingtalk
  348. maxkey.socialsignon.dingtalk.provider.name =dingtalk
  349. maxkey.socialsignon.dingtalk.icon =images/social/dingtalk.png
  350. maxkey.socialsignon.dingtalk.client.id =${SOCIAL_DINGTALK_CLIENTID:dingoawf2jyiwh2uzqnphg}
  351. maxkey.socialsignon.dingtalk.client.secret =${SOCIAL_DINGTALK_CLIENTSECRET:Crm7YJbMKfRlvG2i1SHpg4GHVpqF_oXiEjhmRQyiSiuzNRWpbFh9i0UjDTfhOoN9}
  352. maxkey.socialsignon.dingtalk.account.id =openid
  353. maxkey.socialsignon.dingtalk.hidden =false
  354. maxkey.socialsignon.dingtalk.sortorder =5
  355. #QQ
  356. maxkey.socialsignon.qq.provider =qq
  357. maxkey.socialsignon.qq.provider.name =QQ
  358. maxkey.socialsignon.qq.icon =images/social/qq.png
  359. maxkey.socialsignon.qq.client.id =${SOCIAL_QQ_CLIENTID:101225363}
  360. maxkey.socialsignon.qq.client.secret =${SOCIAL_QQ_CLIENTSECRET:8577d75e0eb4a91ac549cc8be3371bfd}
  361. maxkey.socialsignon.qq.account.id =openid
  362. maxkey.socialsignon.qq.hidden =false
  363. maxkey.socialsignon.qq.sortorder =6
  364. #Microsoft
  365. maxkey.socialsignon.microsoft.provider =microsoft
  366. maxkey.socialsignon.microsoft.provider.name =Microsoft
  367. maxkey.socialsignon.microsoft.icon =images/social/microsoft.png
  368. maxkey.socialsignon.microsoft.client.id =${SOCIAL_MICROSOFT_CLIENTID:24aa73b6-7928-4e64-bd64-d8682e650f95}
  369. maxkey.socialsignon.microsoft.client.secret =${SOCIAL_MICROSOFT_CLIENTSECRET:PF[_AthtjVrtWVO2mNy@CJxY1@Z8FNf5}
  370. maxkey.socialsignon.microsoft.account.id =id
  371. maxkey.socialsignon.microsoft.hidden =false
  372. maxkey.socialsignon.microsoft.sortorder =7
  373. #facebook
  374. maxkey.socialsignon.facebook.provider =facebook
  375. maxkey.socialsignon.facebook.provider.name =facebook
  376. maxkey.socialsignon.facebook.icon =images/social/facebook.png
  377. maxkey.socialsignon.facebook.client.id =${SOCIAL_FACEBOOK_CLIENTID:appKey}
  378. maxkey.socialsignon.facebook.client.secret =${SOCIAL_FACEBOOK_CLIENTSECRET:appSecret}
  379. maxkey.socialsignon.facebook.account.id =id
  380. maxkey.socialsignon.facebook.hidden =false
  381. maxkey.socialsignon.facebook.sortorder =8
  382. ############################################################################
  383. #Management endpoints configuration #
  384. ############################################################################
  385. management.security.enabled =false
  386. #management.endpoints.jmx.exposure.include=health,info
  387. #management.endpoints.web.exposure.include=metrics,health,info,env
  388. management.endpoints.web.exposure.include =*
  389. management.endpoint.health.show-details =ALWAYS
  390. #Spring Boot Admin Client
  391. spring.application.name =maxkey
  392. spring.boot.admin.client.url =${SPRING_BOOT_ADMIN_URL:http://127.0.0.1:9528}
  393. management.health.redis.enabled =false
  394. ############################################################################
  395. #springfox.documentation.swagger.v2.path=/api-docs #
  396. #Swagger Configure Properties #
  397. ############################################################################
  398. maxkey.swagger.enable =true
  399. maxkey.swagger.title =MaxKey\u5355\u70b9\u767b\u5f55\u8ba4\u8bc1\u7cfb\u7edfapi\u6587\u6863
  400. maxkey.swagger.description =MaxKey\u5355\u70b9\u767b\u5f55\u8ba4\u8bc1\u7cfb\u7edfapi\u6587\u6863
  401. maxkey.swagger.version =${application.formatted-version}
  402. ############################################################################
  403. #freemarker configuration #
  404. ############################################################################
  405. spring.freemarker.template-loader-path =classpath:/templates/views
  406. spring.freemarker.cache =false
  407. spring.freemarker.charset =UTF-8
  408. spring.freemarker.check-template-location =true
  409. spring.freemarker.content-type =text/html
  410. spring.freemarker.expose-request-attributes =false
  411. spring.freemarker.expose-session-attributes =false
  412. spring.freemarker.request-context-attribute =request
  413. spring.freemarker.suffix =.ftl
  414. ############################################################################
  415. #static resources configuration #
  416. ############################################################################
  417. spring.mvc.static-path-pattern =/static/**
  418. spring.messages.basename =classpath:messages/message
  419. spring.messages.encoding =UTF-8
  420. ############################################################################
  421. #server servlet encoding configuration #
  422. ############################################################################
  423. #encoding
  424. #server.servlet.encoding.charset=UTF-8
  425. #server.servlet.encoding.enabled=true
  426. #server.servlet.encoding.force=true
  427. ############################################################################
  428. #Servlet multipart configuration #
  429. ############################################################################
  430. spring.servlet.multipart.enabled =true
  431. spring.servlet.multipart.max-file-size =4194304