From 99ac38374054fcaecd76b769b5eab854998b54a6 Mon Sep 17 00:00:00 2001 From: Ahwx Date: Mon, 3 Mar 2025 13:19:53 +0100 Subject: [PATCH] feat: adds more proxy headers for sharkey to hopefully fix the issue with timeouts --- modules/services/sharkey-proxy.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/services/sharkey-proxy.nix b/modules/services/sharkey-proxy.nix index dff4f9d..d81bb23 100644 --- a/modules/services/sharkey-proxy.nix +++ b/modules/services/sharkey-proxy.nix @@ -20,7 +20,11 @@ proxyPass = "http://localhost:8893"; extraConfig = '' proxy_set_header X-Prefix '/wiki'; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-Proto https; proxy_set_header X-Forwarded-For $remote_addr; + proxy_set_header X-Forwarded-Host $remote_addr; proxy_buffering off; ''; };