Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
M
Micro_Services
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ali.saeed
Micro_Services
Commits
9d5b9120
Commit
9d5b9120
authored
Apr 26, 2024
by
Ali Saeed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added API Gateway Configuration
parent
bd86541a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
0 deletions
+28
-0
CloudGatewayApplication.java
...ay/src/main/java/org/example/CloudGatewayApplication.java
+3
-0
application.properties
cloud-gateway/src/main/resources/application.properties
+0
-0
application.yml
cloud-gateway/src/main/resources/application.yml
+25
-0
No files found.
cloud-gateway/src/main/java/org/example/CloudGatewayApplication.java
View file @
9d5b9120
...
...
@@ -2,7 +2,10 @@ package org.example;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.cloud.client.discovery.EnableDiscoveryClient
;
@SpringBootApplication
@EnableDiscoveryClient
public
class
CloudGatewayApplication
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
CloudGatewayApplication
.
class
,
args
);
...
...
cloud-gateway/src/main/resources/application.properties
deleted
100644 → 0
View file @
bd86541a
cloud-gateway/src/main/resources/application.yml
0 → 100644
View file @
9d5b9120
server
:
port
:
9090
spring
:
application
:
name
:
api-gateway
cloud
:
gateway
:
routes
:
-
id
:
invoicing-service
uri
:
lb://invoicing-service
predicates
:
-
Path=/invoices/**
-
id
:
users-service
uri
:
lb://users-service
predicates
:
-
Path=/users/**
eureka
:
client
:
register-with-eureka
:
true
fetch-registry
:
true
service-url
:
default-zone
:
http://localhost:8761/eureka/
# instance:
# hostname: localhost
# preferIpAddress: true
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment