events { worker_connections 1024; } http { include mime.types; sendfile on; server { listen 8080; listen [::]:8080; # resolver 127.0.0.11; autoindex off; server_name _; server_tokens off; root /app/; gzip_static on; # what file to server as index index index.html; location / { # First attempt to serve request as file, then # as directory, then fall back to redirecting to index.html try_files $uri $uri/ $uri.html /index.html; } location ~* \.(?:css|js|jpg|svg)$ { expires 30d; add_header Cache-Control "public"; } location ~* \.(?:json)$ { expires 1d; add_header Cache-Control "public"; } } }