|
|
@ -18,6 +18,10 @@ server { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
location ~* \.(mpd|m4s|mp4)$ { |
|
|
|
location ~* \.(mpd|m4s|mp4)$ { |
|
|
|
|
|
|
|
add_header 'Access-Control-Allow-Origin' '*'; |
|
|
|
|
|
|
|
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; |
|
|
|
|
|
|
|
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range'; |
|
|
|
|
|
|
|
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range'; |
|
|
|
# nginx can serve static files faster than node |
|
|
|
# nginx can serve static files faster than node |
|
|
|
# this should improve performance |
|
|
|
# this should improve performance |
|
|
|
root /opt/satyr/site/; |
|
|
|
root /opt/satyr/site/; |
|
|
|