This repository contains nginx configuration that is optimized for serving static files.
This configuration is optimized for:
- A container/VM/dedicated server that is behind a load balancer (proxy protocol is required).
- SSL is handled by another web server.
- A web application that only contains static files (e.g. html, css, js, and etc) that can be a SPA (fallback is handled).
Copy your entire app (everything that should be served on the web including css, js, and etc) in to app/wwwroot
.
To use this configuration, please mount the folders below:
app
to/app
./etc/nginx
to/etc/nginx
.