Reverse Proxy

spinner
spinner

Why Use a Reverse Proxy?

A reverse proxy is a server that sits between your client devices and your backend servers. It helps manage and distribute incoming traffic, providing benefits like improved security, load balancing, and easier management of multiple services. Setting up a reverse proxy can make accessing your Plex server and other services more seamless and secure. Using a reverse proxy, you can map different services to subdomains of your main domain. For example:

Choosing a reverse proxy server

You could use Caddyarrow-up-right or NPMarrow-up-right but Traefikarrow-up-right is my personal favorite (if you like modern WebUI take a look at GoDoxyarrow-up-right and Dokployarrow-up-right) , here are a few advantages of Traefik:

  • Automatically discovers the right configuration for your services.

  • Built-in Let's Encrypt Integration (HTTPS) (Automatically handles SSL certificate generation and renewal with Let's Encrypt.)

  • Natively compliant with every major cluster technology, such as Kubernetes, Docker Swarm, AWS, and the list goes onarrow-up-right

  • Ease of use

  • Built-in Middlewares such as authentication, rate limiting, IP whitelisting...

Configure Traefik

I recommend you also take a look at this guidearrow-up-right.

first of all create config folder that will store SSL certificates and more:

  1. Setup Cloudflare DNS records + SSL Mode to FULL (not strict)

  2. If you plan to use http basic auth middleware for one of your services (only use over https) (for example to protect a service that would otherwise be freely accessible by anyone), you can generate your USERNAME + PASS with this command:

  1. Example of traefik config in docker-compose.yml:

Last updated