jcloudconfig

msauth-prod.yml 7.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  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.msjhipster.msauth: 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/msauth?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: true
  49. hibernate.cache.use_query_cache: false
  50. hibernate.generate_statistics: false
  51. hibernate.cache.region.factory_class: io.github.jhipster.config.jcache.NoDefaultJCacheRegionFactory
  52. mail:
  53. host: localhost
  54. port: 25
  55. username:
  56. password:
  57. thymeleaf:
  58. cache: true
  59. zipkin: # Use the "zipkin" Maven profile to have the Spring Cloud Zipkin dependencies
  60. base-url: http://localhost:9411
  61. enabled: false
  62. locator:
  63. discovery:
  64. enabled: true
  65. liquibase:
  66. contexts: prod
  67. # ===================================================================
  68. # To enable SSL, generate a certificate using:
  69. # keytool -genkey -alias msauth -storetype PKCS12 -keyalg RSA -keysize 2048 -keystore keystore.p12 -validity 3650
  70. #
  71. # You can also use Let's Encrypt:
  72. # https://maximilian-boehm.com/hp2121/Create-a-Java-Keystore-JKS-from-Let-s-Encrypt-Certificates.htm
  73. #
  74. # Then, modify the server.ssl properties so your "server" configuration looks like:
  75. #
  76. # server:
  77. # port: 443
  78. # ssl:
  79. # key-store: keystore.p12
  80. # key-store-password: <your-password>
  81. # key-store-type: PKCS12
  82. # key-alias: msauth
  83. # # 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/)
  84. # 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
  85. # ===================================================================
  86. server:
  87. port: 9999
  88. compression:
  89. enabled: true
  90. mime-types: text/html,text/xml,text/plain,text/css, application/javascript, application/json
  91. min-response-size: 1024
  92. # ===================================================================
  93. # JHipster specific properties
  94. #
  95. # Full reference is available at: http://www.jhipster.tech/common-application-properties/
  96. # ===================================================================
  97. jhipster:
  98. http:
  99. version: V_1_1 # To use HTTP/2 you will need SSL support (see above the "server.ssl" configuration)
  100. cache: # Used by the CachingHttpHeadersFilter
  101. timeToLiveInDays: 1461
  102. cache: # Cache configuration
  103. ehcache: # Ehcache configuration
  104. time-to-live-seconds: 3600 # By default objects stay 1 hour in the cache
  105. max-entries: 1000 # Number of objects in each cache entry
  106. security:
  107. client-authorization:
  108. client-id: internal
  109. client-secret: internal
  110. authentication:
  111. jwt:
  112. # Access Token is valid for 5 mins
  113. token-validity-in-seconds: 300
  114. # Refresh Token is valid for 7 days
  115. token-validity-in-seconds-for-remember-me: 252000
  116. mail: # specific JHipster mail property, for standard properties see MailProperties
  117. from: msauth@localhost
  118. base-url: http://my-server-url-to-change # Modify according to your server's URL
  119. metrics: # DropWizard Metrics configuration, used by MetricsConfiguration
  120. jmx.enabled: true
  121. graphite:
  122. enabled: false
  123. host: localhost
  124. port: 2003
  125. prefix: msauth
  126. prometheus:
  127. enabled: false
  128. endpoint: /prometheusMetrics
  129. logs: # Reports Dropwizard metrics in the logs
  130. enabled: false
  131. report-frequency: 60 # in seconds
  132. logging:
  133. logstash: # Forward logs to logstash over a socket, used by LoggingConfiguration
  134. enabled: false
  135. host: localhost
  136. port: 5000
  137. queue-size: 512
  138. uaa:
  139. #be sure to to change to a different keystore in production!
  140. #create one using: keytool -genkeypair -keyalg RSA -keystore keystore_prod.jks -storepass <secretpasswd> -alias <myalias>
  141. key-store:
  142. name: keystore.jks
  143. password: password
  144. alias: selfsigned
  145. web-client-configuration:
  146. # Access Token is valid for 5 mins
  147. access-token-validity-in-seconds: 300
  148. # Refresh Token is valid for 7 days
  149. refresh-token-validity-in-seconds-for-remember-me: 604800
  150. #change client secret in production, keep in sync with gateway configuration
  151. client-id: web_app
  152. secret: changeit
  153. # ===================================================================
  154. # Application specific properties
  155. # Add your own application properties here, see the ApplicationProperties class
  156. # to have type-safe configuration, like in the JHipsterProperties above
  157. #
  158. # More documentation is available at:
  159. # http://www.jhipster.tech/common-application-properties/
  160. # ===================================================================
  161. application: