application.yml 2.5 KB

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