aboutsummaryrefslogtreecommitdiff
path: root/template/nginx/https-redirect.conf
blob: 63018365780f6a64c4cdcfcfcebe0b8621118f20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
server {
    listen 80 default_server;
    listen [::]:80 default_server;

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

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