diff options
author | Akshay <[email protected]> | 2024-04-10 14:18:05 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2024-04-10 14:18:05 +0100 |
commit | 49301c4dcb29eb6eface87dc965c5c606ae913af (patch) | |
tree | 3fd3243b593b386cc1c1a449f0919795507dbfed /hosts | |
parent | 8eb045b0b913d19ec4f6ad12f14e2fe03d16fb3c (diff) |
laurel: enable podgrab
Diffstat (limited to 'hosts')
-rw-r--r-- | hosts/laurel/configuration.nix | 12 |
1 files changed, 12 insertions, 0 deletions
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 @@ | |||
100 | }; | 100 | }; |
101 | }; | 101 | }; |
102 | 102 | ||
103 | services.podgrab = { | ||
104 | enable = true; | ||
105 | port = 3434; | ||
106 | }; | ||
107 | services.nginx.virtualHosts."podcast.laurel" = { | ||
108 | listen = [{ port = 80; addr = "0.0.0.0"; }]; | ||
109 | locations."/" = { | ||
110 | proxyPass = "http://127.0.0.1:${builtins.toString config.services.podgrab.port}"; | ||
111 | proxyWebsockets = true; | ||
112 | }; | ||
113 | }; | ||
114 | |||
103 | nix.settings.experimental-features = [ "nix-command" "flakes" ]; | 115 | nix.settings.experimental-features = [ "nix-command" "flakes" ]; |
104 | 116 | ||
105 | # This option defines the first version of NixOS you have installed on this particular machine, | 117 | # This option defines the first version of NixOS you have installed on this particular machine, |