application.yml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. filter-order: 3
  31. userInfoUri: ${security.server.url:http://localhost:8082}/user
  32. eureka:
  33. client:
  34. serviceUrl:
  35. defaultZone: http://localhost:8761/eureka/
  36. server:
  37. undertow:
  38. accesslog:
  39. dir: target
  40. enabled: true
  41. pattern: combined
  42. compression:
  43. enabled: true
  44. min-response-size: 1
  45. logging:
  46. pattern:
  47. level: 'username:%X{username:-system} %5p'
  48. level:
  49. com.pemc.crss: DEBUG
  50. com.netflix: WARN
  51. org.springframework.cloud: WARN
  52. # TODO: remove this 2 profiles below if done migrating to new environment
  53. ---
  54. spring:
  55. profiles: docker
  56. security.server.url: http://app:8080/admin