Skip to content

ctrlzlab/nginx-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ NGINX + Go Backend Demo

This project demonstrates a simple web application where:

  • A Go-based backend server serves region-specific APIs
  • An NGINX server acts as a reverse proxy, forwarding requests based on URL parameters (e.g., /eu/, /us/)

Both services are containerized using Docker and managed via Docker Compose.

πŸ§ͺ Run the Project

Start the application using Docker Compose:

docker compose up --build

πŸ” Test the Proxy Behavior

Use curl or your browser to test the regional routing:

curl http://localhost:9090/eu/home    # Forwards the request to the Europe backend
curl http://localhost:9090/us/home    # Forwards the request to the USA backend

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published