From 49301c4dcb29eb6eface87dc965c5c606ae913af Mon Sep 17 00:00:00 2001 From: Akshay Date: Wed, 10 Apr 2024 14:18:05 +0100 Subject: laurel: enable podgrab --- hosts/laurel/configuration.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/hosts/laurel/configuration.nix b/hosts/laurel/configuration.nix index 74e2948..08679bc 100644 --- a/hosts/laurel/configuration.nix +++ b/hosts/laurel/configuration.nix @@ -100,6 +100,18 @@ }; }; + services.podgrab = { + enable = true; + port = 3434; + }; + services.nginx.virtualHosts."podcast.laurel" = { + listen = [{ port = 80; addr = "0.0.0.0"; }]; + locations."/" = { + proxyPass = "http://127.0.0.1:${builtins.toString config.services.podgrab.port}"; + proxyWebsockets = true; + }; + }; + nix.settings.experimental-features = [ "nix-command" "flakes" ]; # This option defines the first version of NixOS you have installed on this particular machine, -- cgit v1.2.3