Skip to content

nginx container used as the localtunnel load balancer on raspberry pi

Notifications You must be signed in to change notification settings

gilhardl/localtunnel-nginx-pi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nginx for localtunnel

Simple nginx config w/ssl for localtunnel. Forked from https://github.com/localtunnel/nginx to work on a Raspberry PI (Docker platform linux/arm/v7).

SSL certificate and key must be called server.crt and server.key and will be volume mounted into the container at runtime from ~/ssl.

Generate SSL certificate and key

openssl req -x509 -nodes -days 365 -newkey rsa:4096 -sha256 -keyout server.key -out server.crt

Build Docker image

docker build . -t localtunnel-nginx

Run Docker container

docker run -d --name localtunnel-nginx --restart always -p 443:443 -p 80:80 -v $HOME/ssl/:/etc/nginx/ssl/ --net host localtunnel-nginx

About

nginx container used as the localtunnel load balancer on raspberry pi

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 100.0%