diff --git a/hosts/thegeneralist-central/acme/default.nix b/hosts/thegeneralist-central/acme/default.nix index 461b078..0df9b07 100644 --- a/hosts/thegeneralist-central/acme/default.nix +++ b/hosts/thegeneralist-central/acme/default.nix @@ -23,10 +23,10 @@ in { "internal.${domain}" = { group = "acme"; }; - "archive.${domain}" = { + "plex.${domain}" = { group = "acme"; }; - "crawler.${domain}" = { + "archive.${domain}" = { group = "acme"; }; }; diff --git a/hosts/thegeneralist-central/archive/crawler-site.nix b/hosts/thegeneralist-central/archive/crawler-site.nix deleted file mode 100644 index 45da58d..0000000 --- a/hosts/thegeneralist-central/archive/crawler-site.nix +++ /dev/null @@ -1,41 +0,0 @@ -let - acmeDomain = "thegeneralist01.com"; - domain = "crawler.${acmeDomain}"; - - ssl = { - forceSSL = true; - quic = true; - useACMEHost = domain; - }; -in -{ - services.nginx.virtualHosts.${domain} = ssl // { - listen = [ - { - addr = "100.86.129.23"; - port = 443; - ssl = true; - } - { - addr = "100.86.129.23"; - port = 80; - } - ]; - - locations."/" = { - proxyPass = "http://127.0.0.1:8001"; - recommendedProxySettings = true; - extraConfig = '' - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection $connection_upgrade; - - # tell nginx not to buffer the response. send it as it comes. - proxy_buffering off; - - # give jellyfin plenty of time to transcode - proxy_read_timeout 3600s; - proxy_send_timeout 3600s; - ''; - }; - }; -} diff --git a/hosts/thegeneralist-central/archive/default.nix b/hosts/thegeneralist-central/archive/default.nix index 0e8594a..d27e86d 100644 --- a/hosts/thegeneralist-central/archive/default.nix +++ b/hosts/thegeneralist-central/archive/default.nix @@ -9,7 +9,7 @@ let }; in { - imports = [ ./archivebox.nix ./crawler-site.nix ]; + imports = [ ./archivebox.nix ]; services.nginx.virtualHosts.${domain} = ssl // { listen = [ diff --git a/hosts/thegeneralist-central/dns.nix b/hosts/thegeneralist-central/dns.nix index 73c537e..c7a0952 100644 --- a/hosts/thegeneralist-central/dns.nix +++ b/hosts/thegeneralist-central/dns.nix @@ -1,6 +1,6 @@ { pkgs, lib, ... }: let - subdomains = [ "internal" "archive" "crawler" "r" "b" "s" "p" "q" "cloud" ]; + subdomains = [ "internal" "archive" "plex" ]; mainZoneFile = pkgs.writeText "thegeneralist01.zone" '' $ORIGIN thegeneralist01.com.