顶呱呱的快乐
顶呱呱的快乐
发布于 2024-05-17 / 65 阅读
0
3

伪静态

location ^~ /ailm { # 服务器文本

proxy_pass http://127.0.0.1:7777/ailm;

proxy_set_header Host $host;

proxy_set_header X-Real-IP $remote_addr;

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

}

location /ray { # ws传输

proxy_redirect off;

proxy_pass http://127.0.0.1:45612; #端口

proxy_http_version 1.1;

proxy_set_header Upgrade $http_upgrade;

proxy_set_header Connection "upgrade";

proxy_set_header Host $http_host;

proxy_read_timeout 300s;

# Show realip in v2ray access.log

proxy_set_header X-Real-IP $remote_addr;

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

}


评论