repositioned second CORS header

This commit is contained in:
Lukas Schulz 2020-12-01 21:33:13 +01:00
parent fe01c721a6
commit 77ed77aa93

View file

@ -10,12 +10,13 @@ in {
virtualHosts."${config.networking.hostName}.live.hacc.media" = {
locations = {
"~* \\.(m3u8)$" = {
add_header 'Access-Control-Allow-Origin' '*';
proxyPass = "${host-server}$request_uri";
extraConfig = ''
#proxy_cache = off;
expires 2s;
auth_basic off;
add_header 'Access-Control-Allow-Origin' '*';
'';
};
"/hls" = {
@ -30,7 +31,7 @@ in {
proxy_ignore_headers Cache-Control;
proxy_cache_valid any 30m;
auth_basic off;
add_header \'Access-Control-Allow-Origin\' \'*\';
add_header 'Access-Control-Allow-Origin' '*';
'';
};
};