application-prod.yml 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  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. url: jdbc:mysql://39.98.34.197:3306/activiti_dqm?useUnicode=true&characterEncoding=utf8&useSSL=false&useLegacyDatetimeCode=false&serverTimezone=UTC
  30. username: dqmnt_user
  31. password: Y6Ba64w1Hezo
  32. # username: root
  33. # password: zks123456
  34. hikari:
  35. auto-commit: false
  36. data-source-properties:
  37. cachePrepStmts: true
  38. prepStmtCacheSize: 250
  39. prepStmtCacheSqlLimit: 2048
  40. useServerPrepStmts: true
  41. jpa:
  42. database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
  43. database: MYSQL
  44. show-sql: false
  45. properties:
  46. hibernate.id.new_generator_mappings: true
  47. hibernate.connection.provider_disables_autocommit: true
  48. hibernate.cache.use_second_level_cache: true
  49. hibernate.cache.use_query_cache: false
  50. hibernate.generate_statistics: false
  51. hibernate.cache.region.factory_class: io.github.jhipster.config.jcache.BeanClassLoaderAwareJCacheRegionFactory
  52. liquibase:
  53. contexts: prod
  54. mail:
  55. host: localhost
  56. port: 25
  57. username:
  58. password:
  59. thymeleaf:
  60. cache: true
  61. activiti:
  62. jobExecutorActivate: false
  63. asyncExecutorEnabled: false
  64. asyncExecutorActivate: false
  65. database-schema-update: false
  66. check-process-definitions: true
  67. process-definition-location-prefix: classpath:/processes_cellsop/
  68. # process-definition-location-suffixes:
  69. # - **.bpmn
  70. # - **.bpmn20.xml
  71. history-level: full
  72. activityFontName: 宋体
  73. labelFontName: 宋体
  74. annotationFontName: 宋体
  75. # ===================================================================
  76. # To enable TLS in production, generate a certificate using:
  77. # keytool -genkey -alias actiapi -storetype PKCS12 -keyalg RSA -keysize 2048 -keystore keystore.p12 -validity 3650
  78. #
  79. # You can also use Let's Encrypt:
  80. # https://maximilian-boehm.com/hp2121/Create-a-Java-Keystore-JKS-from-Let-s-Encrypt-Certificates.htm
  81. #
  82. # Then, modify the server.ssl properties so your "server" configuration looks like:
  83. #
  84. # server:
  85. # port: 443
  86. # ssl:
  87. # key-store: classpath:config/tls/keystore.p12
  88. # key-store-password: password
  89. # key-store-type: PKCS12
  90. # key-alias: actiapi
  91. # # 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/)
  92. # 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
  93. # ===================================================================
  94. server:
  95. port: 8080
  96. compression:
  97. enabled: true
  98. mime-types: text/html,text/xml,text/plain,text/css, application/javascript, application/json
  99. min-response-size: 1024
  100. # ===================================================================
  101. # JHipster specific properties
  102. #
  103. # Full reference is available at: https://www.jhipster.tech/common-application-properties/
  104. # ===================================================================
  105. jhipster:
  106. http:
  107. version: V_1_1 # To use HTTP/2 you will need SSL support (see above the "server.ssl" configuration)
  108. cache: # Used by the CachingHttpHeadersFilter
  109. timeToLiveInDays: 1461
  110. cache: # Cache configuration
  111. ehcache: # Ehcache configuration
  112. time-to-live-seconds: 3600 # By default objects stay 1 hour in the cache
  113. max-entries: 1000 # Number of objects in each cache entry
  114. security:
  115. authentication:
  116. jwt:
  117. # 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)
  118. # As this is the PRODUCTION configuration, you MUST change the default key, and store it securely:
  119. # - In the JHipster Registry (which includes a Spring Cloud Config server)
  120. # - In a separate `application-prod.yml` file, in the same folder as your executable WAR file
  121. # - In the `JHIPSTER_SECURITY_AUTHENTICATION_JWT_BASE64_SECRET` environment variable
  122. base64-secret: YjA1MDY3OTIyM2FmMzEzMDM5MTllMTk3MTlhNTk1ODY2MDE5MTk2ZmQ4OTA5MjIwY2E2Yjc1NzJjNmQzNWQ2MjVhYmNkOTI0NjA2YzhhYzY1ZTQ2MmRjNjIwMGNlNDAzODMyOGMwODQxN2JkYWZjMjRkYzVlZGJlZWM2M2E5ODg=
  123. # Token is valid 24 hours
  124. token-validity-in-seconds: 86400
  125. token-validity-in-seconds-for-remember-me: 2592000
  126. mail: # specific JHipster mail property, for standard properties see MailProperties
  127. from: ActiApi@localhost
  128. base-url: http://my-server-url-to-change # Modify according to your server's URL
  129. metrics: # DropWizard Metrics configuration, used by MetricsConfiguration
  130. jmx:
  131. enabled: true
  132. prometheus:
  133. enabled: false #expose metrics via prometheus
  134. logs: # Reports Dropwizard metrics in the logs
  135. enabled: false
  136. report-frequency: 60 # in seconds
  137. logging:
  138. logstash: # Forward logs to logstash over a socket, used by LoggingConfiguration
  139. enabled: false
  140. host: localhost
  141. port: 5000
  142. queue-size: 512
  143. # ===================================================================
  144. # Application specific properties
  145. # Add your own application properties here, see the ApplicationProperties class
  146. # to have type-safe configuration, like in the JHipsterProperties above
  147. #
  148. # More documentation is available at:
  149. # https://www.jhipster.tech/common-application-properties/
  150. # ===================================================================
  151. # application: