server {
    listen 8080;
    server_name localhost;

    root /usr/share/nginx/html;

    # Enable CORS for test requests
    add_header 'Access-Control-Allow-Origin' '*' always;
    add_header 'Access-Control-Allow-Methods' 'GET, HEAD, OPTIONS' always;

    location / {
        try_files $uri $uri/ =404;
    }
}
