application.yml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  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: https://www.jhipster.tech/profiles/
  8. # More information on configuration properties: https://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. management:
  16. endpoints:
  17. web:
  18. base-path: /management
  19. exposure:
  20. include:
  21. ['configprops', 'env', 'health', 'info', 'jhimetrics', 'logfile', 'loggers', 'prometheus', 'threaddump', 'caches', 'liquibase']
  22. endpoint:
  23. health:
  24. show-details: when_authorized
  25. roles: 'ROLE_ADMIN'
  26. probes:
  27. enabled: true
  28. jhimetrics:
  29. enabled: true
  30. info:
  31. git:
  32. mode: full
  33. health:
  34. group:
  35. liveness:
  36. include: livenessState
  37. readiness:
  38. include: readinessState,db
  39. mail:
  40. enabled: false # When using the MailService, configure an SMTP server and set this to true
  41. metrics:
  42. export:
  43. # Prometheus is the default metrics backend
  44. prometheus:
  45. enabled: true
  46. step: 60
  47. enable:
  48. http: true
  49. jvm: true
  50. logback: true
  51. process: true
  52. system: true
  53. distribution:
  54. percentiles-histogram:
  55. all: true
  56. percentiles:
  57. all: 0, 0.5, 0.75, 0.95, 0.99, 1.0
  58. tags:
  59. application: ${spring.application.name}
  60. web:
  61. server:
  62. request:
  63. autotime:
  64. enabled: true
  65. spring:
  66. application:
  67. name: cnspJava
  68. profiles:
  69. # The commented value for `active` can be replaced with valid Spring profiles to load.
  70. # Otherwise, it will be filled in by gradle when building the JAR file
  71. # Either way, it can be overridden by `--spring.profiles.active` value passed in the commandline or `-Dspring.profiles.active` set in `JAVA_OPTS`
  72. active: #spring.profiles.active#
  73. group:
  74. dev:
  75. - dev
  76. - api-docs
  77. - no-liquibase
  78. # Uncomment to activate TLS for the dev profile
  79. # - tls
  80. prod:
  81. - prod
  82. - no-liquibase
  83. # - tls
  84. jmx:
  85. enabled: false
  86. data:
  87. jpa:
  88. repositories:
  89. bootstrap-mode: deferred
  90. jpa:
  91. open-in-view: false
  92. properties:
  93. hibernate.jdbc.time_zone: UTC
  94. hibernate.id.new_generator_mappings: true
  95. hibernate.connection.provider_disables_autocommit: true
  96. hibernate.cache.use_second_level_cache: true
  97. hibernate.cache.use_query_cache: false
  98. hibernate.generate_statistics: false
  99. # modify batch size as necessary
  100. hibernate.jdbc.batch_size: 25
  101. hibernate.order_inserts: true
  102. hibernate.order_updates: true
  103. hibernate.query.fail_on_pagination_over_collection_fetch: true
  104. hibernate.query.in_clause_parameter_padding: true
  105. hibernate:
  106. ddl-auto: update
  107. naming:
  108. physical-strategy: org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy
  109. implicit-strategy: org.springframework.boot.orm.jpa.hibernate.SpringImplicitNamingStrategy
  110. messages:
  111. basename: i18n/messages
  112. main:
  113. allow-bean-definition-overriding: true
  114. task:
  115. execution:
  116. thread-name-prefix: cnsp-java-task-
  117. pool:
  118. core-size: 2
  119. max-size: 50
  120. queue-capacity: 10000
  121. scheduling:
  122. thread-name-prefix: cnsp-java-scheduling-
  123. pool:
  124. size: 2
  125. thymeleaf:
  126. mode: HTML
  127. output:
  128. ansi:
  129. console-available: true
  130. servlet:
  131. multipart:
  132. max-file-size: 50MB
  133. max-request-size: 50MB
  134. location: /root/carbonlibra/tmp/
  135. server:
  136. servlet:
  137. session:
  138. cookie:
  139. http-only: true
  140. # Properties to be exposed on the /info management endpoint
  141. info:
  142. # Comma separated list of profiles that will trigger the ribbon to show
  143. display-ribbon-on-profiles: 'dev'
  144. # ===================================================================
  145. # JHipster specific properties
  146. #
  147. # Full reference is available at: https://www.jhipster.tech/common-application-properties/
  148. # ===================================================================
  149. jhipster:
  150. clientApp:
  151. name: 'cnspJavaApp'
  152. # By default CORS is disabled. Uncomment to enable.
  153. # cors:
  154. # allowed-origins: "http://localhost:8100,http://localhost:9000"
  155. # allowed-methods: "*"
  156. # allowed-headers: "*"
  157. # exposed-headers: "Authorization,Link,X-Total-Count,X-${jhipster.clientApp.name}-alert,X-${jhipster.clientApp.name}-error,X-${jhipster.clientApp.name}-params"
  158. # allow-credentials: true
  159. # max-age: 1800
  160. mail:
  161. from: cnspJava@localhost
  162. api-docs:
  163. default-include-pattern: ${server.servlet.context-path:}/api/.*
  164. management-include-pattern: ${server.servlet.context-path:}/management/.*
  165. title: cnspJava API
  166. description: cnspJava API documentation
  167. version:
  168. terms-of-service-url:
  169. contact-name:
  170. contact-url:
  171. contact-email:
  172. license: unlicensed
  173. license-url:
  174. security:
  175. content-security-policy: "default-src 'self'; frame-src 'self' data:; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://storage.googleapis.com https://cdnjs.cloudflare.com https://d3js.org; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; img-src 'self' http://*.tanjiaoyi.com/ data:; font-src 'self' data: https://fonts.gstatic.com; worker-src blob:"
  176. # ===================================================================
  177. # Application specific properties
  178. # Add your own application properties here, see the ApplicationProperties class
  179. # to have type-safe configuration, like in the JHipsterProperties above
  180. #
  181. # More documentation is available at:
  182. # https://www.jhipster.tech/common-application-properties/
  183. # ===================================================================
  184. # application: