Skip to content

Nginx proxy to work on a fake domain in a homelab

Notifications You must be signed in to change notification settings

galamome/nginx_proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Using Nginx as a Reverse Proxy for Containerized Node.js Microservices

Architechture for this mockup

Inspired from:

Following improvements:

  • templated (the variable names come from .env file).
  • upgrade to version 18 of NodeJs
  • version of base Docker images allows to build (no latest)

TLS

Generate certificate for the domain:

# Import the environment variables
# Inspired from https://medium.com/@TomVance/local-domains-with-https-469036775818
source ./nginx/.env
echo "Will generate a certificate for: '${NGINX_SERVER_NAME}'"
cd nginx/certs
mkcert "*.${NGINX_SERVER_NAME}"

About

Nginx proxy to work on a fake domain in a homelab

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published