Gestire i reverse proxy con interfaccia grafica
Nginx Proxy Manager (NPM) semplifica la gestione dei reverse proxy con una web UI intuitiva e gestione automatica dei certificati SSL.
1. Installazione con Docker
# docker-compose.yml
version: "3"
services:
npm:
image: jc21/nginx-proxy-manager:latest
ports:
- "80:80"
- "443:443"
- "81:81" # Admin UI
volumes:
- ./data:/data
- ./letsencrypt:/etc/letsencrypt
restart: unless-stopped
docker compose up -d
2. Accesso admin
Accedere a http://IP:81. Credenziali default: admin@example.com / changeme. Cambiare immediatamente.
3. Aggiungere un proxy host
- Dashboard > Proxy Hosts > Add
- Domain:
git.esempio.it - Forward Hostname:
192.168.1.75 - Forward Port:
3000 - SSL: Request new certificate, Force SSL, HTTP/2
4. Redirect HTTP to HTTPS
Nella tab SSL: abilitare "Force SSL" per redirect automatico da HTTP a HTTPS.
5. Access Lists
Creare liste di accesso per limitare chi può raggiungere determinati servizi (per IP o con autenticazione).
6. Vantaggi vs configurazione manuale
- Certificati Let's Encrypt automatici con rinnovo
- Interfaccia grafica per gestire tutti i proxy
- Gestione accesso centralizzata