Skip to content
Snippets Groups Projects
Commit bdb048c1 authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Drop args in /streaming (refs #18553).

parent ea5531cb
No related branches found
No related tags found
No related merge requests found
......@@ -56,7 +56,7 @@ server {
}
location /streaming/ {
location ~ \.m3u8$ {
rewrite ^/streaming/(.*)$ /live/$1 break;
rewrite ^/streaming/(.*)$ /live/$1? break;
proxy_pass http://localhost:1935;
add_header Access-Control-Allow-Origin "*";
add_header X-Cache $upstream_cache_status;
......@@ -69,7 +69,7 @@ server {
proxy_cache_valid 200 1s;
}
location ~ \.ts$ {
rewrite ^/streaming/(.*)$ /live/$1 break;
rewrite ^/streaming/(.*)$ /live/$1? break;
proxy_pass http://localhost:1935;
add_header Access-Control-Allow-Origin "*";
add_header X-Cache $upstream_cache_status;
......@@ -81,7 +81,7 @@ server {
proxy_cache_valid 200 10s;
}
# only urls to ts and m3u8 files are allowed, discard any requested path for other urls
rewrite ^/streaming/(.*)$ /live/ break;
rewrite ^/streaming/(.*)$ /live/? break;
proxy_pass http://localhost:1935/live/;
}
location / {
......
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