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";
}
}