From 62326b6c99422c5aa6a7ecacf1e295584d55c9d9 Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Wed, 8 Dec 2021 17:58:01 +0100 Subject: [PATCH] fixed allow directive for nginx services --- hosts/architect/bazarr.nix | 2 +- hosts/architect/gitea.nix | 2 +- hosts/architect/minio.nix | 2 +- hosts/architect/nzbget.nix | 2 +- hosts/architect/prowlarr.nix | 2 +- hosts/architect/radarr.nix | 2 +- hosts/architect/sonarr.nix | 2 +- hosts/architect/transmission.nix | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/hosts/architect/bazarr.nix b/hosts/architect/bazarr.nix index bcc81a4..8b5155d 100644 --- a/hosts/architect/bazarr.nix +++ b/hosts/architect/bazarr.nix @@ -14,7 +14,7 @@ in { proxyPass = "http://localhost:6767"; extraConfig = '' allow 10.0.0.0/24; - allow ${lib.concatStringsSep " " network.gdevices-wg}; + ${lib.concatMapStrings (x: "allow ${x};") network.gdevices-wg} deny all; ''; }; diff --git a/hosts/architect/gitea.nix b/hosts/architect/gitea.nix index fde88d2..45bc128 100644 --- a/hosts/architect/gitea.nix +++ b/hosts/architect/gitea.nix @@ -22,7 +22,7 @@ in { extraConfig = '' allow 127.0.0.1; allow 10.0.0.0/24; - allow ${lib.concatStringsSep " " network.gdevices-wg}; + ${lib.concatMapStrings (x: "allow ${x};") network.gdevices-wg} allow 10.4.0.0/24; deny all; ''; diff --git a/hosts/architect/minio.nix b/hosts/architect/minio.nix index fe62683..8b2a760 100644 --- a/hosts/architect/minio.nix +++ b/hosts/architect/minio.nix @@ -14,7 +14,7 @@ in { proxyPass = "http://localhost:9000"; extraConfig = '' allow 10.0.0.0/24; - allow ${lib.concatStringsSep " " network.gdevices-wg}; + ${lib.concatMapStrings (x: "allow ${x};") network.gdevices-wg} deny all; ''; }; diff --git a/hosts/architect/nzbget.nix b/hosts/architect/nzbget.nix index e5d692d..57c214f 100644 --- a/hosts/architect/nzbget.nix +++ b/hosts/architect/nzbget.nix @@ -14,7 +14,7 @@ in { proxyPass = "http://localhost:6789"; extraConfig = '' allow 10.0.0.0/24; - allow ${lib.concatStringsSep " " network.gdevices-wg}; + ${lib.concatMapStrings (x: "allow ${x};") network.gdevices-wg} deny all; ''; }; diff --git a/hosts/architect/prowlarr.nix b/hosts/architect/prowlarr.nix index e4b08e2..9120239 100644 --- a/hosts/architect/prowlarr.nix +++ b/hosts/architect/prowlarr.nix @@ -14,7 +14,7 @@ in { proxyPass = "http://localhost:9696"; extraConfig = '' allow 10.0.0.0/24; - allow ${lib.concatStringsSep " " network.gdevices-wg}; + ${lib.concatMapStrings (x: "allow ${x};") network.gdevices-wg} deny all; ''; }; diff --git a/hosts/architect/radarr.nix b/hosts/architect/radarr.nix index 5dad035..e9d56d8 100644 --- a/hosts/architect/radarr.nix +++ b/hosts/architect/radarr.nix @@ -14,7 +14,7 @@ in { proxyPass = "http://localhost:7878"; extraConfig = '' allow 10.0.0.0/24; - allow ${lib.concatStringsSep " " network.gdevices-wg}; + ${lib.concatMapStrings (x: "allow ${x};") network.gdevices-wg} deny all; ''; }; diff --git a/hosts/architect/sonarr.nix b/hosts/architect/sonarr.nix index 8b0735e..679b171 100644 --- a/hosts/architect/sonarr.nix +++ b/hosts/architect/sonarr.nix @@ -14,7 +14,7 @@ in { proxyPass = "http://localhost:8989"; extraConfig = '' allow 10.0.0.0/24; - allow ${lib.concatStringsSep " " network.gdevices-wg}; + ${lib.concatMapStrings (x: "allow ${x};") network.gdevices-wg} deny all; ''; }; diff --git a/hosts/architect/transmission.nix b/hosts/architect/transmission.nix index 934fcb4..3444c90 100644 --- a/hosts/architect/transmission.nix +++ b/hosts/architect/transmission.nix @@ -27,7 +27,7 @@ in { proxyPass = "http://localhost:9091"; extraConfig = '' allow 10.0.0.0/24; - allow ${lib.concatStringsSep " " network.gdevices-wg}; + ${lib.concatMapStrings (x: "allow ${x};") network.gdevices-wg} deny all; ''; };