Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

fix(deploy): missing mcp well-known routes

justin90e7551ae8a6
diff --git a/apps/web/nginx.kaneo.conf b/apps/web/nginx.kaneo.conf
index 95cee51ab..449f0c234 100644
--- a/apps/web/nginx.kaneo.conf
+++ b/apps/web/nginx.kaneo.conf
@@ -15,6 +15,32 @@ server {
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
gzip_comp_level 6;
+ location = /.well-known/oauth-protected-resource/api/mcp {
+ proxy_pass http://127.0.0.1:1337/.well-known/oauth-protected-resource/api/mcp;
+ proxy_http_version 1.1;
+ proxy_set_header Host $host;
+ proxy_set_header Upgrade $http_upgrade;
+ proxy_set_header Connection "upgrade";
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header X-Forwarded-Proto $scheme;
+ }
+
+ location = /.well-known/oauth-authorization-server/api {
+ proxy_pass http://127.0.0.1:1337/.well-known/oauth-authorization-server/api;
+ proxy_http_version 1.1;
+ proxy_set_header Host $host;
+ proxy_set_header Upgrade $http_upgrade;
+ proxy_set_header Connection "upgrade";
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header X-Forwarded-Proto $scheme;
+ }
+
+ location /.well-known/ {
+ return 404;
+ }
+
location /api/ {
proxy_pass http://127.0.0.1:1337/api/;
proxy_http_version 1.1;