From f29dacb173233cbe74738edbeaa49ffaa383bf06 Mon Sep 17 00:00:00 2001 From: Astro Date: Sat, 6 Mar 2021 02:33:38 +0100 Subject: [PATCH] matemat: allow auth-less access from local subnets --- hosts/containers/matemat/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hosts/containers/matemat/default.nix b/hosts/containers/matemat/default.nix index 185a9c30..5798fc95 100644 --- a/hosts/containers/matemat/default.nix +++ b/hosts/containers/matemat/default.nix @@ -22,8 +22,14 @@ locations."/" = { proxyPass = "http://localhost:3000"; extraConfig = '' + satisfy any; auth_basic secured; auth_basic_user_file ${pkgs.matemat-auth}; + allow 2a02:8106:208:5200::/56; + allow 2a02:8106:211:e900::/56; + allow 172.22.99.0/24; + allow 172.20.72.0/21; + deny all; ''; }; };