matemat: add basic auth back

This commit is contained in:
Sandro - 2023-07-05 23:28:37 +02:00
parent ea784ab019
commit 8888888871
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 4 additions and 1 deletions

View File

@ -16,7 +16,10 @@
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:3000";
extraConfig = libC.hqNetworkOnly;
extraConfig = libC.hqNetworkOnly + ''
auth_basic secured;
auth_basic_user_file ${config.sops.secrets."nginx/basic-auth".path};
'';
};
};
};