feat:增加sweetchat代理

This commit is contained in:
2026-06-21 23:24:45 +08:00
parent 5f8ed9e3b4
commit 7894b0c865

View File

@@ -122,6 +122,24 @@ server {
proxy_pass http://host.docker.internal:3000/;
}
location /ws/ {
proxy_pass http://host.docker.internal:5050;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_read_timeout 86400;
}
location /sweet-chat-api/ {
proxy_pass http://host.docker.internal:5051/;
}
location / {
try_files $uri $uri/ =404;
}