crss-meterprocess-app.yml 2.4 KB

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