GFW4Fun / x-ui-pro

X-UI PRO nginx reverse proxy with ws/grpc/httpupgrade/splithttp,xray protocol support: vless,vmess,trojan,shadowsocks xui panel cloudflare ssl,xtls-rprx,ssr,v2fly bypass restrictions: socks5,v2ray-core installer,sing-box,shadowtls,reality,tunnel,gfw tor warp wireguard geoip tuic clash vpn mihomo psiphon hy2 oneclick argo bbr anticensorship⚡🛡️🔒
331 stars 103 forks source link

Cloud Flare Origin Certs instead of Let's Encrypt #21

Closed Saleh-Mumtaz closed 2 months ago

Saleh-Mumtaz commented 2 months ago

Hi, thank you for your great script! Can you help me to instead of using Let's Encrypt Certs, use CF's origin certificates? Because they are valid for 15 years, and with proxy on, the renewal process will be distorted.

GFW4Fun commented 2 months ago

Hi Remove certbot

apt -y remove certbot python3-certbot-nginx
crontab -l | grep -v "certbot" | crontab -

Edit > nginx configs cd /etc/nginx/sites-available ls nano yoursite.com Edit Lines > ssl_certificate + ssl_certificate _key ctrl x > yes > save. nginx -s reload