Skip to content

Commit

Permalink
Adds config server
Browse files Browse the repository at this point in the history
  • Loading branch information
sabbey37 committed Sep 18, 2018
1 parent 8e6ed88 commit 606bfe7
Show file tree
Hide file tree
Showing 14 changed files with 18 additions and 23 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
spring.application.name=allocations-server

server.port=8081
spring.datasource.username=tracker
spring.datasource.url=jdbc:mysql://localhost:3306/tracker_allocations_dev?useSSL=false&useTimezone=true&serverTimezone=UTC&useLegacyDatetimeCode=false
registration.server.endpoint=http://registration-server

security.oauth2.resource.token-info-uri=http://localhost:8999/oauth/check_token
security.oauth2.client.access-token-uri=http://localhost:8999/oauth/token
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
spring.application.name=allocations-server
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
spring.application.name=backlog-server

server.port=8082
spring.datasource.username=tracker
spring.datasource.url=jdbc:mysql://localhost:3306/tracker_backlog_dev?useSSL=false&useTimezone=true&serverTimezone=UTC&useLegacyDatetimeCode=false
registration.server.endpoint=http://registration-server

security.oauth2.resource.token-info-uri=http://localhost:8999/oauth/check_token
security.oauth2.client.access-token-uri=http://localhost:8999/oauth/token
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
spring.application.name=backlog-server
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
spring.application.name=registration-server

server.port=8083
spring.datasource.username=tracker
spring.datasource.url=jdbc:mysql://localhost:3306/tracker_registration_dev?useSSL=false&useTimezone=true&serverTimezone=UTC&useLegacyDatetimeCode=false
registration.server.endpoint=http://registration-server

security.oauth2.resource.token-info-uri=http://localhost:8999/oauth/check_token
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
spring.application.name=registration-server
8 changes: 7 additions & 1 deletion applications/server.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ dependencies {
compile "org.springframework.boot:spring-boot-starter-actuator"
compile "io.pivotal.spring.cloud:spring-cloud-services-starter-service-registry"
compile "io.pivotal.spring.cloud:spring-cloud-sso-connector:$springCloudSsoVersion"
compile "io.pivotal.spring.cloud:spring-cloud-services-starter-config-client"

compile "com.zaxxer:HikariCP:2.3.7"
compile "mysql:mysql-connector-java:$mysqlVersion"
Expand All @@ -27,5 +28,10 @@ bootRun.environment([
"SECURITY_OAUTH2_CLIENT_CLIENT_ID": "tracker-client",
"SECURITY_OAUTH2_CLIENT_CLIENT_SECRET": "supersecret",
"SECURITY_USER_NAME": "actuator",
"SECURITY_USER_PASSWORD": "operations4red"
"SECURITY_USER_PASSWORD": "operations4red",
"REGISTRATION_SERVER_ENDPOINT": "http://registration-server"
])

test.environment([
"REGISTRATION_SERVER_ENDPOINT": "http://registration-server"
])
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
spring.application.name=timesheets-server

server.port=8084
spring.datasource.username=tracker
spring.datasource.url=jdbc:mysql://localhost:3306/tracker_timesheets_dev?useSSL=false&useTimezone=true&serverTimezone=UTC&useLegacyDatetimeCode=false
registration.server.endpoint=http://registration-server

security.oauth2.resource.token-info-uri=http://localhost:8999/oauth/check_token
security.oauth2.client.access-token-uri=http://localhost:8999/oauth/token
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
spring.application.name=timesheets-server
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public void startWithDatabaseName(String dbName) throws IOException, Interrupted
.put("RIBBON_EUREKA_ENABLED", "false")
.put("APPLICATION_OAUTH_ENABLED", "false")
.put("REGISTRATION_SERVER_RIBBON_LISTOFSERVERS", "http://localhost:8883")
.put("REGISTRATION_SERVER_ENDPOINT", "http://registration-server")
.build()
);
}
Expand Down
5 changes: 2 additions & 3 deletions manifest-allocations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ applications:
env:
spring.profiles.active: cloud
GRANT_TYPE: client_credentials
SECURITY_USER_NAME: actuator
SECURITY_USER_PASSWORD: operations4red
services:
- tracker-allocations-database
- tracker-service-registry
- tracker-circuit-breaker-dashboard
- tracker-sso
- tracker-sso
- tracker-config-server
5 changes: 2 additions & 3 deletions manifest-backlog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ applications:
env:
spring.profiles.active: cloud
GRANT_TYPE: client_credentials
SECURITY_USER_NAME: actuator
SECURITY_USER_PASSWORD: operations4red
services:
- tracker-backlog-database
- tracker-service-registry
- tracker-circuit-breaker-dashboard
- tracker-sso
- tracker-sso
- tracker-config-server
3 changes: 1 addition & 2 deletions manifest-registration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ applications:
env:
spring.profiles.active: cloud
GRANT_TYPE: client_credentials
SECURITY_USER_NAME: actuator
SECURITY_USER_PASSWORD: operations4red
services:
- tracker-registration-database
- tracker-service-registry
- tracker-sso
- tracker-config-server
3 changes: 1 addition & 2 deletions manifest-timesheets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ applications:
env:
spring.profiles.active: cloud
GRANT_TYPE: client_credentials
SECURITY_USER_NAME: actuator
SECURITY_USER_PASSWORD: operations4red
services:
- tracker-timesheets-database
- tracker-service-registry
- tracker-circuit-breaker-dashboard
- tracker-sso
- tracker-config-server

0 comments on commit 606bfe7

Please sign in to comment.