events {} http { include mime.types; default_type application/octet-stream; server { listen 80; server_name localhost; location /hls/ { alias /var/www/html/hls/; types { application/vnd.apple.mpegurl m3u8; video/mp2t ts; } add_header Cache-Control no-cache; add_header Access-Control-Allow-Origin *; add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS'; add_header Access-Control-Allow-Headers '*'; } location / { root /var/www/html; index index.html; } } }