r1: basic auth

This commit is contained in:
2025-01-26 00:54:28 +02:00
parent f908a78486
commit e6221e9dd7
3 changed files with 23 additions and 6 deletions

View File

@@ -26,6 +26,10 @@ in
syncthing-key.file = ../../secrets/fwminex/syncthing/key.pem.age;
syncthing-cert.file = ../../secrets/fwminex/syncthing/cert.pem.age;
frigate.file = ../../secrets/frigate.age;
r1-htpasswd = {
file = ../../secrets/r1-htpasswd.age;
owner = "nginx";
};
ssh8022-server = {
file = ../../secrets/ssh8022.age;
@@ -334,14 +338,13 @@ in
};
};
nginx.defaultHTTPListenPort = 8081;
nginx = {
defaultHTTPListenPort = 8081;
virtualHosts."r1.jakstys.lt".basicAuthFile = config.age.secrets.r1-htpasswd.path;
};
frigate = {
enable = true;
hostname =
let
fqdn = "${config.networking.hostName}.${config.networking.domain}";
in
"${myData.hosts.${fqdn}.jakstIP}";
hostname = "r1.jakstys.lt";
settings = {
detectors = {
#coral = {