server { listen 80; server_name _; root /usr/share/nginx/html; gzip on; gzip_types text/css application/javascript application/json image/svg+xml; # API, files, and images are served by api.kamidso.com. This host is the SPA only, # so a login cookie is never set on kamidso.com. location / { try_files $uri $uri/ /index.html; } }