jcloudconfig

ms1-dev.yml 6.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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.msj.ms1: 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/ms1?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: false
  54. hibernate.cache.use_query_cache: false
  55. hibernate.generate_statistics: true
  56. mail:
  57. host: localhost
  58. port: 25
  59. username:
  60. password:
  61. messages:
  62. cache-seconds: 1
  63. thymeleaf:
  64. cache: false
  65. zipkin: # Use the "zipkin" Maven profile to have the Spring Cloud Zipkin dependencies
  66. base-url: http://localhost:9411
  67. enabled: false
  68. locator:
  69. discovery:
  70. enabled: true
  71. liquibase:
  72. contexts: dev
  73. # ===================================================================
  74. # To enable SSL, generate a certificate using:
  75. # keytool -genkey -alias ms1 -storetype PKCS12 -keyalg RSA -keysize 2048 -keystore keystore.p12 -validity 3650
  76. #
  77. # You can also use Let's Encrypt:
  78. # https://maximilian-boehm.com/hp2121/Create-a-Java-Keystore-JKS-from-Let-s-Encrypt-Certificates.htm
  79. #
  80. # Then, modify the server.ssl properties so your "server" configuration looks like:
  81. #
  82. # server:
  83. # port: 8443
  84. # ssl:
  85. # key-store: keystore.p12
  86. # key-store-password: <your-password>
  87. # key-store-type: PKCS12
  88. # key-alias: ms1
  89. # ===================================================================
  90. server:
  91. port: 8081
  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. # CORS is disabled by default on microservices, as you should access them through a gateway.
  101. # If you want to enable it, please uncomment the configuration below.
  102. # cors:
  103. # allowed-origins: "*"
  104. # allowed-methods: "*"
  105. # allowed-headers: "*"
  106. # exposed-headers: "Authorization,Link,X-Total-Count"
  107. # allow-credentials: true
  108. # max-age: 1800
  109. security:
  110. client-authorization:
  111. access-token-uri: http://msauth/oauth/token
  112. token-service-id: msauth
  113. client-id: internal
  114. client-secret: internal
  115. mail: # specific JHipster mail property, for standard properties see MailProperties
  116. from: ms1@localhost
  117. base-url: http://127.0.0.1:8081
  118. metrics: # DropWizard Metrics configuration, used by MetricsConfiguration
  119. jmx.enabled: true
  120. graphite: # Use the "graphite" Maven profile to have the Graphite dependencies
  121. enabled: false
  122. host: localhost
  123. port: 2003
  124. prefix: ms1
  125. prometheus: # Use the "prometheus" Maven profile to have the Prometheus dependencies
  126. enabled: false
  127. endpoint: /prometheusMetrics
  128. logs: # Reports Dropwizard metrics in the logs
  129. enabled: false
  130. report-frequency: 60 # in seconds
  131. logging:
  132. logstash: # Forward logs to logstash over a socket, used by LoggingConfiguration
  133. enabled: false
  134. host: localhost
  135. port: 5000
  136. queue-size: 512
  137. spectator-metrics: # Reports Spectator Circuit Breaker metrics in the logs
  138. enabled: false
  139. # edit spring.metrics.export.delay-millis to set report frequency
  140. oauth2:
  141. signature-verification:
  142. public-key-endpoint-uri: http://msauth/oauth/token_key
  143. #ttl for public keys to verify JWT tokens (in ms)
  144. ttl: 3600000
  145. #max. rate at which public keys will be fetched (in ms)
  146. public-key-refresh-rate-limit: 10000
  147. web-client-configuration:
  148. #keep in sync with UAA configuration
  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:
  160. eda:
  161. testkey: hello