root /var/www/cam; index index.html;
location /hls/ { types { application/vnd.apple.mpegurl m3u8; video/mp2t ts; } alias /var/www/cam/hls/; add_header Cache-Control no-cache; }
location /snapshot.jpg { alias /var/www/cam/snapshots/latest.jpg; add_header Cache-Control no-cache; }