Cos'è Nginx Proxy Manager
Nginx Proxy Manager (NPM) è un'interfaccia web per Nginx che automatizza la gestione dei proxy e dei certificati SSL Let's Encrypt. Più semplice di Traefik per chi inizia, ideale per homelab con dominio pubblico.
Installazione
version: '3.8'
services:
nginx-proxy-manager:
image: jc21/nginx-proxy-manager:latest
restart: unless-stopped
ports:
- "80:80"
- "443:443"
- "81:81" # Admin UI
volumes:
- ./npm/data:/data
- ./npm/letsencrypt:/etc/letsencrypt
Accedi a http://IP:81. Credenziali default: [email protected] / changeme.
Aggiungere un proxy host con HTTPS
- Proxy Hosts → Add Proxy Host
- Domain Names: servizio.tuodominio.com
- Forward Hostname/IP: IP del container o localhost
- Forward Port: porta del servizio
- Tab SSL → Request a new SSL certificate → Let's Encrypt
- Spunta Force SSL e HTTP/2
Requisiti per Let's Encrypt
- Dominio pubblico che punta al tuo IP (configurato in DNS)
- Port 80 e 443 aperte nel router e puntate al server NPM
- Dominio raggiungibile da Internet (verifica con canyouseeme.org)
Accesso locale con DDNS
Se hai IP dinamico: usa Duck DNS (gratuito) per avere un dominio che si aggiorna automaticamente. Installa il client DDNS come container Docker sulla stessa macchina.
💬 Commenti (0)
Nessun commento ancora. Sii il primo!