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
.
openssl req -x509 -nodes -days 365 -newkey rsa:4096 -sha256 -keyout server.key -out server.crt
docker build . -t localtunnel-nginx
docker run -d --name localtunnel-nginx --restart always -p 443:443 -p 80:80 -v $HOME/ssl/:/etc/nginx/ssl/ --net host localtunnel-nginx