server {
    listen 80;
    server_name localhost;
    root /usr/share/nginx/html;
    index demo.html index.html;

    location / {
        try_files $uri $uri/ /demo.html;
    }

    location ~* \.(jpg|jpeg|png|gif|ico|css|js|svg|woff2?)$ {
        expires 7d;
        add_header Cache-Control "public";
    }
}
