added cors header
This commit is contained in:
parent
bc30682b9e
commit
cdaad1a973
1 changed files with 2 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue