frigate: basic auth only from non-localhost

This commit is contained in:
Motiejus Jakštys 2025-01-26 22:57:29 +02:00
parent ffbb150434
commit d0bb3554db

View File

@ -356,7 +356,14 @@ in
defaultSSLListenPort = 8443;
recommendedTlsSettings = true;
virtualHosts."r1.jakstys.lt" = {
basicAuthFile = config.age.secrets.r1-htpasswd.path;
extraConfig = ''
satisfy any;
allow 127.0.0.1;
allow ::1;
deny all;
auth_basic secured;
auth_basic_user_file ${config.age.secrets.r1-htpasswd.path};
'';
addSSL = true;
sslCertificate = "/run/credentials/nginx.service/r1.jakstys.lt-cert.pem";