On this page
Nginx Setup for Debian
On this page
Install latest stable nginx for debian
Also see here
sudo sucat <<EOF >> /etc/apt/sources.list.d/nginx.listdeb http://nginx.org/packages/debian/ buster nginxdeb-src http://nginx.org/packages/debian/ buster nginxEOFexitcurl -L https://nginx.org/keys/nginx_signing.key | sudo apt-key add -sudo apt updatesudo apt install nginx
Optional generate nginx conf online
Generate a nginx conf online at here
If nginx conf need dhparam.pem, run :cd /etc/nginx sudo openssl dhparam -dsaparam -out dhparam.pem 4096
Optional install acme.sh
sudo suwget -O - https://get.acme.sh | sh -s email=my@example.com
source ~/.bashrcacme.sh --issue -d example.com --nginx
Optional Install certbot
Install snap
sudo apt -y install snapdsudo snap install core; sudo snap refresh core
sudo snap install --classic certbotsudo snap install certbot-dns-cloudflaresudo ln -s /snap/bin/certbot /usr/bin/certbot
Generate SSL
sudo certbot --nginx
Edit this page
Last updated on 11/1/2021