matemat: allow auth-less access from local subnets
This commit is contained in:
parent
8347def09b
commit
f29dacb173
|
@ -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;
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue