diff --git a/hosts/fwminex/configuration.nix b/hosts/fwminex/configuration.nix index ee1e69e..866a565 100644 --- a/hosts/fwminex/configuration.nix +++ b/hosts/fwminex/configuration.nix @@ -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 = { diff --git a/secrets.nix b/secrets.nix index 93cc6ce..11ed1e1 100644 --- a/secrets.nix +++ b/secrets.nix @@ -61,6 +61,7 @@ in "secrets/vaultwarden/secrets.env.age" "secrets/letsencrypt/account.key.age" "secrets/frigate.age" + "secrets/r1-htpasswd.age" "secrets/synapse/jakstys_lt_signing_key.age" "secrets/synapse/registration_shared_secret.age" diff --git a/secrets/r1-htpasswd.age b/secrets/r1-htpasswd.age new file mode 100644 index 0000000..b4de6d0 --- /dev/null +++ b/secrets/r1-htpasswd.age @@ -0,0 +1,13 @@ +age-encryption.org/v1 +-> ssh-ed25519 fqSa6A gAyHn3TCUHeWNQ2GrAB/HP9A2fngUYq5xRyOus749w8 +lJyA2wG7QLST+8W2kzrSJeI7FNKGy26dhm53SyFJ5QE +-> X25519 fApAhKsjwQCVpHrsqkSLF89E0LRt1FQoTNBC+nn2D0Y +hB1Hxgpja3P3KvmwdIRXBk33egdDBclNfv6DT7PKtxw +-> X25519 NxxoMcNAeE0q6UJ12NmhWAlpEdksDI9dUVC1oG9EWSo +bn4gmYGzWMQ2UVdYUhjFAZs3voremlZfnol+B7b66Us +-> piv-p256 +y2G/w ArI7pLmDgi1uVV6Nsw5jDFGxvU169OTc1Jeqfwbfz1R1 +dB8UGSF6haHvbStyqpKwgphOEnW1Xg4qvwiaHWiAjB0 +-> piv-p256 jNqd3A AlxN+Mq8PhnP1etx9I6JllGFwSAB3UQXOfFKy5Oq73w+ +nLIfdVnbqHSqzNYkHnYzQLXkiLbDssPbks8u0Og5+pI +--- 1ub942pMBPMExIhaNR+ZsDBxz27Thc1D6yH8tQwhIqs +MJ;=N,󩬛wsȯJd2t`@ջ$i@V;f-D1 2n'!ۿZ;$~cT{Bz%ʛ|]uJ._!.J,k!7kU8?{mE3~F%X5 \ No newline at end of file