Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| docs:debian-stretch-nginx-letsencrypt [2019/03/16 02:58] – créée maison.gaetan | docs:debian-stretch-nginx-letsencrypt [2019/03/16 05:14] (Version actuelle) – maison.gaetan | ||
|---|---|---|---|
| Ligne 21: | Ligne 21: | ||
| sudo sed -i "$ a\deb http:// | sudo sed -i "$ a\deb http:// | ||
| + | |||
| + | sudo nano / | ||
| + | |||
| + | # The primary network interface | ||
| + | allow-hotplug enp0s3 | ||
| + | #iface enp0s3 inet dhcp | ||
| + | iface enp0s3 inet static | ||
| + | address 10.9.8.200 | ||
| + | netmask 255.255.252.0 | ||
| + | gateway 10.9.8.254 | ||
| + | nameserver 10.9.8.254 | ||
| + | nameserver 41.188.9.30 | ||
| + | |||
| + | sudo reboot | ||
| sudo apt update && sudo apt install -y certbot python-certbot-nginx -t stretch-backports | sudo apt update && sudo apt install -y certbot python-certbot-nginx -t stretch-backports | ||
| + | |||
| + | sudo certbot --nginx | ||
| + | |||
| + | # sudo openssl dhparam -out / | ||
| + | |||
| + | sudo apt install -y unzip | ||
| + | |||
| + | |||
| + | # Si besoin de modification du fichier nginx : | ||
| + | sudo nano / | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| </ | </ | ||