From 75031567bdd8071a6248c9c0144723fd174a1b87 Mon Sep 17 00:00:00 2001 From: Zuckerberg Date: Fri, 2 Feb 2024 20:23:40 -0700 Subject: [PATCH] Two radio endpoints --- machines/ponyo/default.nix | 35 +++++++++++++++++++++++++---------- 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/machines/ponyo/default.nix b/machines/ponyo/default.nix index 385614a..f8bd537 100644 --- a/machines/ponyo/default.nix +++ b/machines/ponyo/default.nix @@ -63,17 +63,32 @@ }; }; pia.wireguard.badPortForwardPorts = [ ]; - services.nginx.virtualHosts."radio.runyan.org" = { - enableACME = true; - forceSSL = true; - locations = { - "/stream.mp3" = { - proxyPass = "http://vpn.containers:8001/stream.mp3"; - extraConfig = '' - add_header Access-Control-Allow-Origin *; - ''; + services.nginx.virtualHosts = { + "radio.runyan.org" = { + enableACME = true; + forceSSL = true; + locations = { + "/stream.mp3" = { + proxyPass = "http://vpn.containers:8001/stream.mp3"; + extraConfig = '' + add_header Access-Control-Allow-Origin *; + ''; + }; + "/".root = config.inputs.radio-web; + }; + }; + "radio.neet.space" = { + enableACME = true; + forceSSL = true; + locations = { + "/stream.mp3" = { + proxyPass = "http://vpn.containers:8001/stream.mp3"; + extraConfig = '' + add_header Access-Control-Allow-Origin *; + ''; + }; + "/".root = config.inputs.radio-web; }; - "/".root = config.inputs.radio-web; }; };