Files
op-packages/quickfile/files/quickfile.locations
T

47 lines
1.4 KiB
Plaintext

client_max_body_size 0;
client_body_buffer_size 128k;
location /cgi-bin/luci/quickfile {
proxy_cache off;
proxy_redirect off;
proxy_buffering off;
proxy_request_buffering off;
proxy_http_version 1.1;
proxy_connect_timeout 300;
proxy_read_timeout 300;
proxy_send_timeout 300;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://unix:/tmp/run/quickfile/quickfile.sock;
}
location /cgi-bin/luci/quickfile/api/ {
proxy_cache off;
proxy_redirect off;
proxy_buffering off;
proxy_request_buffering off;
proxy_http_version 1.1;
proxy_connect_timeout 300;
proxy_read_timeout 300;
proxy_send_timeout 300;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
rewrite ^/cgi-bin/luci/quickfile/api/(.*) /api/$1 break;
proxy_pass http://unix:/tmp/run/quickfile/quickfile.sock;
}
location /cgi-bin/luci/quickfile-static/ {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
rewrite ^/cgi-bin/luci/quickfile-static/(.*) /static/$1 break;
proxy_pass http://unix:/tmp/run/quickfile/quickfile.sock;
}