application.yml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. spring:
  2. crss-dataflow:
  3. datasource:
  4. jdbcUrl: jdbc:postgresql://localhost:5432/crss_dataflow
  5. username: postgres
  6. password: postgres
  7. driverClassName: org.postgresql.Driver
  8. maxPoolSize: 5
  9. test-on-borrow: true
  10. validation-query: SELECT 1
  11. crss-main:
  12. datasource:
  13. jdbcUrl: jdbc:postgresql://localhost:5432/crss_meterprocess
  14. username: postgres
  15. password: postgres
  16. driverClassName: org.postgresql.Driver
  17. maxPoolSize: 5
  18. test-on-borrow: true
  19. validation-query: SELECT 1
  20. crss-registration:
  21. datasource:
  22. jdbcUrl: jdbc:postgresql://localhost:5432/crss_reg
  23. username: postgres
  24. password: postgres
  25. driverClassName: org.postgresql.Driver
  26. maxPoolSize: 5
  27. test-on-borrow: true
  28. validation-query: SELECT 1
  29. crss-nmms:
  30. datasource:
  31. jdbcUrl: jdbc:postgresql://localhost:5432/crss_nmms
  32. username: postgres
  33. password: postgres
  34. driverClassName: org.postgresql.Driver
  35. maxPoolSize: 5
  36. test-on-borrow: true
  37. validation-query: SELECT 1
  38. jpa:
  39. show-sql: false
  40. generate-ddl: false
  41. properties:
  42. hibernate:
  43. generate_statistics: true
  44. dialect: org.hibernate.dialect.PostgreSQLDialect
  45. ddl-auto: none
  46. hbm2ddl:
  47. import_files:
  48. # prevent batch job from running on app start
  49. batch:
  50. job:
  51. enabled: false
  52. #liquibase:
  53. # change-log: classpath:/db/db.changelog-master.xml
  54. server:
  55. port: 9091
  56. undertow:
  57. accesslog:
  58. dir: target
  59. enabled: true
  60. pattern: combined
  61. compression:
  62. enabled: true
  63. min-response-size: 1
  64. eureka:
  65. instance:
  66. prefer-ip-address: true
  67. client:
  68. serviceUrl:
  69. defaultZone: http://localhost:8761/eureka/
  70. # healthcheck:
  71. # enabled: true
  72. # lease:
  73. # duration: 5
  74. # instance:
  75. # leaseRenewalIntervalInSeconds: 1
  76. # leaseExpirationDurationInSeconds: 2
  77. security:
  78. oauth2:
  79. client:
  80. accessTokenUri: http://localhost:8082/oauth/access_token
  81. userAuthorizationUri: http://localhost:8082/oauth/authorize
  82. clientId: crss
  83. clientSecret: crsssecret
  84. authorized-grant-types: authorization_code,refresh_token,password
  85. scope: openid
  86. access-token-validity-seconds: 3600
  87. resource:
  88. userInfoUri: http://localhost:8082/user
  89. logging:
  90. level:
  91. com.pemc: DEBUG
  92. com.netflix: DEBUG
  93. org.springframework.cloud: DEBUG
  94. org.apache.http: DEBUG
  95. org.hibernate.stat: debug
  96. dataflow:
  97. url: http://localhost:9393
  98. job:
  99. maxRun: 1
  100. sftp:
  101. credentials:
  102. username: pemc
  103. password: 123qwe
  104. host: pemc-storage.southeastasia.cloudapp.azure.com
  105. port: 22
  106. workingDirectory: /home/pemc/upload
  107. privateKey: