From bb49e8c2e86cafe27e9ea30b028aa31e78c41281 Mon Sep 17 00:00:00 2001 From: niten Date: Mon, 17 Jul 2023 19:36:14 -0700 Subject: [PATCH] Just use recommended proxy settings --- lemmy-docker.nix | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/lemmy-docker.nix b/lemmy-docker.nix index b10de7a..909cb8e 100644 --- a/lemmy-docker.nix +++ b/lemmy-docker.nix @@ -375,13 +375,14 @@ in { "/" = { proxyPass = "http://localhost:${toString cfg.port}"; proxyWebsockets = true; - extraConfig = '' - proxy_set_header Host $host; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - ''; + recommendedProxySettings = true; + # extraConfig = '' + # proxy_set_header Host $host; + # proxy_set_header Upgrade $http_upgrade; + # proxy_set_header Connection "Upgrade"; + # proxy_set_header X-Real-IP $remote_addr; + # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + # ''; }; }; };