Browse Source

Organize Scheduler service configurations

Monte Cillo Co 9 years ago
parent
commit
3a4b829e77

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

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

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

@@ -1,39 +0,0 @@
-spring:
-  datasource:
-    url: jdbc:postgresql://localhost:5432/crss_sched
-    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"
-
-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

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

@@ -1,44 +0,0 @@
-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

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

@@ -1,40 +0,0 @@
-spring:
-  datasource:
-    url: jdbc:postgresql://192.168.241.62:5432/crss_sched
-    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:
-    host: pemc-oracle.ss.exist.com
-    ports:
-      - "5672:5672"
-      - "15672:15672"
-
-graylog:
-  host: pemc.integration.exist.com
-
-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

+ 34 - 38
crss-sched/crss-sched.yml

@@ -1,6 +1,7 @@
 spring:
+  profiles: dev
   datasource:
-    url: jdbc:postgresql://192.168.235.6:5432/crss_sched
+    url: jdbc:postgresql://localhost:5432/crss_sched
     username: crss_sched
     password: crss_sched
     driverClassName: org.postgresql.Driver
@@ -12,44 +13,39 @@ spring:
     properties:
       hibernate:
         dialect: org.hibernate.dialect.PostgreSQL94Dialect
-  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
+---
+spring:
+  profiles: staging
+  datasource:
+    url: jdbc:postgresql://192.168.241.62:5432/crss_sched
+    username: crss_sched
+    password: crss_scheds
+    driverClassName: org.postgresql.Driver
+    hikari:
+      connectionTimeout: 10000
+      maximumPoolSize: 20
+  jpa:
+    database: POSTGRESQL
+    properties:
+      hibernate:
+        dialect: org.hibernate.dialect.PostgreSQL94Dialect
 
-logging:
-  level:
-    com.pemc: DEBUG
-    com.netflix: WARN
-    org.springframework.cloud: WARN
-    org.hibernate.SQL: DEBUG
+---
+spring:
+  profiles: uat
+  datasource:
+    url: jdbc:postgresql://192.168.235.6:5432/crss_sched
+    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