From aa4caeea9f4c657e6a7ba84f33c54f72cfc2489b Mon Sep 17 00:00:00 2001 From: William Date: Sat, 12 Jul 2025 16:16:45 -0300 Subject: [PATCH] reverse proxy the webdav share --- hosts/modules/alexandria/services.nix | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/hosts/modules/alexandria/services.nix b/hosts/modules/alexandria/services.nix index 7dfcf91..5ba6480 100644 --- a/hosts/modules/alexandria/services.nix +++ b/hosts/modules/alexandria/services.nix @@ -103,10 +103,22 @@ in "jellyfin.baduhai.dev".locations."/".proxyPass = "http://127.0.0.1:${ports.jellyfin}"; "pass.baduhai.dev".locations."/".proxyPass = "http://127.0.0.1:${ports.vaultwarden}"; "speedtest.baduhai.dev".locations."/".proxyPass = "http://127.0.0.1:${ports.librespeed}"; - # "webdav.baduhai.dev".locations."/" = { - # proxyPass = "http://127.0.0.1:${ports.webdav}"; - # proxyNoTimeout = true; - # }; + "webdav.baduhai.dev".locations."/" = { + proxyPass = "http://unix:/run/rclone-webdav/webdav.sock:/"; + extraConfig = '' + # WebDAV specific headers + proxy_pass_header Authorization; + # Increase timeouts for large file uploads + proxy_connect_timeout 300; + proxy_send_timeout 300; + proxy_read_timeout 300; + # Allow large file uploads + client_max_body_size 10G; + # Buffer settings for better performance + proxy_buffering off; + proxy_request_buffering off; + ''; + }; }; };