]> WPIA git - infra.git/blob - modules/infradocs/templates/nginx.epp
add: script for an admin to manage certificates
[infra.git] / modules / infradocs / templates / nginx.epp
1 server {
2     listen       0.0.0.0:443 ssl;
3     server_name  infradocs.<%=$systemDomain%>;
4 #    ssl_certificate /etc/ssl/private/gigi.crt;
5 #    ssl_certificate_key /etc/ssl/private/gigi.key;
6
7 #    ssl_client_certificate /etc/ssl/root.crt;
8 #    ssl_verify_client on;
9 #    ssl_verify_depth 4;
10
11     location / {
12         root '/usr/share/doc/wpia-infradocs/html';
13         index main.html;
14     }
15 }
16 server {
17     listen       0.0.0.0:80;
18     server_name  infradocs.<%=$systemDomain%>;
19
20     location / {
21         root '/usr/share/doc/wpia-infradocs/html';
22         index main.html;
23     }
24
25     location ~* /.well-known/someca-challenge/.* {
26         root /data/challenge;
27     }
28 }