Browse Source

Added configuration for the scheduler.

Chris Lim 9 years ago
parent
commit
8f21baf898

+ 57 - 0
crss-sched/crss-sched-dev.yml

@@ -0,0 +1,57 @@
+spring:
+  datasource:
+    url: jdbc:postgresql://localhost:5432/crss_metering
+    username: crss_sched
+    password: crss_sched
+    driverClassName: org.postgresql.Driver
+    hikari:
+      connectionTimeout: 10000
+      maximumPoolSize: 20
+  jpa:
+    database: POSTGRESQL
+    properties:
+      hibernate:
+        dialect: org.hibernate.dialect.PostgreSQL94Dialect
+  rabbitmq:
+    username: guest
+    password: guest
+    host: localhost
+    ports:
+      - "5672:5672"
+      - "15672:15672"
+
+server:
+  port: 8085
+  undertow:
+    accesslog:
+      dir: target
+      enabled: true
+      pattern: combined
+  compression:
+    enabled: true
+    min-response-size: 1
+
+eureka:
+  client:
+    serviceUrl:
+      defaultZone: http://localhost:8761/eureka/
+
+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: WARN
+    org.springframework.cloud: WARN
+    org.hibernate.SQL: DEBUG

+ 44 - 0
crss-sched/crss-sched-devoracle.yml

@@ -0,0 +1,44 @@
+spring:
+  rabbitmq:
+    username: guest
+    password: guest
+    host: localhost
+    ports:
+      - "5672:5672"
+      - "15672:15672"
+
+server:
+  port: 8085
+  undertow:
+    accesslog:
+      dir: target
+      enabled: true
+      pattern: combined
+  compression:
+    enabled: true
+    min-response-size: 1
+
+eureka:
+  client:
+    serviceUrl:
+      defaultZone: http://localhost:8761/eureka/
+
+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: WARN
+    org.springframework.cloud: WARN
+    org.hibernate.SQL: DEBUG

+ 2 - 0
crss-sched/crss-sched-staging.yml

@@ -0,0 +1,2 @@
+graylog:
+  host: pemc.integration.exist.com

+ 55 - 0
crss-sched/crss-sched.yml

@@ -0,0 +1,55 @@
+spring:
+  datasource:
+    url: jdbc:oracle:thin:@192.168.235.6:1521:ORCL
+    username: crss_sched
+    password: crss_sched
+    driverClassName: oracle.jdbc.OracleDriver
+    hikari:
+      connectionTimeout: 10000
+      maximumPoolSize: 20
+  jpa:
+    database: ORACLE
+    properties:
+      hibernate:
+        dialect: org.hibernate.dialect.Oracle10gDialect
+  rabbitmq:
+    host: pemc-oracle.ss.exist.com
+    ports:
+      - "5672:5672"
+      - "15672:15672"
+
+server:
+  port: 8085
+  undertow:
+    accesslog:
+      dir: target
+      enabled: true
+      pattern: combined
+  compression:
+    enabled: true
+    min-response-size: 1
+
+eureka:
+  client:
+    serviceUrl:
+      defaultZone: http://discovery:8080/eureka/
+
+security:
+  oauth2:
+    client:
+      accessTokenUri: http://app:8080/admin/oauth/access_token
+      userAuthorizationUri: http://app:8080/admin/oauth/authorize
+      clientId: crss
+      clientSecret: crsssecret
+      authorized-grant-types: authorization_code,refresh_token,password
+      scope: openid
+      access-token-validity-seconds: 3600
+    resource:
+      userInfoUri: http://app:8080/admin/user
+
+logging:
+  level:
+    com.pemc: DEBUG
+    com.netflix: WARN
+    org.springframework.cloud: WARN
+    org.hibernate.SQL: DEBUG