NGINX - Giancky79/proxmox GitHub Wiki

Info lxc:

  • Debian 12
    
  • Privilegiato
    

Porte da aprire sul modem verso nginx:

  •  80
    
  • 443
    

Features da attivare:

  • Nessuno
    

Comandi da lanciare:

  •  apt update -y && apt upgrade -y && reboot
    
  •  dpkg-reconfigure tzdata #(selezionare continente e città)
    
  •  apt install -y nginx
    
  •  rm /etc/nginx/sites-enabled/default
    
  •  apt install -y certbot python3-certbot-nginx && reboot
    

con questo comando avrete le vostre chiavi fullchain e privkey per accedere in https

  •  certbot certonly --nginx -d #<nome dominio>
    

Per creare ulteriori certificati:

  • certbot certonly --nginx -d #<nome dominio> 
    

Configurazione tipo per Proxmox:

  • nano /etc/nginx/conf.d/proxmox.conf
    

esempio con A+ (da testare con SSLLABS)


  1.  nginx -t (se "ok", potete proseguire)
    
  2.  systemctl restart nginx       
    

Configurazione tipo per Home Assistant:

  •   nano /etc/nginx/conf.d/hass_core.conf
    

esempio con A+ (da testare con SSLLABS)


  1.  nginx -t (se "ok", potete proseguire)
    
  2.  systemctl restart nginx
    

Configurazione tipo Home Assistant Core:

  •   nano /etc/nginx/conf.d/hass_core.conf
    

esempio con A+ (da testare con SSLLABS)


  1.  nginx -t (se "ok", potete proseguire)
    
  2.  systemctl restart nginx
    

Il rinnovo è automatico, per controllare se è stato creato il relativo cron:

  •  systemctl list-timers
    

Per testare se il rinnovo andrà a buon fine:

  • certbot renew --dry-run