location = /slskd { return 301 https://$host/slskd/; } location /slskd/ { proxy_pass http://127.0.0.1:5030/; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; proxy_set_header Host $host; proxy_request_buffering off; client_max_body_size 0; }