# when running copyparty behind a reverse-proxy, # make sure that copyparty allows at least as many clients as the proxy does, # so run copyparty with -nc 512 if your nginx has the default limits # (worker_processes 1, worker_connections 512) upstream cpp { server 127.0.0.1:3923; keepalive 120; } server { listen 443 ssl; listen [::]:443 ssl; server_name fs.example.com; location / { proxy_pass http://cpp; proxy_redirect off; # disable buffering (next 4 lines) proxy_http_version 1.1; client_max_body_size 0; proxy_buffering off; proxy_request_buffering off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header Connection "Keep-Alive"; } }