From 4d9883ee546b6c54db70babf3273ca0683753671 Mon Sep 17 00:00:00 2001 From: zuckerberg <5-zuckerberg@users.noreply.git.neet.dev> Date: Sun, 20 Jun 2021 16:03:45 -0400 Subject: [PATCH] allow CORS for icecast --- common/server/icecast.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/server/icecast.nix b/common/server/icecast.nix index 0921877..a324142 100644 --- a/common/server/icecast.nix +++ b/common/server/icecast.nix @@ -53,6 +53,9 @@ in { forceSSL = true; locations."/${cfg.mount}" = { proxyPass = "http://localhost:${toString cfg.listen.port}/${cfg.mount}"; + extraConfig = '' + add_header Access-Control-Allow-Origin *; + ''; }; }; };