1
Fork 0
mirror of https://github.com/thegeneralist01/config.git synced 2026-03-10 02:30:29 +01:00

add plex subdomain

This commit is contained in:
TheGeneralist 2026-03-09 17:14:48 +01:00
parent 3f7345d214
commit 8659b0fba3
Signed by: thegeneralist01
SSH key fingerprint: SHA256:pp9qddbCNmVNoSjevdvQvM5z0DHN7LTa8qBMbcMq/R4
4 changed files with 4 additions and 45 deletions

View file

@ -23,10 +23,10 @@ in {
"internal.${domain}" = { "internal.${domain}" = {
group = "acme"; group = "acme";
}; };
"archive.${domain}" = { "plex.${domain}" = {
group = "acme"; group = "acme";
}; };
"crawler.${domain}" = { "archive.${domain}" = {
group = "acme"; group = "acme";
}; };
}; };

View file

@ -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;
'';
};
};
}

View file

@ -9,7 +9,7 @@ let
}; };
in in
{ {
imports = [ ./archivebox.nix ./crawler-site.nix ]; imports = [ ./archivebox.nix ];
services.nginx.virtualHosts.${domain} = ssl // { services.nginx.virtualHosts.${domain} = ssl // {
listen = [ listen = [

View file

@ -1,6 +1,6 @@
{ pkgs, lib, ... }: { pkgs, lib, ... }:
let let
subdomains = [ "internal" "archive" "crawler" "r" "b" "s" "p" "q" "cloud" ]; subdomains = [ "internal" "archive" "plex" ];
mainZoneFile = pkgs.writeText "thegeneralist01.zone" '' mainZoneFile = pkgs.writeText "thegeneralist01.zone" ''
$ORIGIN thegeneralist01.com. $ORIGIN thegeneralist01.com.