-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkong-config.yml
60 lines (57 loc) · 1.23 KB
/
kong-config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
_format_version: "1.1"
services:
- name: auth
url: http://med_connect_api:3000
routes:
- name: auth_get
methods: [GET]
paths:
- /auth/health
strip_path: false
- name: auth_post
methods: [POST]
paths:
- /auth/users/login
- /auth/doctors/login
- /auth/doctors
- /auth/users
strip_path: false
plugins:
- name: http-log
config:
http_endpoint: https://webhook.site/b07af8bf-56d3-4755-a55d-e85e23aece9a
method: POST
- name: med_connect
url: http://med_connect_api:3000
routes:
- name: doctors
methods: [GET, PUT]
paths:
- /doctors
- /doctors/(?<id>\d+)/register
strip_path: false
- name: appointments
methods: [GET, POST, PUT]
paths:
- /appointments/doctors/(?<id>\d+)
- /appointments/users/(?<id>\d+)
- /appointments/request/users/(?<userId>\d+)
- /appointments/(?<id>\d+)/response
strip_path: false
plugins:
- name: request-transformer
config:
add:
headers:
- "Content-Type: application/json"
- name: jwt
enabled: true
config:
key_claim_name: kid
claims_to_verify:
- exp
consumers:
- username: med-connect
jwt_secrets:
- algorithm: HS256
secret: this_is_a_super_secret