RCL Reverse Proxy
Reverse Proxy details
We have implemented a reverse proxy server in order to securely serve local services over the internet.
Install
In the unforunate event we need to reinstall the reverse proxy server, here are the steps to replicate it:
Install Raspberry Pi OS Lite (32bit) to a Sandisk Endurance Pro SD card (longer sd card life)
log in via ssh
run
sudo raspi-config
change the default pi password
expand the filesystem
run
sudo apt update && apt upgrade
run
curl -sSL https://get.docker.com | sh
run
sudo usermod -aG docker pi
run
sudo usermod -aG docker ${USER}
to set the permissions to the current userrun
sudo apt-get install -y libffi-dev libssl-dev
run
sudo apt-get install -y python3 python3-pip
run
sudo systemctl enable docker
to allow docker to start containers on bootrun
nano docker-compose.yml
and paste the following in:
12. follow quick start instructions here: https://nginxproxymanager.com/guide/#quick-setup
13. run sudo nano etc/systemd/system/nginx-reverse-proxy-app.service
paste the following in and save with ctrl+x
-> y
:
14. run systemctl enable nginx-reverse-proxy-app.service
to enable it to run on boot
Last updated