jcloudconfig

ms1-prod.yml 6.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. # ===================================================================
  2. # Spring Boot configuration for the "prod" profile.
  3. #
  4. # This configuration overrides the application.yml file.
  5. #
  6. # More information on profiles: http://www.jhipster.tech/profiles/
  7. # More information on configuration properties: http://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.edazone.msj.ms1: INFO
  18. io.github.jhipster: INFO
  19. eureka:
  20. instance:
  21. prefer-ip-address: true
  22. client:
  23. service-url:
  24. defaultZone: http://admin:${jhipster.registry.password}@localhost:8761/eureka/
  25. spring:
  26. devtools:
  27. restart:
  28. enabled: false
  29. livereload:
  30. enabled: false
  31. datasource:
  32. type: com.zaxxer.hikari.HikariDataSource
  33. url: jdbc:mysql://localhost:3306/ms1?useUnicode=true&characterEncoding=utf8&useSSL=false
  34. username: root
  35. password:
  36. hikari:
  37. data-source-properties:
  38. cachePrepStmts: true
  39. prepStmtCacheSize: 250
  40. prepStmtCacheSqlLimit: 2048
  41. useServerPrepStmts: true
  42. jpa:
  43. database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
  44. database: MYSQL
  45. show-sql: false
  46. properties:
  47. hibernate.id.new_generator_mappings: true
  48. hibernate.cache.use_second_level_cache: false
  49. hibernate.cache.use_query_cache: false
  50. hibernate.generate_statistics: false
  51. mail:
  52. host: localhost
  53. port: 25
  54. username:
  55. password:
  56. thymeleaf:
  57. cache: true
  58. zipkin: # Use the "zipkin" Maven profile to have the Spring Cloud Zipkin dependencies
  59. base-url: http://localhost:9411
  60. enabled: false
  61. locator:
  62. discovery:
  63. enabled: true
  64. liquibase:
  65. contexts: prod
  66. # ===================================================================
  67. # To enable SSL, generate a certificate using:
  68. # keytool -genkey -alias ms1 -storetype PKCS12 -keyalg RSA -keysize 2048 -keystore keystore.p12 -validity 3650
  69. #
  70. # You can also use Let's Encrypt:
  71. # https://maximilian-boehm.com/hp2121/Create-a-Java-Keystore-JKS-from-Let-s-Encrypt-Certificates.htm
  72. #
  73. # Then, modify the server.ssl properties so your "server" configuration looks like:
  74. #
  75. # server:
  76. # port: 443
  77. # ssl:
  78. # key-store: keystore.p12
  79. # key-store-password: <your-password>
  80. # key-store-type: PKCS12
  81. # key-alias: ms1
  82. # # 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/)
  83. # 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
  84. # ===================================================================
  85. server:
  86. port: 8081
  87. compression:
  88. enabled: true
  89. mime-types: text/html,text/xml,text/plain,text/css, application/javascript, application/json
  90. min-response-size: 1024
  91. # ===================================================================
  92. # JHipster specific properties
  93. #
  94. # Full reference is available at: http://www.jhipster.tech/common-application-properties/
  95. # ===================================================================
  96. jhipster:
  97. http:
  98. version: V_1_1 # To use HTTP/2 you will need SSL support (see above the "server.ssl" configuration)
  99. cache: # Used by the CachingHttpHeadersFilter
  100. timeToLiveInDays: 1461
  101. security:
  102. client-authorization:
  103. access-token-uri: http://msauth/oauth/token
  104. token-service-id: msauth
  105. client-id: internal
  106. client-secret: internal
  107. mail: # specific JHipster mail property, for standard properties see MailProperties
  108. from: ms1@localhost
  109. base-url: http://my-server-url-to-change # Modify according to your server's URL
  110. metrics: # DropWizard Metrics configuration, used by MetricsConfiguration
  111. jmx.enabled: true
  112. graphite:
  113. enabled: false
  114. host: localhost
  115. port: 2003
  116. prefix: ms1
  117. prometheus:
  118. enabled: false
  119. endpoint: /prometheusMetrics
  120. logs: # Reports Dropwizard metrics in the logs
  121. enabled: false
  122. report-frequency: 60 # in seconds
  123. logging:
  124. logstash: # Forward logs to logstash over a socket, used by LoggingConfiguration
  125. enabled: false
  126. host: localhost
  127. port: 5000
  128. queue-size: 512
  129. spectator-metrics: # Reports Spectator Circuit Breaker metrics in the logs
  130. enabled: false
  131. # edit spring.metrics.export.delay-millis to set report frequency
  132. oauth2:
  133. signature-verification:
  134. public-key-endpoint-uri: http://msauth/oauth/token_key
  135. #ttl for public keys to verify JWT tokens (in ms)
  136. ttl: 3600000
  137. #max. rate at which public keys will be fetched (in ms)
  138. public-key-refresh-rate-limit: 10000
  139. web-client-configuration:
  140. #change client secret in production, keep in sync with UAA configuration
  141. client-id: web_app
  142. secret: changeit
  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. # http://www.jhipster.tech/common-application-properties/
  150. # ===================================================================
  151. application: