From b1d0cbf307a6020b56069ca89782e7e41dbec5e0 Mon Sep 17 00:00:00 2001 From: Lillian-Violet Date: Wed, 3 Jan 2024 23:13:11 +0100 Subject: [PATCH] host radarr and sonarr online --- nixos/package-configs/radarr/configuration.nix | 12 ++++++++++++ nixos/package-configs/sonarr/configuration.nix | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/nixos/package-configs/radarr/configuration.nix b/nixos/package-configs/radarr/configuration.nix index db3c170..98046d4 100644 --- a/nixos/package-configs/radarr/configuration.nix +++ b/nixos/package-configs/radarr/configuration.nix @@ -7,4 +7,16 @@ services.radarr = { enable = true; }; + + services.nginx = { + virtualHosts = { + "radarr.gladtherescake.eu" = { + forceSSL = true; + enableACME = true; + locations."/" = { + proxyPass = "http://localhost:7878"; + }; + }; + }; + }; } diff --git a/nixos/package-configs/sonarr/configuration.nix b/nixos/package-configs/sonarr/configuration.nix index 0397f8f..b7b1f47 100644 --- a/nixos/package-configs/sonarr/configuration.nix +++ b/nixos/package-configs/sonarr/configuration.nix @@ -7,4 +7,16 @@ services.radarr = { enable = true; }; + + services.nginx = { + virtualHosts = { + "radarr.gladtherescake.eu" = { + forceSSL = true; + enableACME = true; + locations."/" = { + proxyPass = "http://localhost:8989"; + }; + }; + }; + }; }