fixed allow directive for nginx services

This commit is contained in:
Giulio De Pasquale 2021-12-08 17:58:01 +01:00
parent 163d5f6db2
commit 62326b6c99
8 changed files with 8 additions and 8 deletions

View File

@ -14,7 +14,7 @@ in {
proxyPass = "http://localhost:6767"; proxyPass = "http://localhost:6767";
extraConfig = '' extraConfig = ''
allow 10.0.0.0/24; allow 10.0.0.0/24;
allow ${lib.concatStringsSep " " network.gdevices-wg}; ${lib.concatMapStrings (x: "allow ${x};") network.gdevices-wg}
deny all; deny all;
''; '';
}; };

View File

@ -22,7 +22,7 @@ in {
extraConfig = '' extraConfig = ''
allow 127.0.0.1; allow 127.0.0.1;
allow 10.0.0.0/24; 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; allow 10.4.0.0/24;
deny all; deny all;
''; '';

View File

@ -14,7 +14,7 @@ in {
proxyPass = "http://localhost:9000"; proxyPass = "http://localhost:9000";
extraConfig = '' extraConfig = ''
allow 10.0.0.0/24; allow 10.0.0.0/24;
allow ${lib.concatStringsSep " " network.gdevices-wg}; ${lib.concatMapStrings (x: "allow ${x};") network.gdevices-wg}
deny all; deny all;
''; '';
}; };

View File

@ -14,7 +14,7 @@ in {
proxyPass = "http://localhost:6789"; proxyPass = "http://localhost:6789";
extraConfig = '' extraConfig = ''
allow 10.0.0.0/24; allow 10.0.0.0/24;
allow ${lib.concatStringsSep " " network.gdevices-wg}; ${lib.concatMapStrings (x: "allow ${x};") network.gdevices-wg}
deny all; deny all;
''; '';
}; };

View File

@ -14,7 +14,7 @@ in {
proxyPass = "http://localhost:9696"; proxyPass = "http://localhost:9696";
extraConfig = '' extraConfig = ''
allow 10.0.0.0/24; allow 10.0.0.0/24;
allow ${lib.concatStringsSep " " network.gdevices-wg}; ${lib.concatMapStrings (x: "allow ${x};") network.gdevices-wg}
deny all; deny all;
''; '';
}; };

View File

@ -14,7 +14,7 @@ in {
proxyPass = "http://localhost:7878"; proxyPass = "http://localhost:7878";
extraConfig = '' extraConfig = ''
allow 10.0.0.0/24; allow 10.0.0.0/24;
allow ${lib.concatStringsSep " " network.gdevices-wg}; ${lib.concatMapStrings (x: "allow ${x};") network.gdevices-wg}
deny all; deny all;
''; '';
}; };

View File

@ -14,7 +14,7 @@ in {
proxyPass = "http://localhost:8989"; proxyPass = "http://localhost:8989";
extraConfig = '' extraConfig = ''
allow 10.0.0.0/24; allow 10.0.0.0/24;
allow ${lib.concatStringsSep " " network.gdevices-wg}; ${lib.concatMapStrings (x: "allow ${x};") network.gdevices-wg}
deny all; deny all;
''; '';
}; };

View File

@ -27,7 +27,7 @@ in {
proxyPass = "http://localhost:9091"; proxyPass = "http://localhost:9091";
extraConfig = '' extraConfig = ''
allow 10.0.0.0/24; allow 10.0.0.0/24;
allow ${lib.concatStringsSep " " network.gdevices-wg}; ${lib.concatMapStrings (x: "allow ${x};") network.gdevices-wg}
deny all; deny all;
''; '';
}; };