en:vps:jak-polaczyc-vps-nat-z-cloudflare-nginx

Różnice

Różnice między wybraną wersją a wersją aktualną.


Poprzednia wersja
en:vps:jak-polaczyc-vps-nat-z-cloudflare-nginx [02/02/2023 16:58] (aktualna) reconv
Linia 1: Linia 1:
 +====== How to connect VPS NAT with Cloudflare nginx ======
 +
 +{{ vps:reconv_nat-cf-ipv6-ssl.mp4?720 }}
 +
 +**A short video that shows a quick run of nginx with ssl on IPv6 via cloudflare** - //the nginx configuration shown in the video does not include adding vhosts and more.//
 +
 +
 +==== Commands used ====
 +
 +
 +  apt-get update && apt-get dist-upgrade && apt-get autoclean && apt-get autoremove
 +
 +
 +  apt install nginx
 +
 +  apt install -y certbot
 +
 +  certbot -d <your domain> --manual --preferred-challenges dns certonly
 +
 +  apt install nano
 +
 +  nano /etc/nginx/sites-available/default
 +//(CTRL + O saves. CTRL + X exits Nano.)//
 +
 +  service nginx restart
 +
 +