application.yml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. security:
  10. oauth2:
  11. client:
  12. accessTokenUri: ${security.server.url:http://localhost:8082}/oauth/access_token
  13. userAuthorizationUri: ${security.server.url:http://localhost:8082}/oauth/authorize
  14. clientId: crss
  15. clientSecret: crsssecret
  16. authorized-grant-types: authorization_code,refresh_token,password
  17. scope: openid
  18. access-token-validity-seconds: 3600
  19. resource:
  20. userInfoUri: ${security.server.url:http://localhost:8082}/user
  21. eureka:
  22. client:
  23. serviceUrl:
  24. defaultZone: http://localhost:8761/eureka/
  25. server:
  26. undertow:
  27. accesslog:
  28. dir: target
  29. enabled: true
  30. pattern: combined
  31. compression:
  32. enabled: true
  33. min-response-size: 1
  34. logging:
  35. pattern:
  36. level: 'username:%X{username:-system} %5p'
  37. level:
  38. com.pemc.crss: DEBUG
  39. com.netflix: WARN
  40. org.springframework.cloud: WARN
  41. # TODO: remove this 2 profiles below if done migrating to new environment
  42. ---
  43. spring:
  44. profiles: docker
  45. security.server.url: http://app:8080/admin
  46. ---
  47. spring:
  48. profiles: dcos
  49. rabbitmq:
  50. host: rabbitmq.marathon.l4lb.thisdcos.directory
  51. security.server.url: http://phase1app.marathon.l4lb.thisdcos.directory:8080/admin
  52. eureka:
  53. client:
  54. serviceUrl:
  55. defaultZone: http://phase1discovery.marathon.l4lb.thisdcos.directory:8080/eureka/
  56. instance:
  57. prefer-ip-address: false
  58. # HOST and PORT environment variable came from mesos as docker ENV
  59. hostname: ${HOST}
  60. noneSecurePort: ${PORT}