- Setup an REHL server with SSH key access for
root. - Download the repository on your local machine:
git clone https://github.com/alefunion/reverseproxy
- Run the
deploy.shscript:./deploy.sh
- When prompted, type the remote address (IP or hostname) of the server.
- When prompted, write the
/etc/reverseproxy/hostmapfile. Example:alefunion.com localhost:8000 api.alefunion.com localhost:8001
To deploy a new version of reverseproxy, rerun deploy.sh.
Place other servers under /srv/PROJECT_NAME.
- Edit
/etc/reverseproxy/hostmap:sudo vi /etc/reverseproxy/hostmap
- Restart service:
sudo systemctl restart reverseproxy