aboutsummaryrefslogtreecommitdiff
path: root/template/nginx/root.conf.template
blob: 8214bf724925fbcb13226734189f7f40e3b271fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
server {
    listen 443 ssl http2;
    listen [::]:443 ssl http2;
    server_name ${CRUPEST_DOMAIN};

    root /srv/www;
}

server {
    listen 80;
    listen [::]:80;
    server_name ${CRUPEST_DOMAIN};

    location / {
        return 301 https://$host$request_uri;
    }

    location /.well-known/acme-challenge {
        root /srv/acme;
    }
}