From aef34ca56106bdc8fc7508d7cb4a18834cffa075 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=E2=80=9CNiols=E2=80=9D=20Jeannerod?= Date: Wed, 30 Oct 2024 18:37:45 +0000 Subject: [PATCH] Use recommended proxy settings for Garage --- services/fediversity/garage.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/fediversity/garage.nix b/services/fediversity/garage.nix index 5b1d32d9..3badc0cd 100644 --- a/services/fediversity/garage.nix +++ b/services/fediversity/garage.nix @@ -170,7 +170,11 @@ in locations."/" = { proxyPass = "http://localhost:3902"; extraConfig = '' + ## copied from https://garagehq.deuxfleurs.fr/documentation/cookbook/reverse-proxy/ proxy_set_header Host $host; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + # Disable buffering to a temporary file. + proxy_max_temp_file_size 0; ''; }; };