-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginx.conf
More file actions
43 lines (36 loc) · 698 Bytes
/
nginx.conf
File metadata and controls
43 lines (36 loc) · 698 Bytes
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
events {}
http {
upstream api {
server localhost:8081;
}
# See internal/provider/provider_test.go for references
server {
# rootCA
listen 8082 ssl;
ssl_certificate /opt/server_cert.pem;
ssl_certificate_key /opt/server_key.pem;
location / {
proxy_pass http://api;
}
}
server {
# mtls
listen 8083;
ssl_client_certificate /opt/client_cert.pem;
ssl_verify_client on;
location / {
proxy_pass http://api;
}
}
server {
# rootCA+mtls
listen 8084 ssl;
ssl_certificate /opt/server_cert.pem;
ssl_certificate_key /opt/server_key.pem;
ssl_client_certificate /opt/client_cert.pem;
ssl_verify_client on;
location / {
proxy_pass http://api;
}
}
}