File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ server {
3333 ssl_certificate /etc/nginx/ssl/live/pankb.org/fullchain.pem;
3434 ssl_certificate_key /etc/nginx/ssl/live/pankb.org/privkey.pem;
3535
36- # MCP proxy for OAuth (with WebSocket support for Streamlit)
36+ # MCP client proxy for OAuth (with WebSocket support for Streamlit)
3737 location /copilot/ {
3838 proxy_pass http://10.0.0.15:8503;
3939 proxy_http_version 1.1;
@@ -46,6 +46,21 @@ server {
4646 proxy_set_header Connection "upgrade";
4747 proxy_read_timeout 86400;
4848 }
49+
50+ # MCP Server proxy
51+ location /server/ {
52+ proxy_pass http://10.0.0.15:8000/;
53+ proxy_http_version 1.1;
54+ proxy_set_header Host $host;
55+ proxy_set_header X-Real-IP $remote_addr;
56+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
57+ proxy_set_header X-Forwarded-Proto $scheme;
58+ proxy_set_header Upgrade $http_upgrade;
59+ proxy_set_header Connection "upgrade";
60+ proxy_read_timeout 86400;
61+ proxy_buffering off;
62+ }
63+
4964 location /static/ {
5065 alias /static/;
5166 }
You can’t perform that action at this time.
0 commit comments