소스 검색

Add crss-meterprocess-app configurations

Monte Cillo Co 8 년 전
부모
커밋
0d1e164b38

+ 102 - 0
crss-meterprocess-app/application-dev.yml

@@ -0,0 +1,102 @@
+spring:
+  crss-dataflow:
+    datasource:
+      jdbcUrl: jdbc:postgresql://192.168.236.2:5432/crss_dataflow
+      username: admin
+      password: password
+      driverClassName: org.postgresql.Driver
+      maxPoolSize: 5
+      test-on-borrow: true
+      validation-query: SELECT 1
+  crss-main:
+    datasource:
+      jdbcUrl: jdbc:postgresql://192.168.236.2:5432/crss_meterprocess
+      username: admin
+      password: password
+      driverClassName: org.postgresql.Driver
+      maxPoolSize: 5
+      test-on-borrow: true
+      validation-query: SELECT 1
+  crss-registration:
+    datasource:
+      jdbcUrl: jdbc:postgresql://192.168.236.2:5432/crss_reg
+      username: admin
+      password: password
+      driverClassName: org.postgresql.Driver
+      maxPoolSize: 5
+      test-on-borrow: true
+      validation-query: SELECT 1
+  crss-nmms:
+    datasource:
+      jdbcUrl: jdbc:postgresql://192.168.236.2:5432/crss_nmms
+      username: admin
+      password: password
+      driverClassName: org.postgresql.Driver
+      maxPoolSize: 5
+      test-on-borrow: true
+      validation-query: SELECT 1
+
+  jpa:
+    show-sql: false
+    generate-ddl: true
+    properties:
+      hibernate:
+        generate_statistics: true
+        dialect: org.hibernate.dialect.PostgreSQLDialect
+        ddl-auto: none
+        hbm2ddl:
+          import_files:
+
+  # prevent batch job from running on app start
+  batch:
+    job:
+      enabled: false
+
+#liquibase:
+#  change-log: classpath:/db/db.changelog-master.xml
+
+server:
+  port: 8081
+  undertow:
+    accesslog:
+      dir: target
+      enabled: true
+      pattern: combined
+  compression:
+    enabled: true
+    min-response-size: 1
+
+#security:
+#  oauth2:
+#    client:
+#      accessTokenUri: http://localhost:8082/oauth/access_token
+#      userAuthorizationUri: http://localhost:8082/oauth/authorize
+#      clientId: crss
+#      clientSecret: crsssecret
+#      authorized-grant-types: authorization_code,refresh_token,password
+#      scope: openid
+#      access-token-validity-seconds: 3600
+#    resource:
+#      userInfoUri: http://localhost:8082/user
+
+logging:
+  level:
+    com.pemc: DEBUG
+    com.netflix: DEBUG
+    org.springframework.cloud: DEBUG
+    org.hibernate.stat: debug
+
+dataflow:
+  url: http://spring-cloud-data-flow.marathon.l4lb.thisdcos.directory:9393
+
+job:
+  maxRun: 1
+
+sftp:
+  credentials:
+    username: pemc
+    password: 123qwe
+    host: sftp.marathon.l4lb.thisdcos.directory
+    port: 22
+    workingDirectory: /upload
+    privateKey:

+ 102 - 0
crss-meterprocess-app/application-dev2.yml

