add capability to serve with nginx

This commit is contained in:
2024-12-18 17:16:55 +08:00
parent 1e63315634
commit da78e79dcd
2 changed files with 47 additions and 5 deletions

View File

@ -44,3 +44,17 @@ storage:
type: local # ignored
local:
path: /data # defaults to ./data
accel:
# example nginx config:
## location /i {
## internal;
## alias /path/to/data;
## }
## location / {
## proxy_pass 127.0.0.1:8881;
## proxy_set_header X-Accel-Path /i;
## }
##
# enable-by-header: "X-Accel-Path"