jcloudconfig

ms1.yml 4.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. # ===================================================================
  2. # Spring Boot configuration.
  3. #
  4. # This configuration will be overridden by the Spring profile you use,
  5. # for example application-dev.yml if you use the "dev" profile.
  6. #
  7. # More information on profiles: http://www.jhipster.tech/profiles/
  8. # More information on configuration properties: http://www.jhipster.tech/common-application-properties/
  9. # ===================================================================
  10. # ===================================================================
  11. # Standard Spring Boot properties.
  12. # Full reference is available at:
  13. # http://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html
  14. # ===================================================================
  15. eureka:
  16. client:
  17. enabled: true
  18. healthcheck:
  19. enabled: true
  20. fetch-registry: true
  21. register-with-eureka: true
  22. instance-info-replication-interval-seconds: 10
  23. registry-fetch-interval-seconds: 10
  24. instance:
  25. appname: ms1
  26. instanceId: ms1:${spring.application.instance-id:${random.value}}
  27. lease-renewal-interval-in-seconds: 5
  28. lease-expiration-duration-in-seconds: 10
  29. status-page-url-path: ${management.context-path}/info
  30. health-check-url-path: ${management.context-path}/health
  31. metadata-map:
  32. zone: primary # This is needed for the load balancer
  33. profile: ${spring.profiles.active}
  34. version: ${info.project.version}
  35. ribbon:
  36. eureka:
  37. enabled: true
  38. # See https://github.com/Netflix/Hystrix/wiki/Configuration
  39. #hystrix:
  40. # command:
  41. # default:
  42. # execution:
  43. # isolation:
  44. # thread:
  45. # timeoutInMilliseconds: 10000
  46. # See https://github.com/spring-cloud/spring-cloud-netflix/issues/1330
  47. feign:
  48. hystrix:
  49. enabled: true
  50. hystrix:
  51. share-security-context: true
  52. management:
  53. security:
  54. roles: ADMIN
  55. context-path: /management
  56. info:
  57. git:
  58. mode: full
  59. health:
  60. mail:
  61. enabled: false # When using the MailService, configure an SMTP server and set this to true
  62. spring:
  63. application:
  64. name: ms1
  65. jackson:
  66. serialization.write_dates_as_timestamps: false
  67. jpa:
  68. open-in-view: false
  69. hibernate:
  70. ddl-auto: none
  71. naming:
  72. physical-strategy: org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy
  73. implicit-strategy: org.springframework.boot.orm.jpa.hibernate.SpringImplicitNamingStrategy
  74. messages:
  75. basename: i18n/messages
  76. mvc:
  77. favicon:
  78. enabled: false
  79. thymeleaf:
  80. mode: XHTML
  81. security:
  82. basic:
  83. enabled: false
  84. oauth2:
  85. resource:
  86. filter-order: 3
  87. server:
  88. session:
  89. cookie:
  90. http-only: true
  91. info:
  92. project:
  93. version: #project.version#
  94. # ===================================================================
  95. # JHipster specific properties
  96. #
  97. # Full reference is available at: http://www.jhipster.tech/common-application-properties/
  98. # ===================================================================
  99. jhipster:
  100. async:
  101. core-pool-size: 2
  102. max-pool-size: 50
  103. queue-capacity: 10000
  104. # By default CORS is disabled. Uncomment to enable.
  105. #cors:
  106. #allowed-origins: "*"
  107. #allowed-methods: "*"
  108. #allowed-headers: "*"
  109. #exposed-headers: "Authorization,Link,X-Total-Count"
  110. #allow-credentials: true
  111. #max-age: 1800
  112. mail:
  113. from: ms1@localhost
  114. swagger:
  115. default-include-pattern: /api/.*
  116. title: ms1 API
  117. description: ms1 API documentation
  118. version: 0.0.1
  119. terms-of-service-url:
  120. contact-name:
  121. contact-url:
  122. contact-email:
  123. license:
  124. license-url:
  125. ribbon:
  126. display-on-active-profiles: dev
  127. # ===================================================================
  128. # Application specific properties
  129. # Add your own application properties here, see the ApplicationProperties class
  130. # to have type-safe configuration, like in the JHipsterProperties above
  131. #
  132. # More documentation is available at:
  133. # http://www.jhipster.tech/common-application-properties/
  134. # ===================================================================
  135. application: