⛅ Sync 2026-05-25 22:10:00

This commit is contained in:
github-actions[bot] committed 2026-05-25 22:10:00 +08:00
1 parent bf7ca11926
commit 346033fcdf
11 files changed
+3 -276

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
#!/bin/sh /etc/rc.common
START=90
USE_PROCD=1
PROG=/usr/bin/quickfile
start_service() {
procd_open_instance quickfile
procd_set_param command $PROG
procd_append_param command -dir /
procd_append_param command -api /cgi-bin/luci/quickfile/api/
procd_append_param command -static /cgi-bin/luci/quickfile-static/
procd_append_param command -sock /tmp/run/quickfile/quickfile.sock
procd_set_param stdout 0
procd_set_param stderr 0
procd_set_param respawn
procd_set_param limits core="unlimited"
procd_set_param limits nofile="200000 200000"
procd_close_instance quickfile
}
+48
View File
@@ -0,0 +1,48 @@
# The default temporary storage space in OpenWrt may be limited.
# To upload large files, please modify the `client_body_temp_path`
# directory to a location with larger storage capacity.
client_max_body_size 0;
client_body_buffer_size 128k;
#client_body_temp_path /mnt/quickfile_tmp;
location /cgi-bin/luci/quickfile {
proxy_cache off;
proxy_redirect off;
proxy_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_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?host=$scheme://$host break;
proxy_pass http://unix:/tmp/run/quickfile/quickfile.sock:/api/;
}
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?host=$scheme://$host break;
proxy_pass http://unix:/tmp/run/quickfile/quickfile.sock:/static/;
}