Skip to content

guessi/nginx-proxy-golang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

nginx-proxy-golang

NGINX reverse proxy with Golang backend service that demonstrate what would be inclued in request headers.

⚠️ DISCLAIMER ⚠️

This is for demonstration purposes only. Do not use in production environments.

Quick Start

Option 1: Docker Compose (Recommended for beginners)

  1. Navigate to the docker-compose directory:
cd docker-compose
  1. Start the services:
docker-compose up
  1. Open the page with your browser: http://localhost:8080

You should see your request headers displayed on the page.

Option 2: Kubernetes

  1. Apply the Kubernetes manifests:
kubectl apply -f kubernetes/
  1. Forward the port to access locally:
kubectl port-forward service/nginx 8080:80
  1. Open the page with your browser: http://localhost:8080

You should see your request headers displayed on the page.

About

minimal setup for golang web app with nginx proxy (for demo only)

Topics

Resources

Stars

Watchers

Forks

Languages