This commit is contained in:
Ingolf Wagner 2023-11-17 15:13:30 +01:00
parent cae2009826
commit 170ae9b6be
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
3 changed files with 42 additions and 0 deletions

View file

@ -24,6 +24,9 @@ let
"sync.robi" = hosts.robi;
"transmission.robi" = hosts.robi;
"transmission2.robi" = hosts.robi;
"sonarr.robi" = hosts.robi;
"radarr.robi" = hosts.robi;
"tadarr.robi" = hosts.robi;
# pepe
"grafana.pepe" = hosts.pepe;
"loki.pepe" = hosts.pepe;

View file

@ -33,6 +33,7 @@
./media-syncthing.nix
./media-transmission.nix
./media-transmission2.nix
./media-arr.nix
./social-jitsi.nix

View file

@ -0,0 +1,38 @@
{ config, ... }:
{
services.sonarr = {
enable = true;
group = "media";
user = "media";
};
services.radarr = {
enable = true;
group = "media";
user = "media";
};
services.nginx.virtualHosts = {
"radarr.${config.networking.hostName}.private" = {
extraConfig = ''
allow ${config.tinc.private.subnet};
deny all;
'';
locations."/" = {
proxyPass = "http://localhost:7878";
proxyWebsockets = true;
};
};
"sonarr.${config.networking.hostName}.private" = {
extraConfig = ''
allow ${config.tinc.private.subnet};
deny all;
'';
locations."/" = {
proxyPass = "http://localhost:8989";
proxyWebsockets = true;
};
};
};
}