application.yml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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. ---
  59. spring:
  60. profiles: staging
  61. profiles.include: docker
  62. rabbitmq:
  63. host: rabbitmq
  64. graylog:
  65. host: 192.168.241.62
  66. ---
  67. spring:
  68. profiles: uat
  69. profiles.include: docker
  70. rabbitmq:
  71. host: pemc-oracle.ss.exist.com
  72. logging.level:
  73. com.pemc.crss: INFO
  74. graylog:
  75. host: 192.168.235.6
  76. ---
  77. spring:
  78. profiles: pemc-staging
  79. profiles.include: docker
  80. rabbitmq:
  81. host: 192.168.39.117
  82. logging.level:
  83. com.pemc.crss: INFO
  84. ---
  85. spring:
  86. profiles: dcos
  87. rabbitmq:
  88. host: rabbitmq.marathon.l4lb.thisdcos.directory
  89. security.server.url: http://phase1app.marathon.l4lb.thisdcos.directory:8080/admin
  90. eureka:
  91. client:
  92. serviceUrl:
  93. defaultZone: http://phase1discovery.marathon.l4lb.thisdcos.directory:8080/eureka/
  94. instance:
  95. prefer-ip-address: false
  96. # HOST and PORT environment variable came from mesos as docker ENV
  97. hostname: ${HOST}
  98. noneSecurePort: ${PORT}