# Reverse Proxy

#### Introduction

- [Forward Proxy vs Reverse Proxy vs Load Balancers](https://dev.to/oyedeletemitope/forward-proxy-vs-reverse-proxy-vs-load-balancers-5aef)

#### Nginx Proxy Manager

Docker container for managing Nginx proxy hosts with a simple, powerful interface

- [Nginx Proxy Manager](https://nginxproxymanager.com/)
- GitHub: [https://github.com/NginxProxyManager/nginx-proxy-manager](https://github.com/NginxProxyManager/nginx-proxy-manager)
- [How to Install and Use Nginx Proxy Manager with Docker](https://www.howtoforge.com/how-to-install-and-use-nginx-proxy-manager/)
- YT: [NginX Proxy Manager is a free, open source, GUI for the NginX Reverse Proxy making it easy to use.](https://www.youtube.com/watch?v=RBVcnxTiIL0)
- YT: [Docker and Running your self-hosted applications in a more secure way behind a reverse proxy.](https://www.youtube.com/watch?v=8T68pB_Fkm4)

#### nginx-proxy

nginx-proxy sets up a container running nginx and docker-gen. docker-gen generates reverse proxy configs for nginx and reloads nginx when containers are started and stopped.

- GitHub: [https://github.com/nginx-proxy/nginx-proxy](https://github.com/nginx-proxy/nginx-proxy)
- [Automated Nginx Reverse Proxy for Docker](http://jasonwilder.com/blog/2014/03/25/automated-nginx-reverse-proxy-for-docker/)

#### GoDoxy

A lightweight, simple, and performant reverse proxy with WebUI.

- GitHub: [https://github.com/yusing/godoxy](https://github.com/yusing/godoxy)

#### Configuration

/etc/nginx/sites-available/default:

```
server {
    listen 80;
    server_name your-server-ip;

    location /pull-repo {
        proxy_pass http://localhost:5000;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}
```

#### Caddy

##### Caddy + Pi-Hole

本地服務（\**.local, \*.lan* ）的 HTTPS 解決方案

- [Clean Local Domains with HTTPS for Your Homelab — No Domain Purchase Required - DB Tech Reviews](https://dbtechreviews.com/2026/07/06/clean-local-domains-with-https-for-your-homelab-no-domain-purchase-required/)
- [How I Set Up .local Domains with Valid HTTPS in My Homelab - YouTube](https://www.youtube.com/watch?v=EVnwnFY7C1w)