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";
extraConfig = ''
allow 10.0.0.0/24;
allow ${lib.concatStringsSep " " network.gdevices-wg};
${lib.concatMapStrings (x: "allow ${x};") network.gdevices-wg}
deny all;
'';
};

View File

@ -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;
'';

View File

@ -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;
'';
};

View File

@ -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;
'';
};

View File

@ -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;
'';
};

View File

@ -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;
'';
};

View File

@ -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;
'';
};

View File

@ -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;
'';
};