This commit is contained in:
Philip Peterson 2024-12-22 06:53:48 -05:00
parent 23ff02e0a3
commit 1effdc13a2

View file

@ -118,6 +118,29 @@
locations."/" = { locations."/" = {
proxyPass = "http://127.0.0.1:8082/"; # pass through to webdav proxyPass = "http://127.0.0.1:8082/"; # pass through to webdav
extraConfig = ''
# WebDAV-specific settings
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 Authorization $http_authorization;
# Timeout for large file uploads/downloads
proxy_read_timeout 300;
proxy_connect_timeout 300;
proxy_send_timeout 300;
# Allow WebDAV methods
proxy_methods GET POST PUT DELETE OPTIONS PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK;
# Client upload size
client_max_body_size 100M;
# Optional: Disable caching if issues arise
proxy_buffering off;
proxy_cache off;
'';
}; };
}; };