-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
88a08bc
commit 572feb5
Showing
13 changed files
with
135 additions
and
66 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Last update May 2023 (rlh) | ||
server: | ||
port: 8072 | ||
|
||
spring: | ||
data: | ||
redis: # Redis is used by storing in memory all thre reauests per user and therefore | ||
# limit to a maximum request per user per second(e.g., 10 reauest per second) | ||
connect-timeout: 2s | ||
host: redis | ||
port: 6379 | ||
timeout: 1s | ||
|
||
# Testing what environment we are using | ||
gateway: | ||
greeting: "Welcome to gateway microservice from the config server, 'kubernetes configuration'." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,39 @@ | ||
# Last update February 2023 (rlh) | ||
# Last update May 2023 (rlh) | ||
server: | ||
port: 8072 | ||
|
||
eureka: | ||
instance: | ||
preferIpAddress: true | ||
instanceId: ${spring.application.name}:${random.int} | ||
hostname: gateway | ||
client: | ||
registerWithEureka: true | ||
fetchRegistry: true # this must be true otherwise sends a 500 service unavailable | ||
healthcheck: | ||
enabled: false # this must be false otherwise sends a 500 service unavailable | ||
serviceUrl: | ||
defaultZone: http://eureka:8070/eureka/ | ||
|
||
spring: | ||
cloud: | ||
loadbalancer: | ||
ribbon: | ||
enabled: false | ||
gateway: | ||
# This is for automatic mapping of routes using eureka | ||
discovery: | ||
locator: | ||
enabled: true | ||
lowerCaseServiceId: true | ||
data: | ||
redis: # Redis is used by storing in memory all thre reauests per user and therefore | ||
# limit to a maximum request per user per second(e.g., 10 reauest per second) | ||
connect-timeout: 2s | ||
host: redis | ||
port: 6379 | ||
timeout: 1s | ||
|
||
# Testing what environment we are using | ||
gateway: | ||
greeting: "Welcome to gateway microservice from the config server, 'local configuration'." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,39 @@ | ||
# Last update February 2023 (rlh) | ||
# Last update May 2023 (rlh) | ||
server: | ||
port: 8072 | ||
|
||
eureka: | ||
instance: | ||
preferIpAddress: true | ||
instanceId: ${spring.application.name}:${random.int} | ||
hostname: gateway | ||
client: | ||
registerWithEureka: true | ||
fetchRegistry: true # this must be true otherwise sends a 500 service unavailable | ||
healthcheck: | ||
enabled: false # this must be false otherwise sends a 500 service unavailable | ||
serviceUrl: | ||
defaultZone: http://localhost:8070/eureka/ | ||
|
||
spring: | ||
cloud: | ||
loadbalancer: | ||
ribbon: | ||
enabled: false | ||
gateway: | ||
# This is for automatic mapping of routes using eureka | ||
discovery: | ||
locator: | ||
enabled: true | ||
lowerCaseServiceId: true | ||
data: | ||
redis: # Redis is used by storing in memory all thre reauests per user and therefore | ||
# limit to a maximum request per user per second(e.g., 10 reauest per second) | ||
connect-timeout: 2s # Time limit for a connection to establish | ||
host: localhost | ||
port: 6379 | ||
timeout: 1s # Time limit for a response to be received | ||
|
||
# Testing what environment we are using | ||
gateway: | ||
greeting: "Welcome to gateway microservice from the config server, 'localNoDocker configuration'." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.