Advertisement
Guest User

Untitled

a guest
Aug 6th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.58 KB | None | 0 0
  1. # ===================================================================
  2. # Spring Boot configuration for the "dev" profile.
  3. #
  4. # This configuration overrides the application.yml file.
  5. #
  6. # More information on profiles: https://jhipster.github.io/profiles/
  7. # More information on configuration properties: https://jhipster.github.io/common-application-properties/
  8. # ===================================================================
  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.  
  16. eureka:
  17. instance:
  18. prefer-ip-address: true
  19. client:
  20. enabled: false # By default, the JHipster Registry is not used in the "dev" profile
  21. service-url:
  22. defaultZone: http://admin:${jhipster.registry.password}@localhost:8761/eureka/
  23.  
  24. spring:
  25. profiles:
  26. active: dev
  27. include: swagger
  28. devtools:
  29. restart:
  30. enabled: true
  31. livereload:
  32. enabled: false # we use gulp + BrowserSync for livereload
  33. jackson:
  34. serialization.indent_output: true
  35. datasource:
  36. type: com.zaxxer.hikari.HikariDataSource
  37. url: jdbc:mysql://localhost:3306/wigo?useUnicode=true&useSSL=false
  38. username: root
  39. password:
  40. hikari:
  41. data-source-properties:
  42. cachePrepStmts: true
  43. prepStmtCacheSize: 250
  44. prepStmtCacheSqlLimit: 2048
  45. useServerPrepStmts: true
  46. jpa:
  47. database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
  48. database: MYSQL
  49. show-sql: true
  50. properties:
  51. hibernate.id.new_generator_mappings: true
  52. hibernate.cache.use_second_level_cache: false
  53. hibernate.cache.use_query_cache: false
  54. hibernate.generate_statistics: true
  55. hibernate:
  56. ddl-auto: update
  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.  
  73. liquibase:
  74. contexts: dev
  75.  
  76. # ===================================================================
  77. # To enable SSL, generate a certificate using:
  78. # keytool -genkey -alias wigo -storetype PKCS12 -keyalg RSA -keysize 2048 -keystore keystore.p12 -validity 3650
  79. #
  80. # You can also use Let's Encrypt:
  81. # https://maximilian-boehm.com/hp2121/Create-a-Java-Keystore-JKS-from-Let-s-Encrypt-Certificates.htm
  82. #
  83. # Then, modify the server.ssl properties so your "server" configuration looks like:
  84. #
  85. # server:
  86. # port: 8443
  87. # ssl:
  88. # key-store: keystore.p12
  89. # key-store-password: <your-password>
  90. # keyStoreType: PKCS12
  91. # keyAlias: wigo
  92. # ===================================================================
  93. server:
  94. port: 8080
  95.  
  96. # ===================================================================
  97. # JHipster specific properties
  98. #
  99. # Full reference is available at: https://jhipster.github.io/common-application-properties/
  100. # ===================================================================
  101. jhipster:
  102. http:
  103. version: V_1_1 # To use HTTP/2 you will need SSL support (see above the "server.ssl" configuration)
  104. # CORS is only enabled by default with the "dev" profile, so BrowserSync can access the API
  105. cors:
  106. allowed-origins: "*"
  107. allowed-methods: GET, PUT, POST, DELETE, OPTIONS
  108. allowed-headers: "*"
  109. exposed-headers:
  110. allow-credentials: true
  111. max-age: 1800
  112. security:
  113. authentication:
  114. jwt:
  115. secret: my-secret-token-to-change-in-production
  116. # Token is valid 24 hours
  117. token-validity-in-seconds: 86400
  118. token-validity-in-seconds-for-remember-me: 2592000
  119. mail: # specific JHipster mail property, for standard properties see MailProperties
  120. from: wigo@localhost
  121. base-url: http://127.0.0.1:8080
  122. metrics: # DropWizard Metrics configuration, used by MetricsConfiguration
  123. jmx.enabled: true
  124. graphite: # Use the "graphite" Maven profile to have the Graphite dependencies
  125. enabled: false
  126. host: localhost
  127. port: 2003
  128. prefix: wigo
  129. prometheus: # Use the "prometheus" Maven profile to have the Prometheus dependencies
  130. enabled: false
  131. endpoint: /prometheusMetrics
  132. logs: # Reports Dropwizard metrics in the logs
  133. enabled: false
  134. report-frequency: 60 # in seconds
  135. logging:
  136. logstash: # Forward logs to logstash over a socket, used by LoggingConfiguration
  137. enabled: false
  138. host: localhost
  139. port: 5000
  140. queue-size: 512
  141.  
  142. # ===================================================================
  143. # Application specific properties
  144. # Add your own application properties here, see the ApplicationProperties class
  145. # to have type-safe configuration, like in the JHipsterProperties above
  146. #
  147. # More documentation is available at:
  148. # https://jhipster.github.io/common-application-properties/
  149. # ===================================================================
  150.  
  151. application:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement