server {
    listen 80;
    server_name _;

    root /usr/share/nginx/html;
    autoindex on;

    # RSS feed
    location ~ \.xml$ {
        add_header Content-Type "application/rss+xml; charset=utf-8";
        add_header Access-Control-Allow-Origin *;
    }

    # Video files
    location ~ \.mp4$ {
        add_header Content-Type "video/mp4";
        add_header Access-Control-Allow-Origin *;
        add_header Accept-Ranges bytes;
    }

    # Audio files (legacy)
    location ~ \.mp3$ {
        add_header Content-Type "audio/mpeg";
        add_header Access-Control-Allow-Origin *;
        add_header Accept-Ranges bytes;
    }

    location / {
        add_header Access-Control-Allow-Origin *;
    }
}
