jcloudconfig

msauth-dev.yml 6.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. # ===================================================================
  2. # Spring Boot configuration for the "dev" 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: DEBUG
  17. com.edazone.msjhipster.msauth: DEBUG
  18. io.github.jhipster: DEBUG
  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. profiles:
  27. active: dev
  28. include: swagger
  29. devtools:
  30. restart:
  31. enabled: true
  32. livereload:
  33. enabled: false # we use gulp + BrowserSync for livereload
  34. jackson:
  35. serialization.indent_output: true
  36. datasource:
  37. type: com.zaxxer.hikari.HikariDataSource
  38. url: jdbc:mysql://localhost:3306/msauth?useUnicode=true&characterEncoding=utf8&useSSL=false
  39. username: root
  40. password:
  41. hikari:
  42. data-source-properties:
  43. cachePrepStmts: true
  44. prepStmtCacheSize: 250
  45. prepStmtCacheSqlLimit: 2048
  46. useServerPrepStmts: true
  47. jpa:
  48. database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
  49. database: MYSQL
  50. show-sql: true
  51. properties:
  52. hibernate.id.new_generator_mappings: true
  53. hibernate.cache.use_second_level_cache: true
  54. hibernate.cache.use_query_cache: false
  55. hibernate.generate_statistics: true
  56. hibernate.cache.region.factory_class: io.github.jhipster.config.jcache.NoDefaultJCacheRegionFactory
  57. mail:
  58. host: localhost
  59. port: 25
  60. username:
  61. password:
  62. messages:
  63. cache-seconds: 1
  64. thymeleaf:
  65. cache: false
  66. zipkin: # Use the "zipkin" Maven profile to have the Spring Cloud Zipkin dependencies
  67. base-url: http://localhost:9411
  68. enabled: false
  69. locator:
  70. discovery:
  71. enabled: true
  72. liquibase:
  73. contexts: dev
  74. # ===================================================================
  75. # To enable SSL, generate a certificate using:
  76. # keytool -genkey -alias msauth -storetype PKCS12 -keyalg RSA -keysize 2048 -keystore keystore.p12 -validity 3650
  77. #
  78. # You can also use Let's Encrypt:
  79. # https://maximilian-boehm.com/hp2121/Create-a-Java-Keystore-JKS-from-Let-s-Encrypt-Certificates.htm
  80. #
  81. # Then, modify the server.ssl properties so your "server" configuration looks like:
  82. #
  83. # server:
  84. # port: 8443
  85. # ssl:
  86. # key-store: keystore.p12
  87. # key-store-password: <your-password>
  88. # key-store-type: PKCS12
  89. # key-alias: msauth
  90. # ===================================================================
  91. server:
  92. port: 9999
  93. # ===================================================================
  94. # JHipster specific properties
  95. #
  96. # Full reference is available at: http://www.jhipster.tech/common-application-properties/
  97. # ===================================================================
  98. jhipster:
  99. http:
  100. version: V_1_1 # To use HTTP/2 you will need SSL support (see above the "server.ssl" configuration)
  101. cache: # Cache configuration
  102. ehcache: # Ehcache configuration
  103. time-to-live-seconds: 3600 # By default objects stay 1 hour in the cache
  104. max-entries: 100 # Number of objects in each cache entry
  105. # CORS is only enabled by default with the "dev" profile, so BrowserSync can access the API
  106. cors:
  107. allowed-origins: "*"
  108. allowed-methods: "*"
  109. allowed-headers: "*"
  110. exposed-headers: "Authorization,Link,X-Total-Count"
  111. allow-credentials: true
  112. max-age: 1800
  113. security:
  114. client-authorization:
  115. client-id: internal
  116. client-secret: internal
  117. mail: # specific JHipster mail property, for standard properties see MailProperties
  118. from: msauth@localhost
  119. base-url: http://127.0.0.1:9999
  120. metrics: # DropWizard Metrics configuration, used by MetricsConfiguration
  121. jmx.enabled: true
  122. graphite: # Use the "graphite" Maven profile to have the Graphite dependencies
  123. enabled: false
  124. host: localhost
  125. port: 2003
  126. prefix: msauth
  127. prometheus: # Use the "prometheus" Maven profile to have the Prometheus dependencies
  128. enabled: false
  129. endpoint: /prometheusMetrics
  130. logs: # Reports Dropwizard metrics in the logs
  131. enabled: false
  132. report-frequency: 60 # in seconds
  133. logging:
  134. logstash: # Forward logs to logstash over a socket, used by LoggingConfiguration
  135. enabled: false
  136. host: localhost
  137. port: 5000
  138. queue-size: 512
  139. uaa:
  140. key-store:
  141. name: keystore.jks
  142. password: password
  143. alias: selfsigned
  144. web-client-configuration:
  145. # Access Token is valid for 5 mins
  146. access-token-validity-in-seconds: 300
  147. # Refresh Token is valid for 7 days
  148. refresh-token-validity-in-seconds-for-remember-me: 604800
  149. client-id: web_app
  150. secret: changeit
  151. # ===================================================================
  152. # Application specific properties
  153. # Add your own application properties here, see the ApplicationProperties class
  154. # to have type-safe configuration, like in the JHipsterProperties above
  155. #
  156. # More documentation is available at:
  157. # http://www.jhipster.tech/common-application-properties/
  158. # ===================================================================
  159. application: