application.properties 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. #spring.profiles.active=dev
  2. #application
  3. application.title=MaxKey
  4. application.name=MaxKey
  5. application.formatted-version=v2.6.0 GA
  6. #server port
  7. #server.port=80
  8. server.port=443
  9. #ssl
  10. server.ssl.key-store=maxkeyserver.keystore
  11. server.ssl.key-alias=maxkey
  12. server.ssl.enabled=true
  13. server.ssl.key-store-password=maxkey
  14. server.ssl.key-store-type=JKS
  15. #web app context path
  16. server.servlet.context-path=/maxkey
  17. spring.servlet.multipart.enabled=true
  18. spring.servlet.multipart.max-file-size=4194304
  19. #encoding
  20. #server.servlet.encoding.charset=UTF-8
  21. #server.servlet.encoding.enabled=true
  22. #server.servlet.encoding.force=true
  23. #datasource
  24. spring.datasource.username=root
  25. spring.datasource.password=maxkey
  26. spring.datasource.url=jdbc:mysql://localhost/maxkey?autoReconnect=true&characterEncoding=UTF-8&serverTimezone=UTC
  27. spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
  28. spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
  29. #mybatis
  30. mybatis.type-aliases-package=org.maxkey.domain,org.maxkey.domain.apps,
  31. mybatis.mapper-locations=classpath*:/org/maxkey/persistence/mapper/xml/mysql/*.xml
  32. mybatis.table-column-escape=true
  33. #redis
  34. spring.redis.host=127.0.0.1
  35. spring.redis.port=6379
  36. spring.redis.password=password
  37. spring.redis.timeout=10000
  38. spring.redis.jedis.pool.max-wait=1000
  39. spring.redis.jedis.pool.max-idle=200
  40. spring.redis.lettuce.pool.max-active=-1
  41. spring.redis.lettuce.pool.min-idle=0
  42. #mail
  43. spring.mail.default-encoding=utf-8
  44. spring.mail.host=smtp.163.com
  45. spring.mail.port=465
  46. spring.mail.username=maxkey@163.com
  47. spring.mail.password=password
  48. spring.mail.protocol=smtp
  49. spring.mail.properties.ssl=true
  50. spring.mail.properties.sender=maxkey@163.com
  51. spring.mail.properties.mailotp.message.subject=MaxKey One Time PassWord
  52. spring.mail.properties.mailotp.message.template={0} You Token is {1} , it validity in {2} minutes.
  53. #for freemarker
  54. spring.freemarker.template-loader-path=classpath:/templates/views
  55. spring.freemarker.cache=false
  56. spring.freemarker.charset=UTF-8
  57. spring.freemarker.check-template-location=true
  58. spring.freemarker.content-type=text/html
  59. spring.freemarker.expose-request-attributes=false
  60. spring.freemarker.expose-session-attributes=false
  61. spring.freemarker.request-context-attribute=request
  62. spring.freemarker.suffix=.ftl
  63. #static resources
  64. spring.mvc.static-path-pattern=/static/**
  65. spring.messages.basename=classpath:messages/message
  66. spring.messages.encoding=UTF-8
  67. #main
  68. spring.main.banner-mode=log
  69. spring.main.allow-bean-definition-overriding=true
  70. # Session store type.
  71. spring.session.store-type=none
  72. #spring.session.store-type=redis
  73. # Session timeout. If a duration suffix is not specified, seconds is used.
  74. #server.servlet.session.timeout=1800
  75. # Sessions flush mode.
  76. #spring.session.redis.flush-mode=on_save
  77. # Namespace for keys used to store sessions.
  78. #spring.session.redis.namespace=spring:session
  79. ###########\u3010Kafka\u96c6\u7fa4\u3011###########
  80. spring.kafka.bootstrap-servers=localhost:9092
  81. ###########\u3010\u521d\u59cb\u5316\u751f\u4ea7\u8005\u914d\u7f6e\u3011###########
  82. # \u91cd\u8bd5\u6b21\u6570
  83. spring.kafka.producer.retries=0
  84. # \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)
  85. spring.kafka.producer.acks=1
  86. # \u6279\u91cf\u5927\u5c0f
  87. spring.kafka.producer.batch-size=16384
  88. # \u63d0\u4ea4\u5ef6\u65f6
  89. spring.kafka.producer.properties.linger.ms=0
  90. # \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
  91. # 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
  92. # \u751f\u4ea7\u7aef\u7f13\u51b2\u533a\u5927\u5c0f
  93. spring.kafka.producer.buffer-memory = 33554432
  94. # Kafka\u63d0\u4f9b\u7684\u5e8f\u5217\u5316\u548c\u53cd\u5e8f\u5217\u5316\u7c7b
  95. spring.kafka.producer.key-serializer=org.apache.kafka.common.serialization.StringSerializer
  96. spring.kafka.producer.value-serializer=org.apache.kafka.common.serialization.StringSerializer
  97. # \u81ea\u5b9a\u4e49\u5206\u533a\u5668
  98. # spring.kafka.producer.properties.partitioner.class=com.felix.kafka.producer.CustomizePartitioner
  99. #springfox.documentation.swagger.v2.path=/api-docs
  100. #Swagger Configure Properties
  101. maxkey.swagger.enable=true
  102. maxkey.swagger.title=MaxKey\u5355\u70b9\u767b\u5f55\u8ba4\u8bc1\u7cfb\u7edfapi\u6587\u6863
  103. maxkey.swagger.description=MaxKey\u5355\u70b9\u767b\u5f55\u8ba4\u8bc1\u7cfb\u7edfapi\u6587\u6863
  104. maxkey.swagger.version=${application.formatted-version}