application.properties 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. ############################################################################
  2. #MaxKey Title and Version #
  3. ############################################################################
  4. application.title=MaxKey
  5. application.name=MaxKey-Mgt
  6. application.formatted-version=v2.7.0 GA
  7. ############################################################################
  8. #MaxKey Server configuration #
  9. ############################################################################
  10. #server port
  11. server.port=9527
  12. #web app context path
  13. server.servlet.context-path=/maxkey-mgt
  14. spring.servlet.multipart.enabled=true
  15. spring.servlet.multipart.max-file-size=4194304
  16. #server.servlet.encoding.charset.from=
  17. #server.servlet.encoding.charset=
  18. #server.servlet.encoding.enabled=
  19. #server.servlet.encoding.force=
  20. ############################################################################
  21. #database configuration #
  22. ############################################################################
  23. spring.datasource.username=root
  24. spring.datasource.password=maxkey
  25. spring.datasource.url=jdbc:mysql://localhost/maxkey?autoReconnect=true&characterEncoding=UTF-8&serverTimezone=UTC
  26. spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
  27. spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
  28. #mybatis
  29. mybatis.type-aliases-package=org.maxkey.domain,org.maxkey.domain.apps,
  30. mybatis.mapper-locations=classpath*:/org/maxkey/persistence/mapper/xml/mysql/*.xml
  31. mybatis.table-column-escape=true
  32. ############################################################################
  33. #redis server configuration #
  34. ############################################################################
  35. #spring.redis.host=127.0.0.1
  36. #spring.redis.port=6379
  37. #spring.redis.password=password
  38. #spring.redis.timeout=10000
  39. #spring.redis.jedis.pool.max-wait=1000
  40. #spring.redis.jedis.pool.max-idle=200
  41. #spring.redis.lettuce.pool.max-active=-1
  42. #spring.redis.lettuce.pool.min-idle=0
  43. ############################################################################
  44. #mail configuration #
  45. ############################################################################
  46. #spring.mail.default-encoding=utf-8
  47. #spring.mail.host=smtp.163.com
  48. #spring.mail.port=465
  49. #spring.mail.username=maxkey@163.com
  50. #spring.mail.password=password
  51. #spring.mail.protocol=smtp
  52. #spring.mail.properties.ssl=true
  53. #spring.mail.properties.sender=maxkey@163.com
  54. ############################################################################
  55. #freemarker configuration #
  56. ############################################################################
  57. spring.freemarker.template-loader-path=classpath:/templates/views
  58. spring.freemarker.cache=false
  59. spring.freemarker.charset=UTF-8
  60. spring.freemarker.check-template-location=true
  61. spring.freemarker.content-type=text/html
  62. spring.freemarker.expose-request-attributes=false
  63. spring.freemarker.expose-session-attributes=false
  64. spring.freemarker.request-context-attribute=request
  65. spring.freemarker.suffix=.ftl
  66. #spring.freemarker.settings.classic_compatible=true
  67. ############################################################################
  68. #static resources configuration #
  69. ############################################################################
  70. spring.mvc.static-path-pattern=/static/**
  71. spring.messages.basename=classpath:messages/message
  72. spring.messages.encoding=UTF-8
  73. ############################################################################
  74. #Main.banner-mode configuration #
  75. ############################################################################
  76. spring.main.banner-mode=log
  77. spring.main.allow-bean-definition-overriding=true
  78. ############################################################################
  79. #Spring Session configuration #
  80. ############################################################################
  81. #Session store type.
  82. spring.session.store-type=none
  83. #spring.session.store-type=redis
  84. # Session timeout. If a duration suffix is not specified, seconds is used.
  85. #server.servlet.session.timeout=1800
  86. # Sessions flush mode.
  87. #spring.session.redis.flush-mode=on_save
  88. # Namespace for keys used to store sessions.
  89. #spring.session.redis.namespace=spring:session
  90. ############################################################################
  91. #Kafka for connectors configuration #
  92. ############################################################################
  93. spring.kafka.bootstrap-servers=localhost:9092
  94. ###########\u3010\u521d\u59cb\u5316\u751f\u4ea7\u8005\u914d\u7f6e\u3011###########
  95. # \u91cd\u8bd5\u6b21\u6570
  96. spring.kafka.producer.retries=0
  97. # \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)
  98. spring.kafka.producer.acks=1
  99. # \u6279\u91cf\u5927\u5c0f
  100. spring.kafka.producer.batch-size=16384
  101. # \u63d0\u4ea4\u5ef6\u65f6
  102. spring.kafka.producer.properties.linger.ms=0
  103. # \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
  104. # 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
  105. # \u751f\u4ea7\u7aef\u7f13\u51b2\u533a\u5927\u5c0f
  106. spring.kafka.producer.buffer-memory = 33554432
  107. # Kafka\u63d0\u4f9b\u7684\u5e8f\u5217\u5316\u548c\u53cd\u5e8f\u5217\u5316\u7c7b
  108. spring.kafka.producer.key-serializer=org.apache.kafka.common.serialization.StringSerializer
  109. spring.kafka.producer.value-serializer=org.apache.kafka.common.serialization.StringSerializer
  110. # \u81ea\u5b9a\u4e49\u5206\u533a\u5668
  111. # spring.kafka.producer.properties.partitioner.class=com.felix.kafka.producer.CustomizePartitioner
  112. ############################################################################
  113. #Management endpoints configuration #
  114. ############################################################################
  115. #management.server.port=9522
  116. #management.server.servlet.context-path=/maxkey-mgt-actuate
  117. #management.endpoints.enabled-by-default=false
  118. management.security.enabled=false
  119. #management.endpoints.jmx.exposure.include=health,info
  120. management.endpoints.web.exposure.include=metrics,health,info,env,beans
  121. ############################################################################
  122. #domain name configuration #
  123. ############################################################################
  124. maxkey.server.scheme=http
  125. maxkey.server.basedomain=maxkey.top
  126. maxkey.server.domain=sso.${maxkey.server.basedomain}
  127. maxkey.server.name=${maxkey.server.scheme}://${maxkey.server.domain}
  128. maxkey.server.uri=${maxkey.server.name}:9521/maxkey-mgt
  129. #default.uri
  130. maxkey.server.default.uri=${maxkey.server.uri}/main
  131. maxkey.maxkey.uri=https://${maxkey.server.domain}/maxkey
  132. #InMemory 0 , Redis 2
  133. maxkey.server.persistence=0
  134. #identity
  135. maxkey.identity.kafkasupport=false
  136. ############################################################################
  137. #Login configuration #
  138. ############################################################################
  139. #enable captcha
  140. maxkey.login.captcha=true
  141. #text or arithmetic
  142. maxkey.login.captcha.type=text
  143. #enable two factor,use one time password
  144. maxkey.login.mfa=false
  145. #enable social sign on
  146. maxkey.login.socialsignon=false
  147. #Enable kerberos/SPNEGO
  148. maxkey.login.kerberos=false
  149. #wsFederation
  150. maxkey.login.wsfederation=false
  151. #remeberme
  152. maxkey.login.remeberme=false
  153. #validity
  154. maxkey.login.remeberme.validity=0
  155. #default.uri
  156. #to appList page
  157. maxkey.login.default.uri=appList
  158. #ipaddress whitelist
  159. maxkey.ipaddress.whitelist=false
  160. #############################################################################
  161. #SAML V2.0 configuration #
  162. #############################################################################
  163. # saml common
  164. maxkey.saml.v20.max.parser.pool.size=2
  165. maxkey.saml.v20.assertion.validity.time.ins.seconds=90
  166. maxkey.saml.v20.replay.cache.life.in.millis=14400000
  167. maxkey.saml.v20.issue.instant.check.clock.skew.in.seconds=90
  168. maxkey.saml.v20.issue.instant.check.validity.time.in.seconds=300
  169. #saml idp keystore
  170. maxkey.saml.v20.idp.keystore.password=maxkey
  171. maxkey.saml.v20.idp.keystore.private.key.password=maxkey
  172. maxkey.saml.v20.idp.keystore=classpath\:config/samlServerKeystore.jks
  173. #keystore id for sec
  174. maxkey.saml.v20.idp.issuing.entity.id=maxkey.top
  175. maxkey.saml.v20.idp.issuer=https://sso.maxkey.top/maxkey/saml
  176. maxkey.saml.v20.idp.receiver.endpoint=https\://sso.maxkey.top/
  177. #saml sp keystore
  178. maxkey.saml.v20.sp.keystore.password=maxkey
  179. maxkey.saml.v20.sp.keystore.private.key.password=maxkey
  180. maxkey.saml.v20.sp.keystore=classpath\:config/samlClientKeystore.jks
  181. maxkey.saml.v20.sp.issuing.entity.id=client.maxkey.org
  182. #############################################################################
  183. #OIDC V1.0 METADATA configuration #
  184. #############################################################################
  185. maxkey.oidc.metadata.issuer=https://${maxkey.server.domain}/maxkey
  186. maxkey.oidc.metadata.authorizationEndpoint=${maxkey.server.name}/maxkey/oauth/v20/authorize
  187. maxkey.oidc.metadata.tokenEndpoint=${maxkey.server.name}/maxkey/oauth/v20/token
  188. maxkey.oidc.metadata.userinfoEndpoint=${maxkey.server.name}/maxkey/api/connect/userinfo
  189. #############################################################################
  190. #Job Scheduler #
  191. #############################################################################
  192. #one hour for refresh dynamic groups
  193. maxkey.job.cron.dynamicgroups=0 0 0/1 * * ?