From b40cb40b01580fffbd24135561221f71884f7084 Mon Sep 17 00:00:00 2001 From: kalipso Date: Thu, 16 Jan 2025 19:30:49 +0100 Subject: [PATCH] [fanny] try fix incomplete file transfer --- machines/durruti/documentation.nix | 4 ++++ machines/durruti/host_config.nix | 13 ++++++++++++- machines/fanny/configuration.nix | 4 ++++ machines/vpn/configuration.nix | 4 ++++ 4 files changed, 24 insertions(+), 1 deletion(-) diff --git a/machines/durruti/documentation.nix b/machines/durruti/documentation.nix index 70ea288a..a800ab55 100644 --- a/machines/durruti/documentation.nix +++ b/machines/durruti/documentation.nix @@ -12,6 +12,10 @@ proxy_buffering off; proxy_cache off; proxy_http_version 1.1; + 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; ''; }; }; diff --git a/machines/durruti/host_config.nix b/machines/durruti/host_config.nix index cc4cf437..172ec592 100644 --- a/machines/durruti/host_config.nix +++ b/machines/durruti/host_config.nix @@ -36,7 +36,18 @@ in services.nginx.virtualHosts."docs.malobeo.org" = { forceSSL = true; enableACME= true; - locations."/".proxyPass = "http://10.0.0.10"; + locations."/" = { + proxyPass = "http://10.0.0.10"; + extraConfig = '' + proxy_buffering off; + proxy_cache off; + proxy_http_version 1.1; + 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; + ''; + }; }; services.nginx.virtualHosts."tasklist.malobeo.org" = { diff --git a/machines/fanny/configuration.nix b/machines/fanny/configuration.nix index fbdffc7d..c075effd 100644 --- a/machines/fanny/configuration.nix +++ b/machines/fanny/configuration.nix @@ -71,6 +71,10 @@ in proxy_buffering off; proxy_cache off; proxy_http_version 1.1; + 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; ''; }; }; diff --git a/machines/vpn/configuration.nix b/machines/vpn/configuration.nix index 47685432..c32c689d 100644 --- a/machines/vpn/configuration.nix +++ b/machines/vpn/configuration.nix @@ -37,6 +37,10 @@ with lib; proxy_buffering off; proxy_cache off; proxy_http_version 1.1; + 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; ''; };