added cors header

keep-around/cdaad1a973c5040a64418b133889866673d6b0d5
Lukas Schulz 2020-12-01 21:25:29 +01:00
parent bc30682b9e
commit cdaad1a973
1 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,7 @@ 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;
@ -18,6 +19,7 @@ in {
'';
};
"/hls" = {
add_header 'Access-Control-Allow-Origin' '*';
proxyPass = "${host-server}$request_uri";
extraConfig = ''
types {