application-prod.yml 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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. tech.jhipster: INFO
  18. com.ruowei: INFO
  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. url: jdbc:mysql://localhost:3306/cnsp_prod?useUnicode=true&characterEncoding=utf8&useSSL=false&useLegacyDatetimeCode=false&serverTimezone=UTC&createDatabaseIfNotExist=true&allowPublicKeyRetrieval=true
  33. username: cnsp_prod
  34. password: CnspProd@2021
  35. hikari:
  36. poolName: Hikari
  37. auto-commit: false
  38. data-source-properties:
  39. cachePrepStmts: true
  40. prepStmtCacheSize: 250
  41. prepStmtCacheSqlLimit: 2048
  42. useServerPrepStmts: true
  43. jpa:
  44. # Replace by 'prod, faker' to add the faker context and have sample data loaded in production
  45. liquibase:
  46. contexts: prod
  47. thymeleaf:
  48. cache: true
  49. sleuth:
  50. sampler:
  51. probability: 1 # report 100% of traces
  52. zipkin: # Use the "zipkin" Maven profile to have the Spring Cloud Zipkin dependencies
  53. base-url: http://localhost:9411
  54. enabled: false
  55. locator:
  56. discovery:
  57. enabled: true
  58. # ===================================================================
  59. # To enable TLS in production, generate a certificate using:
  60. # keytool -genkey -alias cnspjava -storetype PKCS12 -keyalg RSA -keysize 2048 -keystore keystore.p12 -validity 3650
  61. #
  62. # You can also use Let's Encrypt:
  63. # https://maximilian-boehm.com/hp2121/Create-a-Java-Keystore-JKS-from-Let-s-Encrypt-Certificates.htm
  64. #
  65. # Then, modify the server.ssl properties so your "server" configuration looks like:
  66. #
  67. # server:
  68. # port: 443
  69. # ssl:
  70. # key-store: classpath:config/tls/keystore.p12
  71. # key-store-password: password
  72. # key-store-type: PKCS12
  73. # key-alias: selfsigned
  74. # # 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/)
  75. # 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
  76. # ===================================================================
  77. server:
  78. port: 8080
  79. shutdown: graceful # see https://docs.spring.io/spring-boot/docs/current/reference/html/spring-boot-features.html#boot-features-graceful-shutdown
  80. compression:
  81. enabled: true
  82. mime-types: text/html,text/xml,text/plain,text/css,application/javascript,application/json,image/svg+xml
  83. min-response-size: 1024
  84. # ===================================================================
  85. # JHipster specific properties
  86. #
  87. # Full reference is available at: https://www.jhipster.tech/common-application-properties/
  88. # ===================================================================
  89. jhipster:
  90. http:
  91. cache: # Used by the CachingHttpHeadersFilter
  92. timeToLiveInDays: 1461
  93. cache: # Cache configuration
  94. caffeine: # Caffeine configuration
  95. time-to-live-seconds: 3600 # By default objects stay 1 hour in the cache. This sets expireAfterWrite in Caffeine (https://github.com/ben-manes/caffeine/wiki/Eviction#time-based)
  96. max-entries: 1000 # Number of objects in each cache entry
  97. security:
  98. authentication:
  99. jwt:
  100. # 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)
  101. # As this is the PRODUCTION configuration, you MUST change the default key, and store it securely:
  102. # - In the JHipster Registry (which includes a Spring Cloud Config server)
  103. # - In a separate `application-prod.yml` file, in the same folder as your executable JAR file
  104. # - In the `JHIPSTER_SECURITY_AUTHENTICATION_JWT_BASE64_SECRET` environment variable
  105. base64-secret: NWM4M2RmMTUwZjZkNGY2OTNjNzg5ZmZiMjhlYzZmZTg5MGRiZjA1NjgzMDkyYTQwMWMyODRkNjY3MDgxMjU5ZWVhYzI0ZjliZGNkMDBhOGQxNDkwMDA4MGI3OTA3ZTYwNGMxYWRmODNjMTJkMTJiMTIwNmNkYzIyZmFjMjM5N2E=
  106. # Token is valid 24 hours
  107. token-validity-in-seconds: 86400
  108. token-validity-in-seconds-for-remember-me: 2592000
  109. logging:
  110. use-json-format: false # By default, logs are not in Json format
  111. logstash: # Forward logs to logstash over a socket, used by LoggingConfiguration
  112. enabled: false
  113. host: localhost
  114. port: 5000
  115. queue-size: 512
  116. # ===================================================================
  117. # Application specific properties
  118. # Add your own application properties here, see the ApplicationProperties class
  119. # to have type-safe configuration, like in the JHipsterProperties above
  120. #
  121. # More documentation is available at:
  122. # https://www.jhipster.tech/common-application-properties/
  123. # ===================================================================
  124. application:
  125. block-chain:
  126. # generate with openssl rand -base64 9
  127. app-id: SHc9yqBK7EAo
  128. channel-id: 650950ada7525b005e0b6863
  129. chaincode-id: 65099666570cf400669c8dc5
  130. base-url: http://172.20.223.197:8081
  131. ali-cloud:
  132. enable-sms: false
  133. access-key-id: LTAI5tMYjV29Hy1XKn3d79YD
  134. access-key-secret: 48we5KZdx9Bu2OiJ9hmXhQTf2aCut0
  135. sign-name: 红杉天枰
  136. evaluation-through-template: SMS_232906758
  137. evaluation-not-through-template: SMS_232911702
  138. approval-through-template: SMS_232916792
  139. filing-through-template: SMS_232906773
  140. red-check-through-template: SMS_232891848
  141. red-filing-through-template: SMS_232892121
  142. add-account: SMS_234136153
  143. reset-password: SMS_234156180
  144. regist-deny: SMS_238152682
  145. reportPath: ./report/
  146. uploadPath: ./upload/
  147. imgPath: ./img/
  148. tempPath: ./tmp/