allow CORS for icecast

This commit is contained in:
zuckerberg 2021-06-20 16:03:45 -04:00
parent 2ac6f75745
commit 4d9883ee54

View File

@ -53,6 +53,9 @@ in {
forceSSL = true; forceSSL = true;
locations."/${cfg.mount}" = { locations."/${cfg.mount}" = {
proxyPass = "http://localhost:${toString cfg.listen.port}/${cfg.mount}"; proxyPass = "http://localhost:${toString cfg.listen.port}/${cfg.mount}";
extraConfig = ''
add_header Access-Control-Allow-Origin *;
'';
}; };
}; };
}; };