Skip to content
Snippets Groups Projects
Commit bd1e57b1 authored by Florent Thiery's avatar Florent Thiery
Browse files

remove Access-Control-Allow-Origin header (already added by wowza, was present...

remove Access-Control-Allow-Origin header (already added by wowza, was present twice), hide cache status, remove expires because it messes up with the mediacaches
parent d8d49559
No related branches found
No related tags found
No related merge requests found
...@@ -58,9 +58,6 @@ server { ...@@ -58,9 +58,6 @@ server {
location ~ \.m3u8$ { location ~ \.m3u8$ {
rewrite ^/streaming/(.*)$ /live/$1? break; rewrite ^/streaming/(.*)$ /live/$1? break;
proxy_pass http://localhost:1935; proxy_pass http://localhost:1935;
add_header Access-Control-Allow-Origin "*";
add_header X-Cache $upstream_cache_status;
expires -1;
proxy_cache livecache; proxy_cache livecache;
proxy_cache_key $scheme$proxy_host$uri; proxy_cache_key $scheme$proxy_host$uri;
proxy_cache_lock on; proxy_cache_lock on;
...@@ -71,9 +68,6 @@ server { ...@@ -71,9 +68,6 @@ server {
location ~ \.ts$ { location ~ \.ts$ {
rewrite ^/streaming/(.*)$ /live/$1? break; rewrite ^/streaming/(.*)$ /live/$1? break;
proxy_pass http://localhost:1935; proxy_pass http://localhost:1935;
add_header Access-Control-Allow-Origin "*";
add_header X-Cache $upstream_cache_status;
expires 2s;
proxy_cache livecache; proxy_cache livecache;
proxy_cache_key $scheme$proxy_host$uri; proxy_cache_key $scheme$proxy_host$uri;
proxy_cache_lock on; proxy_cache_lock on;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment