Replace Headphones with Lidarr

This commit is contained in:
Paul-Henri Froidmont 2023-09-08 07:03:59 +02:00
parent 856c9456bd
commit f020dae8e2
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
2 changed files with 9 additions and 14 deletions

View file

@ -37,8 +37,8 @@
hostPath = "/nix/var/data/radarr"; hostPath = "/nix/var/data/radarr";
isReadOnly = false; isReadOnly = false;
}; };
"/nix/var/data/headphones" = { "/nix/var/data/lidarr" = {
hostPath = "/nix/var/data/headphones"; hostPath = "/nix/var/data/lidarr";
isReadOnly = false; isReadOnly = false;
}; };
"/nix/var/data/transmission" = { "/nix/var/data/transmission" = {
@ -168,16 +168,14 @@
group = config.users.groups.www-data.name; group = config.users.groups.www-data.name;
dataDir = "/nix/var/data/radarr"; dataDir = "/nix/var/data/radarr";
}; };
services.headphones = { services.lidarr = {
enable = true; enable = true;
openFirewall = true;
user = config.users.users.www-data.name; user = config.users.users.www-data.name;
group = config.users.groups.www-data.name; group = config.users.groups.www-data.name;
dataDir = "/nix/var/data/headphones"; dataDir = "/nix/var/data/lidarr";
host = "192.168.1.2";
}; };
networking.firewall.allowedTCPPorts = [ config.services.headphones.port ];
system.stateVersion = "21.11"; system.stateVersion = "21.11";
}; };
}; };
@ -213,13 +211,10 @@
enableACME = true; enableACME = true;
locations."/" = { proxyPass = "http://192.168.1.2:7878"; }; locations."/" = { proxyPass = "http://192.168.1.2:7878"; };
}; };
"headphones.${config.networking.domain}" = { "lidarr.${config.networking.domain}" = {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
locations."/" = { locations."/" = { proxyPass = "http://192.168.1.2:8686"; };
proxyPass =
"http://192.168.1.2:${toString config.services.headphones.port}";
};
}; };
}; };
} }

View file

@ -144,9 +144,9 @@ resource "hetznerdns_record" "radarr_a" {
ttl = 600 ttl = 600
} }
resource "hetznerdns_record" "headphones_a" { resource "hetznerdns_record" "lidarr_a" {
zone_id = data.hetznerdns_zone.banditlair_zone.id zone_id = data.hetznerdns_zone.banditlair_zone.id
name = "headphones" name = "lidarr"
value = local.storage1_ip value = local.storage1_ip
type = "A" type = "A"
ttl = 600 ttl = 600