@@ -0,0 +1,102 @@
+spring:
+  crss-dataflow:
+    datasource:
+      jdbcUrl: jdbc:postgresql://192.168.233.9:5432/crss_dataflow
+      username: crss_dataflow
+      password: crss_dataflow
+      driverClassName: org.postgresql.Driver
+      maxPoolSize: 5
+      test-on-borrow: true
+      validation-query: SELECT 1
+  crss-main:
+    datasource:
+      jdbcUrl: jdbc:postgresql://192.168.233.9:5432/crss_meterprocess
+      username: crss_meterprocess
+      password: crss_meterprocess
+      driverClassName: org.postgresql.Driver
+      maxPoolSize: 5
+      test-on-borrow: true
+      validation-query: SELECT 1
+  crss-registration:
+    datasource:
+      jdbcUrl: jdbc:postgresql://192.168.233.9:5432/crss_reg
+      username: crss_reg
+      password: crss_reg
+      driverClassName: org.postgresql.Driver
+      maxPoolSize: 5
+      test-on-borrow: true
+      validation-query: SELECT 1
+  crss-nmms:
+    datasource:
+      jdbcUrl: jdbc:postgresql://192.168.233.9:5432/crss_reg
+      username: crss_reg
+      password: crss_reg
+      driverClassName: org.postgresql.Driver
+      maxPoolSize: 5
+      test-on-borrow: true
+      validation-query: SELECT 1
+
+  jpa:
+    show-sql: false
+    generate-ddl: true
+    properties:
+      hibernate:
+        generate_statistics: true
+        dialect: org.hibernate.dialect.PostgreSQLDialect
+        ddl-auto: none
+        hbm2ddl:
+          import_files:
+
+  # prevent batch job from running on app start
+  batch:
+    job:
+      enabled: false
+
+#liquibase:
+#  change-log: classpath:/db/db.changelog-master.xml
+
+server:
+  port: 8081
+  undertow:
+    accesslog:
+      dir: target
+      enabled: true
+      pattern: combined
+  compression:
+    enabled: true
+    min-response-size: 1
+
+#security:
+#  oauth2:
+#    client:
+#      accessTokenUri: http://localhost:8082/oauth/access_token
+#      userAuthorizationUri: http://localhost:8082/oauth/authorize
+#      clientId: crss
+#      clientSecret: crsssecret
+#      authorized-grant-types: authorization_code,refresh_token,password
+#      scope: openid
+#      access-token-validity-seconds: 3600
+#    resource:
+#      userInfoUri: http://localhost:8082/user
+
+logging:
+  level:
+    com.pemc: DEBUG
+    com.netflix: DEBUG
+    org.springframework.cloud: DEBUG
+    org.hibernate.stat: debug
+
+dataflow:
+  url: http://spring-cloud-data-flow.marathon.l4lb.thisdcos.directory:9393
+
+job:
+  maxRun: 1
+
+sftp:
+  credentials:
+    username: pemc
+    password: 123qwe
+    host: sftp.marathon.l4lb.thisdcos.directory
+    port: 22
+    workingDirectory: /upload
+    privateKey:

+ 65 - 0
crss-meterprocess-app/application-devoracle.yml

@@ -0,0 +1,65 @@
+spring:
+  crss-main:
+    datasource:
+      jdbcUrl: jdbc:oracle:thin:@192.168.235.6:1521:ORCL
+      username: crss_meterprocess_main
+      password: crss
+      driverClassName: oracle.jdbc.driver.OracleDriver
+      connectionTimeout: 10000
+      maxPoolSize: 20
+  crss-registration:
+    datasource:
+      jdbcUrl: jdbc:postgresql://localhost:5432/crss_reg
+      username: postgres
+      password: postgres
+      driverClassName: org.postgresql.Driver
+      connectionTimeout: 10000
+      maxPoolSize: 20
+
+  jpa:
+    show-sql: false
+    generate-ddl: true
+    properties:
+      hibernate:
+        dialect: org.hibernate.dialect.Oracle10gDialect
+        ddl-auto: update
+        hbm2ddl:
+          import_files:
+
+  # prevent batch job from running on app start
+  batch:
+    job:
+      enabled: false
+
+#liquibase:
+#  change-log: classpath:/db/db.changelog-master.xml
+
+server:
+  port: 8081
+  undertow:
+    accesslog:
+      dir: target
+      enabled: true
+      pattern: combined
+  compression:
+    enabled: true
+    min-response-size: 1
+
+#security:
+#  oauth2:
+#    client:
+#      accessTokenUri: http://localhost:8082/oauth/access_token
+#      userAuthorizationUri: http://localhost:8082/oauth/authorize
+#      clientId: crss
+#      clientSecret: crsssecret
+#      authorized-grant-types: authorization_code,refresh_token,password
+#      scope: openid
+#      access-token-validity-seconds: 3600
+#    resource:
+#      userInfoUri: http://localhost:8082/user
+
+logging:
+  level:
+    com.pemc: DEBUG
+    com.netflix: DEBUG
+    org.springframework.cloud: DEBUG

+ 112 - 0
crss-meterprocess-app/application-qa.yml

@@ -0,0 +1,112 @@
+spring:
+  crss-dataflow:
+    datasource:
+      jdbcUrl: jdbc:postgresql://postgresql.marathon.l4lb.thisdcos.directory:5432/crss_dataflow
+      username: admin
+      password: password
+      driverClassName: org.postgresql.Driver
+      maxPoolSize: 5
+      test-on-borrow: true
+      validation-query: SELECT 1
+  crss-main:
+    datasource:
+      jdbcUrl: jdbc:postgresql://postgresql.marathon.l4lb.thisdcos.directory:5432/crss_meterprocess
+      username: admin
+      password: password
+      driverClassName: org.postgresql.Driver
+      maxPoolSize: 5
+      test-on-borrow: true
+      validation-query: SELECT 1
+  crss-registration:
+    datasource:
+      jdbcUrl: jdbc:postgresql://postgresql.marathon.l4lb.thisdcos.directory:5432/crss_reg
+      username: admin
+      password: password
+      driverClassName: org.postgresql.Driver
+      maxPoolSize: 5
+      test-on-borrow: true
+      validation-query: SELECT 1
+  crss-nmms:
+    datasource:
+      jdbcUrl: jdbc:postgresql://postgresql.marathon.l4lb.thisdcos.directory:5432/crss_nmms
+      username: admin
+      password: password
+      driverClassName: org.postgresql.Driver
+      maxPoolSize: 5
+      test-on-borrow: true
+      validation-query: SELECT 1
+
+  jpa:
+    show-sql: false
+    generate-ddl: true
+    properties:
+      hibernate:
+        generate_statistics: true
+        dialect: org.hibernate.dialect.PostgreSQLDialect
+        ddl-auto: none
+        hbm2ddl:
+          import_files:
+
+  # prevent batch job from running on app start
+  batch:
+    job:
+      enabled: false
+
+#liquibase:
+#  change-log: classpath:/db/db.changelog-master.xml
+
+server:
+  port: 8081
+  undertow:
+    accesslog:
+      dir: target
+      enabled: true
+      pattern: combined
+  compression:
+    enabled: true
+    min-response-size: 1
+
+eureka:
+  instance:
+    prefer-ip-address: false
+    hostname: crss-meterprocess-app.marathon.l4lb.thisdcos.directory
+  client:
+    serviceUrl:
+      defaultZone: http://crss-discovery.marathon.l4lb.thisdcos.directory:8761/eureka/
+#          healthcheck:
+#            enabled: true
+#    lease:
+#      duration: 5
+#  instance:
+#    leaseRenewalIntervalInSeconds: 1
+#    leaseExpirationDurationInSeconds: 2
+
+security:
+  oauth2:
+    client:
+      accessTokenUri: http://crss-admin.marathon.l4lb.thisdcos.directory:8080/oauth/access_token
+      userAuthorizationUri: http://crss-admin.marathon.l4lb.thisdcos.directory:8080/oauth/authorize
+    resource:
+      userInfoUri: http://crss-admin.marathon.l4lb.thisdcos.directory:8080/user
+
+logging:
+  level:
+    com.pemc: DEBUG
+    com.netflix: DEBUG
+    org.springframework.cloud: DEBUG
+    org.hibernate.stat: debug
+
+dataflow:
+  url: http://spring-cloud-data-flow.marathon.l4lb.thisdcos.directory:9393
+
+job:
+  maxRun: 1
+
+sftp:
+  credentials:
+    username: pemc
+    password: 123qwe
+    host: sftp.marathon.l4lb.thisdcos.directory
+    port: 22
+    workingDirectory: /upload
+    privateKey:

+ 68 - 0
crss-meterprocess-app/application-qaoracle.yml

@@ -0,0 +1,68 @@
+spring:
+  crss-main:
+    datasource:
+      jdbcUrl: jdbc:oracle:thin:@10.64.0.4:1521:XE
+      #jdbcUrl: jdbc:oracle:thin:@pemc-storage.southeastasia.cloudapp.azure.com:1521:XE
+      username: crss_meterprocess
+      password: crss_meterprocess
+      driverClassName: oracle.jdbc.driver.OracleDriver
+      connectionTimeout: 10000
+      maxPoolSize: 20
+  crss-registration:
+      datasource:
+        jdbcUrl: jdbc:oracle:thin:@10.64.0.4:1521:XE
+        #jdbcUrl: jdbc:oracle:thin:@pemc-storage.southeastasia.cloudapp.azure.com:1521:XE
+        username: crss_reg
+        password: crss_reg
+        driverClassName: oracle.jdbc.driver.OracleDriver
+        connectionTimeout: 10000
+        maxPoolSize: 20
+
+  jpa:
+    show-sql: false
+    generate-ddl: true
+    properties:
+      hibernate:
+        dialect: org.hibernate.dialect.Oracle10gDialect
+        ddl-auto: update
+        hbm2ddl:
+          import_files:
+
+  # prevent batch job from running on app start
+  batch:
+    job:
+      enabled: false
+
+#liquibase:
+#  change-log: classpath:/db/db.changelog-master.xml
+
+server:
+  port: 8081
+  undertow:
+    accesslog:
+      dir: target
+      enabled: true
+      pattern: combined
+  compression:
+    enabled: true
+    min-response-size: 1
+
+
+#security:
+#  oauth2:
+#    client:
+#      accessTokenUri: http://localhost:8082/oauth/access_token
+#      userAuthorizationUri: http://localhost:8082/oauth/authorize
+#      clientId: crss
+#      clientSecret: crsssecret
+#      authorized-grant-types: authorization_code,refresh_token,password
+#      scope: openid
+#      access-token-validity-seconds: 3600
+#    resource:
+#      userInfoUri: http://localhost:8082/user
+
+logging:
+  level:
+    com.pemc: DEBUG
+    com.netflix: DEBUG
+    org.springframework.cloud: DEBUG

