From a1706585161f4fca67374ba94fc17aa6e158998d Mon Sep 17 00:00:00 2001 From: niten Date: Wed, 17 Jan 2024 22:59:15 -0800 Subject: [PATCH] Add a trailing /.... And put proxyPass in the right place? --- mastodon-container.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mastodon-container.nix b/mastodon-container.nix index ab0cf34..81d8698 100644 --- a/mastodon-container.nix +++ b/mastodon-container.nix @@ -138,13 +138,13 @@ in { services.nginx = { enable = true; - recommendedProxySettings = true; virtualHosts."${cfg.hostname}" = { enableACME = true; forceSSL = true; locations."/" = { - proxyPass = "http://localhost:${toString cfg.port}"; + proxyPass = "http://localhost:${toString cfg.port}/"; proxyWebsockets = true; + recommendedProxySettings = true; }; }; };