-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnginx.conf
40 lines (33 loc) · 1.07 KB
/
nginx.conf
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
server {
# null-cipher HTTPS configuration
listen 442 ssl default_server;
listen [::]:442 ssl default_server;
# replace with the path for the server's certificates
include snippets/snakeoil.conf;
# disable encryption
ssl_protocols TLSv1.2;
ssl_ciphers NULL-SHA256:@SECLEVEL=0;
# enable client authentication
ssl_client_certificate /home/qsantos/src/hamttpd/ca.pem; # replace with proper path
ssl_verify_client optional;
location / {
set_escape_uri $ssl_client_s_dn_legacy;
proxy_pass "http://127.0.0.1:8000$uri?dn=$ssl_client_s_dn_legacy&$args";
}
}
# non-Ham server
server {
listen 80 default_server;
listen [::]:80 default_server;
# traditional HTTPS configuration
listen 443 ssl default_server;
listen [::]:443 ssl default_server;
# enable client authentication
ssl_client_certificate /home/qsantos/src/hamttpd/ca.pem; # replace with proper path
ssl_verify_client optional;
# replace with the path for the server's certificates
include snippets/snakeoil.conf;
location / {
proxy_pass "http://127.0.0.1:8000$uri?dn=$ssl_client_s_dn_legacy&$args";
}
}