diff --git a/nginx/gnexus-book.conf b/nginx/gnexus-book.conf index 749f475..0726e31 100644 --- a/nginx/gnexus-book.conf +++ b/nginx/gnexus-book.conf @@ -18,6 +18,25 @@ proxy_set_header X-Forwarded-Proto $scheme; } + # gnexus-auth redirects the browser to this service, not through /api/. + location /auth/ { + proxy_pass http://127.0.0.1:8000; + proxy_http_version 1.1; + 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_set_header X-Forwarded-Proto $scheme; + } + + location /webhooks/gnexus-auth { + proxy_pass http://127.0.0.1:8000; + proxy_http_version 1.1; + 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_set_header X-Forwarded-Proto $scheme; + } + location /api-docs { proxy_pass http://127.0.0.1:8000/api-docs; proxy_http_version 1.1; @@ -48,6 +67,10 @@ proxy_read_timeout 86400; } + location = /mcp-protocol { + return 308 /mcp-protocol/; + } + location = /mcp { return 308 /mcp-protocol/; } diff --git a/ui/vite.config.js b/ui/vite.config.js index 40603c0..e613d18 100644 --- a/ui/vite.config.js +++ b/ui/vite.config.js @@ -57,6 +57,14 @@ target: "http://127.0.0.1:3005", changeOrigin: true, rewrite: (path) => path.replace(/^\/api/, "") + }, + "/auth": { + target: "http://127.0.0.1:3005", + changeOrigin: true + }, + "/webhooks": { + target: "http://127.0.0.1:3005", + changeOrigin: true } } }