application.yml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. spring:
  2. jpa:
  3. properties:
  4. hibernate.integration.envers.enabled: true
  5. jadira.usertype.autoRegisterUserTypes: true
  6. show-sql: false
  7. hibernate:
  8. ddl-auto: none
  9. dialect: org.hibernate.dialect.PostgreSQLDialect
  10. hbm2ddl:
  11. import_files:
  12. datasource:
  13. platform : postgres
  14. driverClassName: org.postgresql.Driver
  15. connectionTimeout: 10000
  16. maxPoolSize: 20
  17. test-on-borrow: true
  18. validation-query: SELECT 1
  19. security:
  20. oauth2:
  21. client:
  22. accessTokenUri: ${security.server.url:http://localhost:8082}/oauth/access_token
  23. userAuthorizationUri: ${security.server.url:http://localhost:8082}/oauth/authorize
  24. clientId: crss
  25. clientSecret: crsssecret
  26. authorized-grant-types: authorization_code,refresh_token,password
  27. scope: openid
  28. access-token-validity-seconds: 3600
  29. resource:
  30. userInfoUri: ${security.server.url:http://localhost:8082}/user
  31. eureka:
  32. client:
  33. serviceUrl:
  34. defaultZone: http://localhost:8761/eureka/
  35. server:
  36. undertow:
  37. accesslog:
  38. dir: target
  39. enabled: true
  40. pattern: combined
  41. compression:
  42. enabled: true
  43. min-response-size: 1
  44. logging:
  45. pattern:
  46. level: 'username:%X{username:-system} %5p'
  47. level:
  48. com.pemc.crss: DEBUG
  49. com.netflix: WARN
  50. org.springframework.cloud: WARN
  51. # TODO: remove this 2 profiles below if done migrating to new environment
  52. ---
  53. spring:
  54. profiles: docker
  55. security.server.url: http://app:8080/admin
  56. ---
  57. spring:
  58. profiles: dcos
  59. rabbitmq:
  60. host: rabbitmq.marathon.l4lb.thisdcos.directory
  61. security.server.url: http://phase1app.marathon.l4lb.thisdcos.directory:8080/admin
  62. eureka:
  63. client:
  64. serviceUrl:
  65. defaultZone: http://phase1discovery.marathon.l4lb.thisdcos.directory:8080/eureka/
  66. instance:
  67. prefer-ip-address: false
  68. # HOST and PORT environment variable came from mesos as docker ENV
  69. hostname: ${HOST}
  70. noneSecurePort: ${PORT}