application-prod.yml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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.ledar.trade: 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. url: jdbc:mysql://localhost:3306/trade?useUnicode=true&characterEncoding=utf8&useSSL=false&useLegacyDatetimeCode=false&serverTimezone=UTC&createDatabaseIfNotExist=true&allowPublicKeyRetrieval=true
  33. username: trade
  34. password: 3ek1U824G3Zy
  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. liquibase:
  44. enabled: false
  45. thymeleaf:
  46. cache: true
  47. # ===================================================================
  48. # To enable TLS in production, generate a certificate using:
  49. # keytool -genkey -alias trade -storetype PKCS12 -keyalg RSA -keysize 2048 -keystore keystore.p12 -validity 3650
  50. #
  51. # You can also use Let's Encrypt:
  52. # See details in topic "Create a Java Keystore (.JKS) from Let's Encrypt Certificates" on https://maximilian-boehm.com/en-gb/blog
  53. #
  54. # Then, modify the server.ssl properties so your "server" configuration looks like:
  55. #
  56. # server:
  57. # port: 443
  58. # ssl:
  59. # key-store: classpath:config/tls/keystore.p12
  60. # key-store-password: password
  61. # key-store-type: PKCS12
  62. # key-alias: selfsigned
  63. # # 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/)
  64. # 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
  65. # ===================================================================
  66. server:
  67. port: 8080
  68. shutdown: graceful # see https://docs.spring.io/spring-boot/docs/current/reference/html/spring-boot-features.html#boot-features-graceful-shutdown
  69. compression:
  70. enabled: true
  71. mime-types: text/html,text/xml,text/plain,text/css,application/javascript,application/json,image/svg+xml
  72. min-response-size: 1024
  73. # ===================================================================
  74. # JHipster specific properties
  75. #
  76. # Full reference is available at: https://www.jhipster.tech/common-application-properties/
  77. # ===================================================================
  78. jhipster:
  79. http:
  80. cache: # Used by the CachingHttpHeadersFilter
  81. timeToLiveInDays: 1461
  82. cache: # Cache configuration
  83. ehcache: # Ehcache configuration
  84. time-to-live-seconds: 0 # By default objects stay 1 hour in the cache
  85. max-entries: 1000 # Number of objects in each cache entry
  86. security:
  87. authentication:
  88. jwt:
  89. # 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)
  90. # As this is the PRODUCTION configuration, you MUST changePwd the default key, and store it securely:
  91. # - In the JHipster Registry (which includes a Spring Cloud Config server)
  92. # - In a separate `application-prod.yml` file, in the same folder as your executable JAR file
  93. # - In the `JHIPSTER_SECURITY_AUTHENTICATION_JWT_BASE64_SECRET` environment variable
  94. base64-secret: hf/Vx4c8g/5lh+cICgxWkXblHl54Od/nE8GzPvy59kvMjChBboL1wNKOggY75Y70vWAI/E96/IYNb6X3i9pt6w==
  95. # Token is valid 24 hours
  96. token-validity-in-seconds: 86400
  97. token-validity-in-seconds-for-remember-me: 2592000
  98. logging:
  99. use-json-format: false # By default, logs are not in Json format
  100. logstash: # Forward logs to logstash over a socket, used by LoggingConfiguration
  101. enabled: false
  102. host: localhost
  103. port: 5000
  104. queue-size: 512
  105. # ===================================================================
  106. # Application specific properties
  107. # Add your own application properties here, see the ApplicationProperties class
  108. # to have type-safe configuration, like in the JHipsterProperties above
  109. #
  110. # More documentation is available at:
  111. # https://www.jhipster.tech/common-application-properties/
  112. # ===================================================================
  113. # application:
  114. application:
  115. qiYueSuoAccount:
  116. serverUrl: https://openapi.qiyuesuo.cn
  117. accessKey: njhjJYvh6B
  118. accessSecret: wdodHgMGea9FruNd0kqbGKvCleKS3U
  119. secretKey: kiU1m7YsnTqCVNgN
  120. hostPath: http://172.20.223.195:8080/api/
  121. bcosPath: http://172.20.223.197:8090/api/
  122. qysCallServer: https://www.fuxicarbon.com/api/qys/permit/
  123. earnestPct: 0.01
  124. deposit: 0.01
  125. wechatPay:
  126. orderNotifyUrl: https://www.fuxicarbon.com/api/wechat-pay-records/orderNotify
  127. depositNotifyUrl: https://www.fuxicarbon.com/api/wechat-pay-records/depositNotify