aboutsummaryrefslogtreecommitdiff
path: root/deploy/ip.mfamily.org.nginx
blob: 08cbeb5a8b3dc2ba9961b6c92160eedb28670943 (plain)
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
server {
    listen 80;
    listen [::]:80;
    server_name ip.mfamily.org;

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

server {
    listen 443 ssl;
    listen [::]:443 ssl;
    server_name ip.mfamily.org;

    ssl_certificate /etc/letsencrypt/live/ip.mfamily.org/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/ip.mfamily.org/privkey.pem;

    location = / {
        proxy_pass http://127.0.0.1:8080/;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_pass_request_body off;
        proxy_set_header Content-Length "";
    }

    location / {
        return 404;
    }
}