feat:增加sweetchat代理
This commit is contained in:
18
nginx.conf
18
nginx.conf
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user