Skip to content

Instantly share code, notes, and snippets.

@goodtiding5
Last active November 16, 2020 05:58
Show Gist options
  • Save goodtiding5/3210840d9c2f1f3d870c118b32447db4 to your computer and use it in GitHub Desktop.
Save goodtiding5/3210840d9c2f1f3d870c118b32447db4 to your computer and use it in GitHub Desktop.
The working nginx proxy config for zeronet

The working nginx config for zeronet

server {
    listen 443 ssl;

    server_name        url;
    ssl on;
    ssl_certificate        /etc/letsencrypt/live/url/fullchain.pem;
    ssl_certificate_key     /etc/letsencrypt/live/url/privkey.pem;
    ssl_session_timeout 5m;

    location / {
        proxy_pass http://127.0.0.1:43110;
        proxy_set_header Host $host; #get rid of media referrer error
        proxy_http_version 1.1;
        proxy_read_timeout 1h; #for long live websocket connetion
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment