Advertisement
Guest User

Untitled

a guest
Sep 1st, 2017
533
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.34 KB | None | 0 0
  1. # ===================================================================
  2. # Spring Boot configuration for the "prod" 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. service-url:
  21. defaultZone: http://admin:${jhipster.registry.password}@localhost:8761/eureka/
  22.  
  23. spring:
  24. autoconfigure:
  25. exclude: org.springframework.boot.autoconfigure.cassandra.CassandraAutoConfiguration
  26. devtools:
  27. restart:
  28. enabled: false
  29. livereload:
  30. enabled: false
  31. datasource:
  32. type: com.zaxxer.hikari.HikariDataSource
  33. url: jdbc:postgresql://localhost:5432/cinema
  34. username: cinema
  35. password: cinema
  36. jpa:
  37. database-platform: io.github.jhipster.domain.util.FixedPostgreSQL82Dialect
  38. database: POSTGRESQL
  39. show-sql: false
  40. properties:
  41. hibernate.id.new_generator_mappings: true
  42. hibernate.cache.use_second_level_cache: true
  43. hibernate.cache.use_query_cache: false
  44. hibernate.generate_statistics: false
  45. hibernate.cache.region.factory_class: io.github.jhipster.config.jcache.NoDefaultJCacheRegionFactory
  46. data:
  47. cassandra:
  48. contactPoints: localhost
  49. protocolVersion: V4
  50. compression: LZ4
  51. keyspaceName: cinema
  52. repositories:
  53. enabled: false
  54. mail:
  55. host: smtp.gmail.com
  56. port: 587
  57. username: cinemagtw@gmail.com
  58. password: cinemagtw123
  59. protocol: smtp
  60. tls: true
  61. properties.mail.smtp:
  62. auth: true
  63. starttls.enable: true
  64. ssl.trust: smtp.gmail.com
  65. thymeleaf:
  66. cache: true
  67. zipkin: # Use the "zipkin" Maven profile to have the Spring Cloud Zipkin dependencies
  68. base-url: http://localhost:9411
  69. enabled: false
  70. locator:
  71. discovery:
  72. enabled: true
  73.  
  74. liquibase:
  75. contexts: prod
  76.  
  77. # ===================================================================
  78. # To enable SSL, generate a certificate using:
  79. # keytool -genkey -alias cinema -storetype PKCS12 -keyalg RSA -keysize 2048 -keystore keystore.p12 -validity 3650
  80. #
  81. # You can also use Let's Encrypt:
  82. # https://maximilian-boehm.com/hp2121/Create-a-Java-Keystore-JKS-from-Let-s-Encrypt-Certificates.htm
  83. #
  84. # Then, modify the server.ssl properties so your "server" configuration looks like:
  85. #
  86. # server:
  87. # port: 443
  88. # ssl:
  89. # key-store: keystore.p12
  90. # key-store-password: <your-password>
  91. # keyStoreType: PKCS12
  92. # keyAlias: cinema
  93. # ===================================================================
  94. server:
  95. port: 80
  96. compression:
  97. enabled: true
  98. mime-types: text/html,text/xml,text/plain,text/css, application/javascript, application/json
  99. min-response-size: 1024
  100.  
  101. # ===================================================================
  102. # JHipster specific properties
  103. #
  104. # Full reference is available at: https://jhipster.github.io/common-application-properties/
  105. # ===================================================================
  106.  
  107. jhipster:
  108. gateway:
  109. rate-limiting: # Warning! Read the documentation in the GatewayConfiguration class.
  110. enabled: false
  111. authorized-microservices-endpoints: # Access Control Policy, if left empty for a route, all endpoints will be accessible
  112. app1: /api # recommended prod configuration
  113. http:
  114. version: V_1_1 # To use HTTP/2 you will need SSL support (see above the "server.ssl" configuration)
  115. cache: # Used by the CachingHttpHeadersFilter
  116. timeToLiveInDays: 1461
  117. cache: # Cache configuration
  118. ehcache: # Ehcache configuration
  119. time-to-live-seconds: 3600 # By default objects stay 1 hour in the cache
  120. max-entries: 1000 # Number of objects in each cache entry
  121. security:
  122. authentication:
  123. jwt:
  124. secret: 1af914d5d29c725e502654f407cc87d4be6d26cd
  125. # Token is valid 24 hours
  126. token-validity-in-seconds: 86400
  127. token-validity-in-seconds-for-remember-me: 2592000
  128. mail: # specific JHipster mail property, for standard properties see MailProperties
  129. from: cinema@localhost
  130. base-url: http://200.133.38.27 # Modify according to your server's URL
  131. metrics: # DropWizard Metrics configuration, used by MetricsConfiguration
  132. jmx.enabled: true
  133. graphite:
  134. enabled: false
  135. host: localhost
  136. port: 2003
  137. prefix: cinema
  138. prometheus:
  139. enabled: false
  140. endpoint: /prometheusMetrics
  141. logs: # Reports Dropwizard metrics in the logs
  142. enabled: false
  143. report-frequency: 60 # in seconds
  144. logging:
  145. logstash: # Forward logs to logstash over a socket, used by LoggingConfiguration
  146. enabled: false
  147. host: localhost
  148. port: 5000
  149. queue-size: 512
  150. spectator-metrics: # Reports Spectator Circuit Breaker metrics in the logs
  151. enabled: false
  152. # edit spring.metrics.export.delay-millis to set report frequency
  153.  
  154. # ===================================================================
  155. # Application specific properties
  156. # Add your own application properties here, see the ApplicationProperties class
  157. # to have type-safe configuration, like in the JHipsterProperties above
  158. #
  159. # More documentation is available at:
  160. # https://jhipster.github.io/common-application-properties/
  161. # ===================================================================
  162.  
  163. application:
  164.  
  165.  
  166.  
  167. storage:
  168. location: /home/curadoria/public_content/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement