application-prod.yml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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: DEBUG
  17. tech.jhipster: DEBUG
  18. com.ruowei.ecsp: DEBUG
  19. management:
  20. metrics:
  21. export:
  22. prometheus:
  23. enabled: false
  24. spring:
  25. devtools:
  26. restart:
  27. enabled: false
  28. livereload:
  29. enabled: false
  30. datasource:
  31. type: com.zaxxer.hikari.HikariDataSource
  32. # 160-test
  33. # url: jdbc:mysql://192.168.1.160:3307/ecsp_test?useUnicode=true&characterEncoding=utf8&useSSL=false&useLegacyDatetimeCode=false&serverTimezone=UTC&createDatabaseIfNotExist=true&allowPublicKeyRetrieval=true
  34. # username: ecsp_test
  35. # password: Ecsp_test@2022
  36. # online-prod: 47.94.228.158:3306
  37. url: jdbc:mysql://localhost:3306/ecsp_prod?useUnicode=true&characterEncoding=utf8&useSSL=false&useLegacyDatetimeCode=false&serverTimezone=UTC&createDatabaseIfNotExist=true&allowPublicKeyRetrieval=true
  38. username: root
  39. password: slibra
  40. hikari:
  41. poolName: Hikari
  42. auto-commit: false
  43. data-source-properties:
  44. cachePrepStmts: true
  45. prepStmtCacheSize: 250
  46. prepStmtCacheSqlLimit: 2048
  47. useServerPrepStmts: true
  48. jpa:
  49. # Replace by 'prod, faker' to add the faker context and have sample data loaded in production
  50. liquibase:
  51. contexts: prod
  52. mail:
  53. host: localhost
  54. port: 25
  55. username:
  56. password:
  57. thymeleaf:
  58. cache: true
  59. # ===================================================================
  60. # To enable TLS in production, generate a certificate using:
  61. # keytool -genkey -alias ecsp -storetype PKCS12 -keyalg RSA -keysize 2048 -keystore keystore.p12 -validity 3650
  62. #
  63. # You can also use Let's Encrypt:
  64. # https://maximilian-boehm.com/hp2121/Create-a-Java-Keystore-JKS-from-Let-s-Encrypt-Certificates.htm
  65. #
  66. # Then, modify the server.ssl properties so your "server" configuration looks like:
  67. #
  68. # server:
  69. # port: 443
  70. # ssl:
  71. # key-store: classpath:config/tls/keystore.p12
  72. # key-store-password: password
  73. # key-store-type: PKCS12
  74. # key-alias: selfsigned
  75. # # 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/)
  76. # 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
  77. # ===================================================================
  78. server:
  79. port: 8083
  80. shutdown: graceful # see https://docs.spring.io/spring-boot/docs/current/reference/html/spring-boot-features.html#boot-features-graceful-shutdown
  81. compression:
  82. enabled: true
  83. mime-types: text/html,text/xml,text/plain,text/css,application/javascript,application/json,image/svg+xml
  84. min-response-size: 1024
  85. # ===================================================================
  86. # JHipster specific properties
  87. #
  88. # Full reference is available at: https://www.jhipster.tech/common-application-properties/
  89. # ===================================================================
  90. jhipster:
  91. http:
  92. cache: # Used by the CachingHttpHeadersFilter
  93. timeToLiveInDays: 1461
  94. cache: # Cache configuration
  95. ehcache: # Ehcache configuration
  96. time-to-live-seconds: 3600 # By default objects stay 1 hour in the cache
  97. max-entries: 1000 # Number of objects in each cache entry
  98. security:
  99. authentication:
  100. jwt:
  101. # 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)
  102. # As this is the PRODUCTION configuration, you MUST change the default key, and store it securely:
  103. # - In the JHipster Registry (which includes a Spring Cloud Config server)
  104. # - In a separate `application-prod.yml` file, in the same folder as your executable JAR file
  105. # - In the `JHIPSTER_SECURITY_AUTHENTICATION_JWT_BASE64_SECRET` environment variable
  106. base64-secret: mq9dl9UppW5cr8fiZ/yLFpUnTonEF7xxLbsrj3uKOTegmtIEy4jeHeqKxja6sxlt8HlYAzOVpe9VUF9am7zUow==
  107. # Token is valid 24 hours
  108. token-validity-in-seconds: 86400
  109. token-validity-in-seconds-for-remember-me: 2592000
  110. mail: # specific JHipster mail property, for standard properties see MailProperties
  111. base-url: http://my-server-url-to-change # Modify according to your server's URL
  112. logging:
  113. use-json-format: false # By default, logs are not in Json format
  114. logstash: # Forward logs to logstash over a socket, used by LoggingConfiguration
  115. enabled: false
  116. host: localhost
  117. port: 5000
  118. queue-size: 512
  119. # ===================================================================
  120. # Application specific properties
  121. # Add your own application properties here, see the ApplicationProperties class
  122. # to have type-safe configuration, like in the JHipsterProperties above
  123. #
  124. # More documentation is available at:
  125. # https://www.jhipster.tech/common-application-properties/
  126. # ===================================================================
  127. application:
  128. # reportPath: ./report/
  129. uploadPath: ./upload/
  130. ecspUploadPath: ../ecsp/upload/