From b857d3930751779b2740e6a5d5dca54b737633a3 Mon Sep 17 00:00:00 2001 From: Danilo Reyes Date: Thu, 29 Aug 2024 17:57:49 -0600 Subject: [PATCH] rotehaare flix + updatedns bugfix --- hosts/miniserver/temp-nginx.nix | 1 + modules/scripts/update-dns.nix | 10 ++++++---- modules/servers/jellyfin.nix | 1 + 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/hosts/miniserver/temp-nginx.nix b/hosts/miniserver/temp-nginx.nix index 6dffccb..0dd8d00 100644 --- a/hosts/miniserver/temp-nginx.nix +++ b/hosts/miniserver/temp-nginx.nix @@ -55,6 +55,7 @@ in { forceSSL = true; enableACME = true; http2 = true; + serverAliases = [ "flix.rotehaare.art" ]; extraConfig = '' # use a variable to store the upstream proxy # in this example we are using a hostname which is resolved via DNS diff --git a/modules/scripts/update-dns.nix b/modules/scripts/update-dns.nix index d62c891..80c74c7 100644 --- a/modules/scripts/update-dns.nix +++ b/modules/scripts/update-dns.nix @@ -29,10 +29,12 @@ update-dns = pkgs.writeScriptBin "update-dns" (builtins.readFile ../../scripts/update-dns.sh); in pkgs.writeScriptBin "update-dns" '' - set -a && - source ${config.sops.secrets.dns.path} && - set -a && - ${update-dns}/bin/update-dns; + #!/usr/bin/env nix-shell + #! nix-shell -i bash -p bash curl + set -a + source ${config.sops.secrets.dns.path} + set -a + ${update-dns}/bin/update-dns ''; }; }; diff --git a/modules/servers/jellyfin.nix b/modules/servers/jellyfin.nix index 872b266..043e50e 100644 --- a/modules/servers/jellyfin.nix +++ b/modules/servers/jellyfin.nix @@ -21,6 +21,7 @@ in { forceSSL = true; enableACME = true; http2 = true; + serverAliases = [ "flix.rotehaare.art" ]; extraConfig = '' # use a variable to store the upstream proxy # in this example we are using a hostname which is resolved via DNS