Using a reverse proxy is an essential for me.
A reverse proxy basically helps you route every requests you get into the right services. They have quite a lot of advantages:
- Protect your apps, you only expose the Reverse Proxy
- Automatically support HTTPS with auto SSL cert generation
- Add some security on top of your apps (rate limiter, prevent injections, etc…)
- With Nginx and Traefik, you can also forward TCP/UDP ports from a machine to another (useful considering my two machines setup)
It’s an essential part of my homelab. It helps me making my services publicly available, as well as organizing and accessing my internal private services with vanity URLs and HTTPS. See Internal Networking with URLs and HTTPS.
Info
Reverse Proxy I’m using as of writing: Traefik
My Traefik Configuration
Traefik is deployed through Docker, and has auto-discovery enabled, meaning that all containers with the following labels will be handled by Traefik:
To communicate, all the containers needs to be in the same Docker network. To do so, manually create a network with docker network create
, and then apply it in your compose files like so:
TBC