From 599ca53f1de429f7254c088bc28cc4089b27be5e Mon Sep 17 00:00:00 2001 From: Joakim Repomaa Date: Fri, 7 Feb 2025 19:16:38 +0200 Subject: [PATCH] explicitly use v4 localhost --- hosts/freun.dev/services/gotosocial.nix | 2 +- hosts/freun.dev/services/grafana.nix | 2 +- hosts/freun.dev/services/immich.nix | 2 +- hosts/freun.dev/services/invidious.nix | 2 +- hosts/freun.dev/services/owncast.nix | 2 +- hosts/freun.dev/services/snips.nix | 2 +- hosts/freun.dev/services/syncthing.nix | 2 +- hosts/freun.dev/services/vaultwarden.nix | 4 ++-- hosts/freun.dev/services/workout-tracker.nix | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) diff --git a/hosts/freun.dev/services/gotosocial.nix b/hosts/freun.dev/services/gotosocial.nix index c0423e6..0465673 100644 --- a/hosts/freun.dev/services/gotosocial.nix +++ b/hosts/freun.dev/services/gotosocial.nix @@ -42,6 +42,6 @@ in ] ); - "${fqdn}".locations."/".proxy = "http://localhost:${toString port}"; + "${fqdn}".locations."/".proxy = "http://127.0.0.1:${toString port}"; }; } diff --git a/hosts/freun.dev/services/grafana.nix b/hosts/freun.dev/services/grafana.nix index 5730e27..f540b18 100644 --- a/hosts/freun.dev/services/grafana.nix +++ b/hosts/freun.dev/services/grafana.nix @@ -43,7 +43,7 @@ in ]; }; - modules.webserver.vHosts.${fqdn}.locations."/".proxy = "http://localhost:${toString port}"; + modules.webserver.vHosts.${fqdn}.locations."/".proxy = "http://127.0.0.1:${toString port}"; services.postgresql = { ensureDatabases = [ "grafana" ]; diff --git a/hosts/freun.dev/services/immich.nix b/hosts/freun.dev/services/immich.nix index ba45c72..6bb1d5b 100644 --- a/hosts/freun.dev/services/immich.nix +++ b/hosts/freun.dev/services/immich.nix @@ -167,7 +167,7 @@ in wantedBy = [ "multi-user.target" ]; }; - modules.webserver.vHosts.${fqdn}.locations."/".proxy = "http://localhost:${toString port}"; + modules.webserver.vHosts.${fqdn}.locations."/".proxy = "http://127.0.0.1:${toString port}"; fileSystems."${immich_data_dir}" = { device = "//u407959.your-storagebox.de/backup/immich"; diff --git a/hosts/freun.dev/services/invidious.nix b/hosts/freun.dev/services/invidious.nix index fd878f8..e9f80d1 100644 --- a/hosts/freun.dev/services/invidious.nix +++ b/hosts/freun.dev/services/invidious.nix @@ -19,5 +19,5 @@ in }; }; - modules.webserver.vHosts.${fqdn}.locations."/".proxy = "http://localhost:${toString port}"; + modules.webserver.vHosts.${fqdn}.locations."/".proxy = "http://127.0.0.1:${toString port}"; } diff --git a/hosts/freun.dev/services/owncast.nix b/hosts/freun.dev/services/owncast.nix index 5a460f3..73b7373 100644 --- a/hosts/freun.dev/services/owncast.nix +++ b/hosts/freun.dev/services/owncast.nix @@ -10,5 +10,5 @@ in inherit port; }; - modules.webserver.vHosts.${fqdn}.locations."/".proxy = "http://localhost:${toString port}"; + modules.webserver.vHosts.${fqdn}.locations."/".proxy = "http://127.0.0.1:${toString port}"; } diff --git a/hosts/freun.dev/services/snips.nix b/hosts/freun.dev/services/snips.nix index a3398ed..328a029 100644 --- a/hosts/freun.dev/services/snips.nix +++ b/hosts/freun.dev/services/snips.nix @@ -38,7 +38,7 @@ in }; }; - modules.webserver.vHosts.${fqdn}.locations."/".proxy = "http://localhost:${toString port}"; + modules.webserver.vHosts.${fqdn}.locations."/".proxy = "http://127.0.0.1:${toString port}"; networking.firewall.allowedTCPPorts = [ sshPort ]; } diff --git a/hosts/freun.dev/services/syncthing.nix b/hosts/freun.dev/services/syncthing.nix index e8071b8..af7ecf9 100644 --- a/hosts/freun.dev/services/syncthing.nix +++ b/hosts/freun.dev/services/syncthing.nix @@ -14,7 +14,7 @@ in }; modules.webserver.vHosts.${fqdn}.locations."/" = { - proxy = "http://localhost:${toString port}"; + proxy = "http://127.0.0.1:${toString port}"; extraConfig = '' proxy_set_header Host $host; ''; diff --git a/hosts/freun.dev/services/vaultwarden.nix b/hosts/freun.dev/services/vaultwarden.nix index 6157622..e53fb30 100644 --- a/hosts/freun.dev/services/vaultwarden.nix +++ b/hosts/freun.dev/services/vaultwarden.nix @@ -27,8 +27,8 @@ in }; modules.webserver.vHosts.${fqdn}.locations = { - "/".proxy = "http://localhost:8000"; - "/notifications/hub".proxy = "http://localhost:3012"; + "/".proxy = "http://127.0.0.1:8000"; + "/notifications/hub".proxy = "http://127.0.0.1:3012"; }; services.postgresql = { diff --git a/hosts/freun.dev/services/workout-tracker.nix b/hosts/freun.dev/services/workout-tracker.nix index f57f068..f465f8e 100644 --- a/hosts/freun.dev/services/workout-tracker.nix +++ b/hosts/freun.dev/services/workout-tracker.nix @@ -31,5 +31,5 @@ in }; }; - modules.webserver.vHosts.${fqdn}.locations."/".proxy = "http://localhost:${toString port}"; + modules.webserver.vHosts.${fqdn}.locations."/".proxy = "http://127.0.0.1:${toString port}"; }