diff --git a/modules/torrents.nix b/modules/torrents.nix index b51b134..acc966a 100644 --- a/modules/torrents.nix +++ b/modules/torrents.nix @@ -37,8 +37,8 @@ hostPath = "/nix/var/data/radarr"; isReadOnly = false; }; - "/nix/var/data/headphones" = { - hostPath = "/nix/var/data/headphones"; + "/nix/var/data/lidarr" = { + hostPath = "/nix/var/data/lidarr"; isReadOnly = false; }; "/nix/var/data/transmission" = { @@ -168,16 +168,14 @@ group = config.users.groups.www-data.name; dataDir = "/nix/var/data/radarr"; }; - services.headphones = { + services.lidarr = { enable = true; + openFirewall = true; user = config.users.users.www-data.name; group = config.users.groups.www-data.name; - dataDir = "/nix/var/data/headphones"; - host = "192.168.1.2"; + dataDir = "/nix/var/data/lidarr"; }; - networking.firewall.allowedTCPPorts = [ config.services.headphones.port ]; - system.stateVersion = "21.11"; }; }; @@ -213,13 +211,10 @@ enableACME = true; locations."/" = { proxyPass = "http://192.168.1.2:7878"; }; }; - "headphones.${config.networking.domain}" = { + "lidarr.${config.networking.domain}" = { forceSSL = true; enableACME = true; - locations."/" = { - proxyPass = - "http://192.168.1.2:${toString config.services.headphones.port}"; - }; + locations."/" = { proxyPass = "http://192.168.1.2:8686"; }; }; }; } diff --git a/terraform/dns.tf b/terraform/dns.tf index f7d7e23..6ab52fd 100644 --- a/terraform/dns.tf +++ b/terraform/dns.tf @@ -144,9 +144,9 @@ resource "hetznerdns_record" "radarr_a" { ttl = 600 } -resource "hetznerdns_record" "headphones_a" { +resource "hetznerdns_record" "lidarr_a" { zone_id = data.hetznerdns_zone.banditlair_zone.id - name = "headphones" + name = "lidarr" value = local.storage1_ip type = "A" ttl = 600