2021-07-12 22:03:34 +03:00

579 B

    listen 443 ssl http2;
    include    /etc/nginx/allow-cloudflare-only.conf;
    server_name scenery.cx;
    ssl_certificate     /etc/letsencrypt/live/scenery.cx/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/scenery.cx/privkey.pem;

    location /images/ {
        root /home/scenery/public;
        expires 30 d;
    }

    location /thumbnails/ {
        root /home/scenery/public;
        expires 30 d;
    }

    location /_next/static/ {
        root /home/scenery;
    }

    location / {
        proxy_pass http://127.0.0.1:5555;
    }
}