Skip to content

Commit

Permalink
Merge pull request #18 from tribofustack/config/gateway
Browse files Browse the repository at this point in the history
Config/gateway
  • Loading branch information
PeeQuessada authored May 18, 2024
2 parents fb2ab07 + a77211c commit 534a63b
Showing 1 changed file with 19 additions and 20 deletions.
39 changes: 19 additions & 20 deletions infra/kong/k8s/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,22 @@ data:
kong-config.yml: |
_format_version: "1.1"
services:
- name: ms_financial
url: http://ms-financial-service:3003
routes:
- name: payments
methods: [GET, POST, DELETE]
paths:
- /payments/order/(?<id>\d+)
- /payments/order/(?<id>\d+)/approve
- /payments/order/(?<id>\d+)/cancel
plugins:
- name: request-transformer
config:
add:
headers:
- "Content-Type: application/json"
strip_path: false
- name: ms_checkin_categories
url: http://ms-checkin-service:3001/products/category
Expand Down Expand Up @@ -73,23 +89,6 @@ data:
- "Content-Type: application/json"
strip_path: false
- name: ms_financial
url: http://ms-financial-service:3003
routes:
- name: payments
methods: [GET, POST, DELETE]
paths:
- /payments/order/(?<id>\d+)
- /payments/order/(?<id>\d+)/approve
- /payments/order/(?<id>\d+)/cancel
plugins:
- name: request-transformer
config:
add:
headers:
- "Content-Type: application/json"
strip_path: false
- name: ms_auth
url: http://ms-auth-service:3000
routes:
Expand All @@ -100,9 +99,9 @@ data:
plugins:
- name: rate-limiting
config:
second: 3
minute: 5
hour: 10
second: 5
minute: 7
hour: 13
policy: local
- name: http-log
config:
Expand Down

0 comments on commit 534a63b

Please sign in to comment.