application.yml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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