How asliddintuxtasinov/nginx-reverse-proxy-example works
This repository is a Dockerized Nginx reverse proxy. Requests enter Nginx and are routed by hostname to an API or either frontend; the default host is rejected. The README also documents HTTPS, API admin-IP restrictions, CORS, and mounted static/media paths. No source excerpts were provided, so relationships below are limited to mappings explicitly described in the README.
Main entry points: nginx.conf Nginx proxy · api.conf API routing · example-front1.conf Frontend one · example-front2.conf Frontend two
Components 10
Other components
- HTTP clients
- Nginx proxy
nginx/nginx.conf - Default host
nginx/conf.d/00-default.conf - API routing
nginx/conf.d/api.conf - Frontend one
nginx/conf.d/example-front1.conf - Frontend two
nginx/conf.d/example-front2.conf - Backend service
- Frontend service one
- Frontend service two
- Static and media files
docker-compose.yml
Connections 9
- HTTP clients → Nginx proxy: send requests
README.md - Nginx proxy → Default host: reject unknown hosts
README.md - Nginx proxy → API routing: route API host
README.md - Nginx proxy → Frontend one: route frontend host
README.md - Nginx proxy → Frontend two: route frontend host
README.md - API routing → Backend service: proxy requests
README.md - Frontend one → Frontend service one: proxy requests
README.md - Frontend two → Frontend service two: proxy requests
README.md - Nginx proxy → Static and media files: serve mounted files
README.md