你需要有一个解析到服务器 IP 的域名,并且申请了证书,比如 let's encrypt
你还需要一个 Nginx:
systemctl enable nginx
systemctl start nginx
若服务器开启了防火墙或 VPS 有安全组,记得放行 TCP/80、443 端口