different dav paths
This commit is contained in:
parent
406009f340
commit
754ece9fa2
1 changed files with 17 additions and 19 deletions
|
|
@ -94,31 +94,29 @@ in
|
||||||
in
|
in
|
||||||
lib.mapAttrs (_: lib.recursiveUpdate commonVHostConfig) {
|
lib.mapAttrs (_: lib.recursiveUpdate commonVHostConfig) {
|
||||||
"_".locations."/".return = "444";
|
"_".locations."/".return = "444";
|
||||||
"dav.baduhai.dev".locations."/" = {
|
"dav.baduhai.dev".locations = {
|
||||||
proxyPass = "http://127.0.0.1:${ports.radicale}";
|
"/caldav" = {
|
||||||
extraConfig = "proxy_pass_header Authorization;";
|
proxyPass = "http://127.0.0.1:${ports.radicale}";
|
||||||
|
extraConfig = "proxy_pass_header Authorization;";
|
||||||
|
};
|
||||||
|
"/webdav" = {
|
||||||
|
proxyPass = "http://unix:/run/rclone-webdav/webdav.sock:/";
|
||||||
|
extraConfig = ''
|
||||||
|
proxy_pass_header Authorization;
|
||||||
|
proxy_connect_timeout 300; # Increase timeouts for large file uploads
|
||||||
|
proxy_send_timeout 300;
|
||||||
|
proxy_read_timeout 300;
|
||||||
|
client_max_body_size 10G; # Allow large file uploads
|
||||||
|
proxy_buffering off; # Buffer settings for better performance
|
||||||
|
proxy_request_buffering off;
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
"git.baduhai.dev".locations."/".proxyPass =
|
"git.baduhai.dev".locations."/".proxyPass =
|
||||||
"http://unix:${config.services.forgejo.settings.server.HTTP_ADDR}:/";
|
"http://unix:${config.services.forgejo.settings.server.HTTP_ADDR}:/";
|
||||||
"jellyfin.baduhai.dev".locations."/".proxyPass = "http://127.0.0.1:${ports.jellyfin}";
|
"jellyfin.baduhai.dev".locations."/".proxyPass = "http://127.0.0.1:${ports.jellyfin}";
|
||||||
"pass.baduhai.dev".locations."/".proxyPass = "http://127.0.0.1:${ports.vaultwarden}";
|
"pass.baduhai.dev".locations."/".proxyPass = "http://127.0.0.1:${ports.vaultwarden}";
|
||||||
"speedtest.baduhai.dev".locations."/".proxyPass = "http://127.0.0.1:${ports.librespeed}";
|
"speedtest.baduhai.dev".locations."/".proxyPass = "http://127.0.0.1:${ports.librespeed}";
|
||||||
"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;
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue