diff --git a/test/autoXRAYselfXHTTPtls.sh b/test/autoXRAYselfXHTTPtls.sh index e33d2a3..1d6a46b 100644 --- a/test/autoXRAYselfXHTTPtls.sh +++ b/test/autoXRAYselfXHTTPtls.sh @@ -54,10 +54,17 @@ server { server_name $DOMAIN; #listen 3333 ssl http2 proxy_protocol; listen unix:/dev/shm/nginx.sock http2 proxy_protocol; + set_real_ip_from unix:; + real_ip_header proxy_protocol; root /var/www/$DOMAIN; index index.php index.html; + # grpc settings + grpc_read_timeout 1h; + grpc_send_timeout 1h; + grpc_set_header X-Real-IP \$remote_addr; + add_header routing-enable 0; location /${path_xhttp} { @@ -947,7 +954,7 @@ cat > "$WEB_PATH/$path_subpage.html" <