-
Notifications
You must be signed in to change notification settings - Fork 4
/
apisix.yaml
90 lines (90 loc) · 2.31 KB
/
apisix.yaml
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
deployment:
role: data_plane
role_data_plane:
config_provider: yaml
ssls:
-
snis:
- "kongateway.de" # Some sni to associate the TLS certificate with.
# Certificate for server-side TLS authentication to the clients
cert: |
<ADD_YOUR_API_GATEWAY_TLS_CERTIFICATE_HERE>
# According private key for server-side TLS authentication to the clients
key: |
<ADD_YOUR_API_GATEWAY_TLS_PRIVATE_KEY_HERE>
consumers:
- username: konnektor
plugins:
basic-auth:
username: konnektor
password: abc
routes:
# Replace <KONNEKTOR_ADDRESS> with your actual Konnektor origin
-
id: konnektor-sds
uri: /connector.sds
upstream:
scheme: https
nodes:
"<KONNEKTOR_ADDRESS>": 1
type: roundrobin
plugin_config_id: 1
-
id: konnektor-external-auth
uri: /service/authsignatureservice
upstream:
scheme: https
nodes:
"<KONNEKTOR_ADDRESS>": 1
type: roundrobin
plugin_config_id: 2
-
id: konnektor-cards
uri: /service/cardservice
upstream:
scheme: https
nodes:
"<KONNEKTOR_ADDRESS>": 1
type: roundrobin
plugin_config_id: 2
-
id: konnektor-certs
uri: /service/certificateservice
upstream:
scheme: https
nodes:
"<KONNEKTOR_ADDRESS>": 1
type: roundrobin
plugin_config_id: 2
-
id: konnektor-systeminfo
uri: /service/systeminformationservice
upstream:
scheme: https
nodes:
"<KONNEKTOR_ADDRESS>": 1
type: roundrobin
plugin_config_id: 2
plugin_configs:
# Replace <BASIC_AUTHENTICATION_CREDENTIALS_OF_THE_KONNEKTOR_API> with your Konnektor credentials
# This plugin does not require authentication itself. It adds authentication credentials to the request
-
id: 1
plugins:
proxy-rewrite:
host: <KONNEKTOR_ADDRESS>
headers:
set:
Authorization: Basic <BASIC_AUTHENTICATION_CREDENTIALS_OF_THE_KONNEKTOR_API>
# This plugin does require authentication plus it adds authentication credentials to the request
-
id: 2
plugins:
proxy-rewrite:
host: <KONNEKTOR_ADDRESS>
headers:
set:
Authorization: Basic <BASIC_AUTHENTICATION_CREDENTIALS_OF_THE_KONNEKTOR_API>
basic-auth:
username: konnektor
#END