application-https.properties 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405
  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. server.servlet.session.timeout=1800
  22. #web app context path
  23. server.servlet.context-path=/maxkey
  24. spring.servlet.multipart.enabled=true
  25. spring.servlet.multipart.max-file-size=4194304
  26. ############################################################################
  27. #ssl configuration #
  28. ############################################################################
  29. server.ssl.key-store=classpath:maxkeyserver.keystore
  30. server.ssl.key-alias=maxkey
  31. server.ssl.enabled=true
  32. server.ssl.key-store-password=maxkey
  33. server.ssl.key-store-type=JKS
  34. #encoding
  35. #server.servlet.encoding.charset=UTF-8
  36. #server.servlet.encoding.enabled=true
  37. #server.servlet.encoding.force=true
  38. ############################################################################
  39. #database configuration #
  40. ############################################################################
  41. #datasource
  42. spring.datasource.username=root
  43. spring.datasource.password=maxkey
  44. spring.datasource.url=jdbc:mysql://localhost/maxkey?autoReconnect=true&characterEncoding=UTF-8&serverTimezone=UTC
  45. spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
  46. spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
  47. #mybatis
  48. mybatis.type-aliases-package=org.maxkey.domain,org.maxkey.domain.apps,
  49. mybatis.mapper-locations=classpath*:/org/maxkey/persistence/mapper/xml/mysql/*.xml
  50. mybatis.table-column-snowflake-datacenter-id=1
  51. mybatis.table-column-snowflake-machine-id=1
  52. mybatis.table-column-escape=true
  53. ############################################################################
  54. #redis server configuration #
  55. ############################################################################
  56. #spring.redis.host=127.0.0.1
  57. #spring.redis.port=6379
  58. #spring.redis.password=password
  59. #spring.redis.timeout=10000
  60. #spring.redis.jedis.pool.max-wait=1000
  61. #spring.redis.jedis.pool.max-idle=200
  62. #spring.redis.lettuce.pool.max-active=-1
  63. #spring.redis.lettuce.pool.min-idle=0
  64. ############################################################################
  65. #mail configuration #
  66. ############################################################################
  67. #spring.mail.default-encoding=utf-8
  68. #spring.mail.host=smtp.163.com
  69. #spring.mail.port=465
  70. #spring.mail.username=maxkey@163.com
  71. #spring.mail.password=password
  72. #spring.mail.protocol=smtp
  73. #spring.mail.properties.ssl=true
  74. #spring.mail.properties.sender=maxkey@163.com
  75. spring.mail.properties.mailotp.message.subject=MaxKey One Time PassWord
  76. spring.mail.properties.mailotp.message.template={0} You Token is {1} , it validity in {2} minutes.
  77. ############################################################################
  78. #freemarker configuration #
  79. ############################################################################
  80. spring.freemarker.template-loader-path=classpath:/templates/views
  81. spring.freemarker.cache=false
  82. spring.freemarker.charset=UTF-8
  83. spring.freemarker.check-template-location=true
  84. spring.freemarker.content-type=text/html
  85. spring.freemarker.expose-request-attributes=false
  86. spring.freemarker.expose-session-attributes=false
  87. spring.freemarker.request-context-attribute=request
  88. spring.freemarker.suffix=.ftl
  89. ############################################################################
  90. #static resources configuration #
  91. ############################################################################
  92. spring.mvc.static-path-pattern=/static/**
  93. spring.messages.basename=classpath:messages/message
  94. spring.messages.encoding=UTF-8
  95. ############################################################################
  96. #Main.banner-mode configuration #
  97. ############################################################################
  98. spring.main.banner-mode=log
  99. spring.main.allow-bean-definition-overriding=true
  100. ############################################################################
  101. #Spring Session for Cluster configuration #
  102. ############################################################################
  103. # Session store type.
  104. spring.session.store-type=none
  105. #spring.session.store-type=redis
  106. # Session timeout. If a duration suffix is not specified, seconds is used.
  107. #server.servlet.session.timeout=1800
  108. # Sessions flush mode.
  109. #spring.session.redis.flush-mode=on_save
  110. # Namespace for keys used to store sessions.
  111. #spring.session.redis.namespace=spring:session
  112. ############################################################################
  113. #Kafka for connectors configuration #
  114. ############################################################################
  115. spring.kafka.bootstrap-servers=localhost:9092
  116. ###########\u3010\u521d\u59cb\u5316\u751f\u4ea7\u8005\u914d\u7f6e\u3011###########
  117. # \u91cd\u8bd5\u6b21\u6570
  118. spring.kafka.producer.retries=0
  119. # \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)
  120. spring.kafka.producer.acks=1
  121. # \u6279\u91cf\u5927\u5c0f
  122. spring.kafka.producer.batch-size=16384
  123. # \u63d0\u4ea4\u5ef6\u65f6
  124. spring.kafka.producer.properties.linger.ms=0
  125. # \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
  126. # 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
  127. # \u751f\u4ea7\u7aef\u7f13\u51b2\u533a\u5927\u5c0f
  128. spring.kafka.producer.buffer-memory = 33554432
  129. # Kafka\u63d0\u4f9b\u7684\u5e8f\u5217\u5316\u548c\u53cd\u5e8f\u5217\u5316\u7c7b
  130. spring.kafka.producer.key-serializer=org.apache.kafka.common.serialization.StringSerializer
  131. spring.kafka.producer.value-serializer=org.apache.kafka.common.serialization.StringSerializer
  132. # \u81ea\u5b9a\u4e49\u5206\u533a\u5668
  133. # spring.kafka.producer.properties.partitioner.class=com.felix.kafka.producer.CustomizePartitioner
  134. ############################################################################
  135. #Management endpoints configuration #
  136. ############################################################################
  137. management.security.enabled=false
  138. #management.endpoints.jmx.exposure.include=health,info
  139. management.endpoints.web.exposure.include=metrics,health,info,env
  140. ############################################################################
  141. #domain name configuration #
  142. ############################################################################
  143. maxkey.server.scheme=https
  144. maxkey.server.basedomain=maxkey.top
  145. maxkey.server.domain=sso.${maxkey.server.basedomain}
  146. maxkey.server.name=${maxkey.server.scheme}://${maxkey.server.domain}
  147. maxkey.server.uri=${maxkey.server.name}/maxkey
  148. #default.uri
  149. maxkey.server.default.uri=${maxkey.server.uri}/maxkey/appList
  150. maxkey.server.management.uri=${maxkey.server.name}:9521/maxkey-mgt/login
  151. #InMemory 0 , Redis 2
  152. maxkey.server.persistence=0
  153. #identity
  154. maxkey.identity.kafkasupport=false
  155. maxkey.app.issuer=CN=ConSec,CN=COM,CN=SH
  156. ############################################################################
  157. #Login configuration #
  158. ############################################################################
  159. #enable captcha
  160. maxkey.login.captcha=true
  161. #text or arithmetic
  162. maxkey.login.captcha.type=text
  163. #enable two factor,use one time password
  164. maxkey.login.mfa=true
  165. #TimeBasedOtpAuthn MailOtpAuthn SmsOtpAuthnYunxin SmsOtpAuthnAliyun SmsOtpAuthnTencentCloud
  166. maxkey.login.mfa.type=TimeBasedOtpAuthn
  167. #enable social sign on
  168. maxkey.login.socialsignon=true
  169. #social sign on providers
  170. maxkey.login.socialsignon.providers=gitee,wechatopen,sinaweibo,google,qq,dingtalk,microsoft,facebook
  171. #Enable kerberos/SPNEGO
  172. maxkey.login.kerberos=true
  173. #wsFederation
  174. maxkey.login.wsfederation=false
  175. #remeberme
  176. maxkey.login.remeberme=true
  177. #validity
  178. maxkey.login.remeberme.validity=0
  179. #to default application web site
  180. maxkey.login.default.uri=appList
  181. maxkey.ipaddress.whitelist=false
  182. maxkey.notices.visible=false
  183. ############################################################################
  184. #Kerberos Login configuration #
  185. #SmsOtpAuthnYunxin SmsOtpAuthnAliyun SmsOtpAuthnTencentCloud #
  186. ############################################################################
  187. #default
  188. maxkey.otp.sms=SmsOtpAuthnYunxin
  189. #aliyun
  190. maxkey.otp.sms.aliyun.accesskeyid=94395d754eb55693043f5d6a2b772ef4
  191. maxkey.otp.sms.aliyun.accesssecret=05d5485357bc
  192. maxkey.otp.sms.aliyun.templatecode=14860095
  193. maxkey.otp.sms.aliyun.signname=maxkey
  194. #yunxin
  195. maxkey.otp.sms.yunxin.appkey=94395d754eb55693043f5d6a2b772ef4
  196. maxkey.otp.sms.yunxin.appsecret=05d5485357bc
  197. maxkey.otp.sms.yunxin.templateid=14860095
  198. #tencentcloud
  199. maxkey.otp.sms.tencentcloud.secretid=94395d754eb55693043f5d6a2b772ef4
  200. maxkey.otp.sms.tencentcloud.secretkey=05d5485357bc
  201. maxkey.otp.sms.tencentcloud.smssdkappid=1486220095
  202. maxkey.otp.sms.tencentcloud.templateid=14860095
  203. maxkey.otp.sms.tencentcloud.sign=1486009522
  204. ############################################################################
  205. #Time-based One-Time Password configuration #
  206. ############################################################################
  207. maxkey.otp.keyuri.format.type=totp
  208. maxkey.otp.keyuri.format.digits=6
  209. maxkey.otp.keyuri.format.issuer=MaxKey
  210. maxkey.otp.keyuri.format.domain=${maxkey.server.domain}
  211. maxkey.otp.keyuri.format.period=30
  212. ############################################################################
  213. #Kerberos Login configuration #
  214. #short name of user domain must be in upper case,eg:MAXKEY #
  215. ############################################################################
  216. maxkey.support.kerberos.default.userdomain=MAXKEY
  217. #short name of user domain must be in upper case,eg:MAXKEY.ORG
  218. maxkey.support.kerberos.default.fulluserdomain=MAXKEY.ORG
  219. #last 8Bit crypto for Kerberos web Authentication
  220. maxkey.support.kerberos.default.crypto=846KZSzYq56M6d5o
  221. #Kerberos Authentication server RUL
  222. maxkey.support.kerberos.default.redirecturi=http://sso.maxkey.top/kerberos/authn/
  223. ############################################################################
  224. #HTTPHEADER Login configuration #
  225. ############################################################################
  226. maxkey.support.httpheader.enable=false
  227. maxkey.support.httpheader.headername=header-user
  228. # iv-user is for IBM Security Access Manager
  229. #config.httpheader.headername=iv-user
  230. ############################################################################
  231. #BASIC Login support configuration #
  232. ############################################################################
  233. maxkey.support.basic.enable=false
  234. ############################################################################
  235. #LDAP Login support configuration #
  236. ############################################################################
  237. maxkey.support.ldap.enable=false
  238. maxkey.support.ldap.jit=false
  239. #openldap,activedirectory,normal
  240. maxkey.support.ldap.product=openldap
  241. maxkey.support.ldap.ssl=false
  242. maxkey.support.ldap.providerurl=ldap://localhost:389
  243. maxkey.support.ldap.principal=cn=Manager,dc=maxcrc,dc=com
  244. maxkey.support.ldap.credentials=secret
  245. maxkey.support.ldap.basedn=dc=maxcrc,dc=com
  246. maxkey.support.ldap.filter=(uid=%s)
  247. maxkey.support.ldap.truststore=maxkey
  248. maxkey.support.ldap.truststorepassword=maxkey
  249. #activedirectory effective
  250. maxkey.support.ldap.activedirectory.domain=MAXKEY.ORG
  251. #############################################################################
  252. #WsFederation Login support configuration
  253. #identifier: the identifer for the ADFS server
  254. #url: the login url for ADFS
  255. #principal: the name of the attribute/assertion returned by ADFS that contains the principal's username.
  256. #relyingParty: the identifier of the CAS Server as it has been configured in ADFS.
  257. #tolerance: (optional) the amount of drift to allow when validating the timestamp on the token. Default: 10000 (ms)
  258. #attributeMutator: (optional) a class (defined by you) that can modify the attributes/assertions returned by the ADFS server
  259. #signingCertificate: ADFS's signing certificate used to validate the token/assertions issued by ADFS.
  260. ############################################################################
  261. maxkey.support.wsfederation.identifier=http://adfs.maxkey.top/adfs/services/trust
  262. maxkey.support.wsfederation.url=https://adfs.maxkey.top/adfs/ls/
  263. maxkey.support.wsfederation.principal=upn
  264. maxkey.support.wsfederation.relyingParty=urn:federation:connsec
  265. maxkey.support.wsfederation.signingCertificate=adfs-signing.crt
  266. maxkey.support.wsfederation.tolerance=10000
  267. maxkey.support.wsfederation.upn.suffix=maxkey.org
  268. maxkey.support.wsfederation.logoutUrl=https://adfs.maxkey.top/adfs/ls/?wa=wsignout1.0
  269. #############################################################################
  270. #OIDC V1.0 METADATA configuration #
  271. #############################################################################
  272. maxkey.oidc.metadata.issuer=${maxkey.server.name}/maxkey
  273. maxkey.oidc.metadata.authorizationEndpoint=${maxkey.server.name}/maxkey/authz/oauth/v20/authorize
  274. maxkey.oidc.metadata.tokenEndpoint=${maxkey.server.name}/maxkey/authz/oauth/v20/token
  275. maxkey.oidc.metadata.userinfoEndpoint=${maxkey.server.name}/maxkey/api/connect/userinfo
  276. #############################################################################
  277. #SAML V2.0 configuration #
  278. #############################################################################
  279. #saml common
  280. maxkey.saml.v20.max.parser.pool.size=2
  281. maxkey.saml.v20.assertion.validity.time.ins.seconds=90
  282. maxkey.saml.v20.replay.cache.life.in.millis=14400000
  283. maxkey.saml.v20.issue.instant.check.clock.skew.in.seconds=90
  284. maxkey.saml.v20.issue.instant.check.validity.time.in.seconds=300
  285. #saml idp keystore
  286. maxkey.saml.v20.idp.keystore.password=maxkey
  287. maxkey.saml.v20.idp.keystore.private.key.password=maxkey
  288. maxkey.saml.v20.idp.keystore=classpath\:config/samlServerKeystore.jks
  289. #keystore id for sec
  290. maxkey.saml.v20.idp.issuing.entity.id=maxkey.top
  291. maxkey.saml.v20.idp.issuer=https://sso.maxkey.top/maxkey/saml
  292. maxkey.saml.v20.idp.receiver.endpoint=https\://sso.maxkey.top/
  293. #saml sp keystore
  294. maxkey.saml.v20.sp.keystore.password=maxkey
  295. maxkey.saml.v20.sp.keystore.private.key.password=maxkey
  296. maxkey.saml.v20.sp.keystore=classpath\:config/samlClientKeystore.jks
  297. maxkey.saml.v20.sp.issuing.entity.id=client.maxkey.org
  298. #Saml v20 METADATA
  299. maxkey.saml.v20.metadata.orgName=MaxKeyTop
  300. maxkey.saml.v20.metadata.orgDisplayName=MaxKeyTop
  301. maxkey.saml.v20.metadata.orgURL=https://www.maxkey.top
  302. maxkey.saml.v20.metadata.contactType=technical
  303. maxkey.saml.v20.metadata.company=MaxKeyTop
  304. maxkey.saml.v20.metadata.givenName=maxkey
  305. maxkey.saml.v20.metadata.surName=maxkey
  306. maxkey.saml.v20.metadata.emailAddress=maxkeysupport@163.com
  307. maxkey.saml.v20.metadata.telephoneNumber=4008981111
  308. ############################################################################
  309. # Social Sign On Configuration #
  310. #you config client.id & client.secret only #
  311. ############################################################################
  312. #gitee
  313. maxkey.socialsignon.gitee.provider=gitee
  314. maxkey.socialsignon.gitee.provider.name=Gitee
  315. maxkey.socialsignon.gitee.icon=images/social/gitee.png
  316. maxkey.socialsignon.gitee.client.id=ee6fdc484b3398d17e77d6ff37fd8b9fe502106398c7b22bf5522d3c01303f45
  317. maxkey.socialsignon.gitee.client.secret=d6c3558f295f044df538c966a9084166f9a877c7a7392543184007a5faccdbad
  318. maxkey.socialsignon.gitee.account.id=id
  319. maxkey.socialsignon.gitee.sortorder=1
  320. #wechat
  321. maxkey.socialsignon.wechatopen.provider=wechatopen
  322. maxkey.socialsignon.wechatopen.provider.name=\u5fae\u4fe1
  323. maxkey.socialsignon.wechatopen.icon=images/social/wechat.png
  324. maxkey.socialsignon.wechatopen.client.id=ee6fdc484b3398d17e7
  325. maxkey.socialsignon.wechatopen.client.secret=7a5faccdbad
  326. maxkey.socialsignon.wechatopen.account.id=id
  327. maxkey.socialsignon.wechatopen.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=3379757634
  333. maxkey.socialsignon.sinaweibo.client.secret=1adfdf9800299037bcab9d1c238664ba
  334. maxkey.socialsignon.sinaweibo.account.id=id
  335. maxkey.socialsignon.sinaweibo.sortorder=3
  336. #Google
  337. maxkey.socialsignon.google.provider=google
  338. maxkey.socialsignon.google.provider.name=Google
  339. maxkey.socialsignon.google.icon=images/social/google.png
  340. maxkey.socialsignon.google.client.id=519914515488.apps.googleusercontent.com
  341. maxkey.socialsignon.google.client.secret=3aTW3Iw7e11QqMnHxciCaXTt
  342. maxkey.socialsignon.google.account.id=id
  343. maxkey.socialsignon.google.sortorder=4
  344. #dingtalk
  345. maxkey.socialsignon.dingtalk.provider=dingtalk
  346. maxkey.socialsignon.dingtalk.provider.name=dingtalk
  347. maxkey.socialsignon.dingtalk.icon=images/social/dingtalk.png
  348. maxkey.socialsignon.dingtalk.client.id=dingoawf2jyiwh2uzqnphg
  349. maxkey.socialsignon.dingtalk.client.secret=Crm7YJbMKfRlvG2i1SHpg4GHVpqF_oXiEjhmRQyiSiuzNRWpbFh9i0UjDTfhOoN9
  350. maxkey.socialsignon.dingtalk.account.id=openid
  351. maxkey.socialsignon.dingtalk.sortorder=5
  352. #QQ
  353. maxkey.socialsignon.qq.provider=qq
  354. maxkey.socialsignon.qq.provider.name=QQ
  355. maxkey.socialsignon.qq.icon=images/social/qq.png
  356. maxkey.socialsignon.qq.client.id=101225363
  357. maxkey.socialsignon.qq.client.secret=8577d75e0eb4a91ac549cc8be3371bfd
  358. maxkey.socialsignon.qq.account.id=openid
  359. maxkey.socialsignon.qq.sortorder=6
  360. #Microsoft
  361. maxkey.socialsignon.microsoft.provider=microsoft
  362. maxkey.socialsignon.microsoft.provider.name=Microsoft
  363. maxkey.socialsignon.microsoft.icon=images/social/microsoft.png
  364. maxkey.socialsignon.microsoft.client.id=24aa73b6-7928-4e64-bd64-d8682e650f95
  365. maxkey.socialsignon.microsoft.client.secret=PF[_AthtjVrtWVO2mNy@CJxY1@Z8FNf5
  366. maxkey.socialsignon.microsoft.account.id=id
  367. maxkey.socialsignon.microsoft.sortorder=7
  368. #facebook
  369. maxkey.socialsignon.facebook.provider=facebook
  370. maxkey.socialsignon.facebook.provider.name=facebook
  371. maxkey.socialsignon.facebook.icon=images/social/facebook.png
  372. maxkey.socialsignon.facebook.client.id=appKey
  373. maxkey.socialsignon.facebook.client.secret=appSecret
  374. maxkey.socialsignon.facebook.account.id=id
  375. maxkey.socialsignon.facebook.sortorder=8
  376. ############################################################################
  377. #springfox.documentation.swagger.v2.path=/api-docs #
  378. #Swagger Configure Properties #
  379. ############################################################################
  380. maxkey.swagger.enable=true
  381. maxkey.swagger.title=MaxKey\u5355\u70b9\u767b\u5f55\u8ba4\u8bc1\u7cfb\u7edfapi\u6587\u6863
  382. maxkey.swagger.description=MaxKey\u5355\u70b9\u767b\u5f55\u8ba4\u8bc1\u7cfb\u7edfapi\u6587\u6863
  383. maxkey.swagger.version=${application.formatted-version}