mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 17:12:13 -06:00
27 lines
614 B
Plaintext
27 lines
614 B
Plaintext
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";
|
|
}
|
|
}
|