return proxy_protocol without singbox

This commit is contained in:
mercury
2024-04-26 14:45:33 +04:00
parent b728553db5
commit f2897d4b07
8 changed files with 37 additions and 19 deletions
+5 -5
View File
@@ -1,8 +1,8 @@
cat /ssh/key.pub > /root/.ssh/authorized_keys
ssh-keygen -A
exec /usr/sbin/sshd -D -e "$@" &
sed "s/ss:[0-9]\+/ss:$SSPORT/" /nginx_default.conf > change_port
cat change_port > /nginx_default.conf
sed "s/ss:[0-9]\+/ss:$SSPORT/" /etc/nginx/nginx.conf > change_port
cat change_port > /etc/nginx/nginx.conf
nginx -g "daemon off;"
sed "s/ss:[0-9]\+/ss:$SSPORT/" /config/nginx_default.conf > change_port
cat change_port > /config/nginx_default.conf
sed "s/ss:[0-9]\+/ss:$SSPORT/" /config/nginx.conf > change_port
cat change_port > /config/nginx.conf
nginx -g "daemon off;" -c /config/nginx.conf
+1 -1
View File
@@ -1,4 +1,4 @@
cat /ssh/key.pub > /root/.ssh/authorized_keys
ssh-keygen -A
exec /usr/sbin/sshd -D -e "$@" &
nginx -g "daemon off;"
nginx -g "daemon off;" -c /config/upstream.conf