alpine无域名一键反代

By | 19 7 月, 2025

 alpine无域名一键反代

一个速度快的vps给速度慢的vps提速可以一键反代Nginx提速

在速度快的vps安装一键代码:

export PATH=$PATH:/sbin:/usr/sbin:/bin:/usr/bin && apk update && apk add –no-cache nginx curl openrc && addgroup -S nginx && adduser -S -D -H -s /sbin/nologin -G nginx nginx && mkdir -p /run/openrc /run/nginx /etc/nginx/conf.d && touch /run/openrc/softlevel && chown -R nginx:nginx /run/nginx && IP=”速度慢的vps的IP” && PATH=”/vless” && PORT=”80″ && printf “server {\n listen $PORT;\n server_name _;\n location $PATH {\n proxy_pass http://$IP:10000;\n proxy_http_version 1.1;\n proxy_set_header Upgrade \$http_upgrade;\n proxy_set_header Connection \”upgrade\”;\n proxy_set_header Host \$host;\n }\n}” > /etc/nginx/conf.d/vless.conf && sed -i ‘/http {/a \\tinclude /etc/nginx/conf.d/*.conf;’ /etc/nginx/nginx.conf && nginx -t && /usr/sbin/nginx

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注