application-prod.yml 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. # ===================================================================
  2. # Spring Boot configuration for the "prod" profile.
  3. #
  4. # This configuration overrides the application.yml file.
  5. #
  6. # More information on profiles: https://www.jhipster.tech/profiles/
  7. # More information on configuration properties: https://www.jhipster.tech/common-application-properties/
  8. # ===================================================================
  9. # ===================================================================
  10. # Standard Spring Boot properties.
  11. # Full reference is available at:
  12. # http://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html
  13. # ===================================================================
  14. logging:
  15. level:
  16. ROOT: INFO
  17. com.common.workflow: INFO
  18. io.github.jhipster: INFO
  19. spring:
  20. devtools:
  21. restart:
  22. enabled: false
  23. livereload:
  24. enabled: false
  25. datasource:
  26. type: com.zaxxer.hikari.HikariDataSource
  27. # url: jdbc:mysql://47.92.212.59:3306/activiti?useUnicode=true&characterEncoding=utf8&useSSL=false&useLegacyDatetimeCode=false&serverTimezone=UTC
  28. url: jdbc:mysql://172.17.0.1:3306/activiti?useUnicode=true&characterEncoding=utf8&useSSL=false&useLegacyDatetimeCode=false&serverTimezone=UTC
  29. username: root
  30. password: zks123456
  31. hikari:
  32. auto-commit: false
  33. data-source-properties:
  34. cachePrepStmts: true
  35. prepStmtCacheSize: 250
  36. prepStmtCacheSqlLimit: 2048
  37. useServerPrepStmts: true
  38. jpa:
  39. database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
  40. database: MYSQL
  41. show-sql: false
  42. properties:
  43. hibernate.id.new_generator_mappings: true
  44. hibernate.connection.provider_disables_autocommit: true
  45. hibernate.cache.use_second_level_cache: true
  46. hibernate.cache.use_query_cache: false
  47. hibernate.generate_statistics: false
  48. hibernate.cache.region.factory_class: io.github.jhipster.config.jcache.BeanClassLoaderAwareJCacheRegionFactory
  49. liquibase:
  50. contexts: prod
  51. mail:
  52. host: localhost
  53. port: 25
  54. username:
  55. password:
  56. thymeleaf:
  57. cache: true
  58. activiti:
  59. jobExecutorActivate: false
  60. asyncExecutorEnabled: false
  61. asyncExecutorActivate: false
  62. database-schema-update: true
  63. check-process-definitions: true
  64. process-definition-location-prefix: classpath:/processes/
  65. # process-definition-location-suffixes:
  66. # - **.bpmn
  67. # - **.bpmn20.xml
  68. history-level: full
  69. activityFontName: 宋体
  70. labelFontName: 宋体
  71. annotationFontName: 宋体
  72. # ===================================================================
  73. # To enable TLS in production, generate a certificate using:
  74. # keytool -genkey -alias actiapi -storetype PKCS12 -keyalg RSA -keysize 2048 -keystore keystore.p12 -validity 3650
  75. #
  76. # You can also use Let's Encrypt:
  77. # https://maximilian-boehm.com/hp2121/Create-a-Java-Keystore-JKS-from-Let-s-Encrypt-Certificates.htm
  78. #
  79. # Then, modify the server.ssl properties so your "server" configuration looks like:
  80. #
  81. # server:
  82. # port: 443
  83. # ssl:
  84. # key-store: classpath:config/tls/keystore.p12
  85. # key-store-password: password
  86. # key-store-type: PKCS12
  87. # key-alias: actiapi
  88. # # The ciphers suite enforce the security by deactivating some old and deprecated SSL cipher, this list was tested against SSL Labs (https://www.ssllabs.com/ssltest/)
  89. # ciphers: TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 ,TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 ,TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 ,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,TLS_DHE_RSA_WITH_AES_128_CBC_SHA256,TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_DHE_RSA_WITH_AES_256_CBC_SHA256,TLS_DHE_RSA_WITH_AES_256_CBC_SHA,TLS_RSA_WITH_AES_128_GCM_SHA256,TLS_RSA_WITH_AES_256_GCM_SHA384,TLS_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_256_CBC_SHA256,TLS_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_256_CBC_SHA,TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA,TLS_RSA_WITH_CAMELLIA_256_CBC_SHA,TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA,TLS_RSA_WITH_CAMELLIA_128_CBC_SHA
  90. # ===================================================================
  91. server:
  92. port: 8080
  93. compression:
  94. enabled: true
  95. mime-types: text/html,text/xml,text/plain,text/css, application/javascript, application/json
  96. min-response-size: 1024
  97. # ===================================================================
  98. # JHipster specific properties
  99. #
  100. # Full reference is available at: https://www.jhipster.tech/common-application-properties/
  101. # ===================================================================
  102. jhipster:
  103. http:
  104. version: V_1_1 # To use HTTP/2 you will need SSL support (see above the "server.ssl" configuration)
  105. cache: # Used by the CachingHttpHeadersFilter
  106. timeToLiveInDays: 1461
  107. cache: # Cache configuration
  108. ehcache: # Ehcache configuration
  109. time-to-live-seconds: 3600 # By default objects stay 1 hour in the cache
  110. max-entries: 1000 # Number of objects in each cache entry
  111. security:
  112. authentication:
  113. jwt:
  114. # This token must be encoded using Base64 and be at least 256 bits long (you can type `openssl rand -base64 64` on your command line to generate a 512 bits one)
  115. # As this is the PRODUCTION configuration, you MUST change the default key, and store it securely:
  116. # - In the JHipster Registry (which includes a Spring Cloud Config server)
  117. # - In a separate `application-prod.yml` file, in the same folder as your executable WAR file
  118. # - In the `JHIPSTER_SECURITY_AUTHENTICATION_JWT_BASE64_SECRET` environment variable
  119. base64-secret: YjA1MDY3OTIyM2FmMzEzMDM5MTllMTk3MTlhNTk1ODY2MDE5MTk2ZmQ4OTA5MjIwY2E2Yjc1NzJjNmQzNWQ2MjVhYmNkOTI0NjA2YzhhYzY1ZTQ2MmRjNjIwMGNlNDAzODMyOGMwODQxN2JkYWZjMjRkYzVlZGJlZWM2M2E5ODg=
  120. # Token is valid 24 hours
  121. token-validity-in-seconds: 86400
  122. token-validity-in-seconds-for-remember-me: 2592000
  123. mail: # specific JHipster mail property, for standard properties see MailProperties
  124. from: ActiApi@localhost
  125. base-url: http://my-server-url-to-change # Modify according to your server's URL
  126. metrics: # DropWizard Metrics configuration, used by MetricsConfiguration
  127. jmx:
  128. enabled: true
  129. prometheus:
  130. enabled: false #expose metrics via prometheus
  131. logs: # Reports Dropwizard metrics in the logs
  132. enabled: false
  133. report-frequency: 60 # in seconds
  134. logging:
  135. logstash: # Forward logs to logstash over a socket, used by LoggingConfiguration
  136. enabled: false
  137. host: localhost
  138. port: 5000
  139. queue-size: 512
  140. # ===================================================================
  141. # Application specific properties
  142. # Add your own application properties here, see the ApplicationProperties class
  143. # to have type-safe configuration, like in the JHipsterProperties above
  144. #
  145. # More documentation is available at:
  146. # https://www.jhipster.tech/common-application-properties/
  147. # ===================================================================
  148. # application: