Skip to content

Instantly share code, notes, and snippets.

View manimirjavadi's full-sized avatar

Mani manimirjavadi

View GitHub Profile
@manimirjavadi
manimirjavadi / rpnt.md
Last active April 16, 2023 10:48
Reverse Proxy + Nginx + TLS

We assume you have a domain name (e.x YOURSITE.COM) and an a record for root (@). You need to replace SUB.YOURSITE.COM with your domain name. It is really important to create a * record type a in cloudflare dashboard, and a subdomain.

  1. Sign in to CloudFlare panel and disable proxy for the subdomain record type A you created and create a * record A type. Also, set SSL/TLS to flexible.

  2. Update system:

apt-get update -y && apt-get upgrade -y
  1. Install nginx, certbot, python3