From 99856cfda8af4c9466927d6ca8ea8ddf645b5991 Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Tue, 3 Apr 2018 23:09:51 +0200 Subject: [PATCH] Ajout service Radarr --- hardware-configuration.nix | 4 ++++ services.nix | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/hardware-configuration.nix b/hardware-configuration.nix index 2c95ea3..6299ce3 100644 --- a/hardware-configuration.nix +++ b/hardware-configuration.nix @@ -72,6 +72,10 @@ fsType = "zfs"; }; + fileSystems."/var/lib/radarr" = + { device = "loutrepool/var/radarr"; + fsType = "zfs"; + }; swapDevices = [ ]; diff --git a/services.nix b/services.nix index 5608e8c..ec248dc 100644 --- a/services.nix +++ b/services.nix @@ -18,9 +18,11 @@ acl letsencrypt-acl path_beg /.well-known/acme-challenge/ acl grafana-acl hdr(host) -i grafana.tars.nyanlout.re acl emby-acl hdr(host) -i emby.tars.nyanlout.re + acl radarr-acl hdr(host) -i radarr.tars.nyanlout.re use_backend letsencrypt-backend if letsencrypt-acl use_backend grafana-backend if grafana-acl use_backend emby-backend if emby-acl + use_backend radarr-backend if radarr-acl backend letsencrypt-backend mode http server letsencrypt 127.0.0.1:54321 @@ -30,6 +32,9 @@ backend emby-backend mode http server emby 127.0.0.1:8096 check + backend radarr-backend + mode http + server radarr 127.0.0.1:7878 check ''; services.nginx.enable = true; @@ -111,6 +116,8 @@ mountdPort = 4002; }; + services.radarr.enable = true; + networking.firewall.allowedTCPPorts = [ 80 443 # HAProxy 3000 # Grafana