NGINX


Ajout d'un nouveau site/service


Article d'origine : Certbot sous debian

1. Ajout d’un site sur le revers-proxy
  • cd /home/caracals/service/org.caracals.NEW
    cp ../org.caracals.gitea/nginx.conf .
    nano nginx.conf  # Modify and remove all lines that finished by `# managed by Certbot` + remove the server part for port 80 + adapt site name and container net IP + other configs
    ln -s /home/caracals/service/org.caracals.NEW/nginx.conf /etc/nginx/sites-enabled/org.caracals.NEW
    

See nginx guide for more info

2. Sélectionner son site et ajouter la redirection HTTP :)
  • sudo nginx -s reload
    
3. Ajout du certificat HTTPS avec certbot
  • sudo certbot --nginx