From 97eb3e5d253d3da44c9c5b3e7abd5fe3efcb96bd Mon Sep 17 00:00:00 2001 From: RGBCube Date: Fri, 12 Jan 2024 12:32:43 +0300 Subject: [PATCH] Bind to ::1 instead of localhost --- flake.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 38466ad..f1c9ddd 100644 --- a/flake.nix +++ b/flake.nix @@ -159,7 +159,7 @@ forceSSL = true; useACMEHost = cfg.url; - locations."/".proxyPass = "http://localhost:${toString cfg.port}"; + locations."/".proxyPass = "http://[::1]:${toString cfg.port}"; }; virtualHosts."www.${cfg.url}" = { @@ -175,8 +175,8 @@ forceSSL = true; useACMEHost = cfg.url; - locations."/".proxyPass = "http://localhost:${toString cfg.port}/404"; - locations."/assets".proxyPass = "http://localhost:${toString cfg.port}/assets"; + locations."/".proxyPass = "http://[::1]:${toString cfg.port}/404"; + locations."/assets".proxyPass = "http://[::1]:${toString cfg.port}/assets"; }; };