application.yml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. spring:
  2. profiles:
  3. include: client-sec
  4. crss-dataflow:
  5. datasource:
  6. jdbcUrl: jdbc:postgresql://localhost:5432/crss_dataflow
  7. username: postgres
  8. password: postgres
  9. driverClassName: org.postgresql.Driver
  10. connectionTimeout: 10000
  11. maxPoolSize: 20
  12. test-on-borrow: true
  13. validation-query: SELECT 1
  14. jpa:
  15. show-sql: false
  16. generate-ddl: false
  17. properties:
  18. hibernate:
  19. generate_statistics: true
  20. dialect: org.hibernate.dialect.PostgreSQLDialect
  21. ddl-auto: none
  22. hbm2ddl:
  23. import_files:
  24. # prevent batch job from running on app start
  25. batch:
  26. job:
  27. enabled: false
  28. redis:
  29. host: localhost
  30. port: 6379
  31. #liquibase:
  32. # change-log: classpath:/db/db.changelog-master.xml
  33. server:
  34. port: 9092
  35. undertow:
  36. accesslog:
  37. dir: target
  38. enabled: true
  39. pattern: combined
  40. compression:
  41. enabled: true
  42. min-response-size: 1
  43. security:
  44. oauth2:
  45. client:
  46. accessTokenUri: http://localhost:8082/oauth/access_token
  47. userAuthorizationUri: http://localhost:8082/oauth/authorize
  48. clientId: crss
  49. clientSecret: crsssecret
  50. authorized-grant-types: authorization_code,refresh_token,password
  51. scope: openid
  52. access-token-validity-seconds: 3600
  53. resource:
  54. userInfoUri: http://localhost:8082/user
  55. logging:
  56. level:
  57. com.pemc: DEBUG
  58. com.netflix: DEBUG
  59. org.springframework.cloud: DEBUG
  60. org.apache.http: DEBUG
  61. org.hibernate.stat: debug
  62. dataflow:
  63. url: http://localhost:9393
  64. sftp:
  65. credentials:
  66. username: pemc
  67. password: 123qwe
  68. host: pemc-storage.southeastasia.cloudapp.azure.com
  69. port: 22
  70. workingDirectory: /home/pemc/upload
  71. privateKey:
  72. # temporary todi-config, to be moved to general config
  73. todi-config:
  74. dispatch-interval: 5
  75. max-retry: 2