+ 117 - 0
crss-meterprocess-app/application.yml

@@ -0,0 +1,117 @@
+spring:
+  crss-dataflow:
+    datasource:
+      jdbcUrl: jdbc:postgresql://localhost:5432/crss_dataflow
+      username: postgres
+      password: postgres
+      driverClassName: org.postgresql.Driver
+      maxPoolSize: 5
+      test-on-borrow: true
+      validation-query: SELECT 1
+  crss-main:
+    datasource:
+      jdbcUrl: jdbc:postgresql://localhost:5432/crss_meterprocess
+      username: postgres
+      password: postgres
+      driverClassName: org.postgresql.Driver
+      maxPoolSize: 5
+      test-on-borrow: true
+      validation-query: SELECT 1
+  crss-registration:
+    datasource:
+      jdbcUrl: jdbc:postgresql://localhost:5432/crss_reg
+      username: postgres
+      password: postgres
+      driverClassName: org.postgresql.Driver
+      maxPoolSize: 5
+      test-on-borrow: true
+      validation-query: SELECT 1
+  crss-nmms:
+    datasource:
+      jdbcUrl: jdbc:postgresql://localhost:5432/crss_nmms
+      username: postgres
+      password: postgres
+      driverClassName: org.postgresql.Driver
+      maxPoolSize: 5
+      test-on-borrow: true
+      validation-query: SELECT 1
+
+  jpa:
+    show-sql: false
+    generate-ddl: false
+    properties:
+      hibernate:
+        generate_statistics: true
+        dialect: org.hibernate.dialect.PostgreSQLDialect
+        ddl-auto: none
+        hbm2ddl:
+          import_files:
+
+  # prevent batch job from running on app start
+  batch:
+    job:
+      enabled: false
+
+#liquibase:
+#  change-log: classpath:/db/db.changelog-master.xml
+
+server:
+  port: 9091
+  undertow:
+    accesslog:
+      dir: target
+      enabled: true
+      pattern: combined
+  compression:
+    enabled: true
+    min-response-size: 1
+
+eureka:
+  instance:
+    prefer-ip-address: true
+  client:
+    serviceUrl:
+      defaultZone: http://localhost:8761/eureka/
+#          healthcheck:
+#            enabled: true
+#    lease:
+#      duration: 5
+#  instance:
+#    leaseRenewalIntervalInSeconds: 1
+#    leaseExpirationDurationInSeconds: 2
+
+security:
+  oauth2:
+    client:
+      accessTokenUri: http://localhost:8082/oauth/access_token
+      userAuthorizationUri: http://localhost:8082/oauth/authorize
+      clientId: crss
+      clientSecret: crsssecret
+      authorized-grant-types: authorization_code,refresh_token,password
+      scope: openid
+      access-token-validity-seconds: 3600
+    resource:
+      userInfoUri: http://localhost:8082/user
+
+logging:
+  level:
+    com.pemc: DEBUG
+    com.netflix: DEBUG
+    org.springframework.cloud: DEBUG
+    org.apache.http: DEBUG
+    org.hibernate.stat: debug
+
+dataflow:
+  url: http://localhost:9393
+
+job:
+  maxRun: 1
+
+sftp:
+  credentials:
+    username: pemc
+    password: 123qwe
+    host: pemc-storage.southeastasia.cloudapp.azure.com
+    port: 22
+    workingDirectory: /home/pemc/upload
+    privateKey: