application.yml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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. ---
  42. spring:
  43. profiles: dev
  44. jpa:
  45. show-sql: true
  46. properties:
  47. hibernate.use_sql_comments: true
  48. hibernate.format_sql: true
  49. javax.persistence.schema-generation.database.action: none
  50. javax.persistence.schema-generation.create-source: metadata
  51. javax.persistence.schema-generation.scripts.action: drop-and-create
  52. javax.persistence.schema-generation.scripts.create-target: target/create.sql
  53. javax.persistence.schema-generation.scripts.drop-target: target/drop.sql
  54. ---
  55. spring:
  56. profiles: docker
  57. security.server.url: http://app:8080/admin
  58. eureka:
  59. client:
  60. serviceUrl:
  61. defaultZone: http://discovery:8080/eureka/
  62. ---
  63. spring:
  64. profiles: staging
  65. profiles.include: docker
  66. rabbitmq:
  67. host: rabbitmq
  68. graylog:
  69. host: 192.168.241.61
  70. ---
  71. spring:
  72. profiles: uat
  73. profiles.include: docker
  74. rabbitmq:
  75. host: pemc-oracle.ss.exist.com
  76. logging.level:
  77. com.pemc.crss: INFO
  78. graylog:
  79. host: 192.168.235.6
  80. ---
  81. spring:
  82. profiles: pemc-staging
  83. profiles.include: docker
  84. rabbitmq:
  85. host: 192.168.39.117
  86. logging.level:
  87. com.pemc.crss: INFO
  88. ---
  89. spring:
  90. profiles: dcos
  91. rabbitmq:
  92. host: rabbitmq.marathon.l4lb.thisdcos.directory
  93. security.server.url: http://phase1app.marathon.l4lb.thisdcos.directory:8080/admin
  94. eureka:
  95. client:
  96. serviceUrl:
  97. defaultZone: http://phase1discovery.marathon.l4lb.thisdcos.directory:8080/eureka/
  98. instance:
  99. prefer-ip-address: false
  100. # HOST and PORT environment variable came from mesos as docker ENV
  101. hostname: ${HOST}
  102. noneSecurePort: ${PORT}