Skip to content

Commit

Permalink
add: configuration to registry micro services to eureka
Browse files Browse the repository at this point in the history
  • Loading branch information
andrecastrosousa committed Sep 26, 2023
1 parent 1d75bf4 commit 554e06a
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 2 deletions.
7 changes: 7 additions & 0 deletions auth-service/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ application:
expiration: 86400000 # a day
refresh-token:
expiration: 604800000 # 7 days
spring:
application:
name: auth-service

eureka:
client:
serviceUrl:
defaultZone: http://localhost:8761/eureka/
server:
port: 8082
6 changes: 6 additions & 0 deletions catalog-service/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ spring:
data:
mongodb:
uri: mongodb://localhost:27017/catalog
application:
name: catalog-service

eureka:
client:
serviceUrl:
defaultZone: http://localhost:8761/eureka/
server:
port: 8081
2 changes: 1 addition & 1 deletion gateway-service/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ application:
secret-key: 404E635266556A586E3272357538782F413F4428472B4B6250645367566B5970
spring:
application:
name: API-GATEWAY-SERVICE
name: gateway-service
eureka:
client:
serviceUrl:
Expand Down
6 changes: 6 additions & 0 deletions orders-service/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ spring:
password: guest
port: 5672
virtual-host: /
application:
name: orders-service

eureka:
client:
serviceUrl:
defaultZone: http://localhost:8761/eureka/
server:
port: 8080
9 changes: 8 additions & 1 deletion user-service/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,17 @@ spring:
password: guest
port: 5672
virtual-host: /
application:
name: users-service

eureka:
client:
serviceUrl:
defaultZone: http://localhost:8761/eureka/
auth-service:
base:
url: "http://localhost:8082"

server:
port: 8083


0 comments on commit 554e06a

Please sign in to comment.