Skip to main content
Glama
nginx-mcp.conf2.08 kB
# Nginx configuration for Nextcloud MCP Server # Add this to your existing mcp.techmavie.digital server block # # Example: sudo nano /etc/nginx/sites-available/mcp.techmavie.digital # Then add this location block inside the server { } block # Nextcloud MCP Server (port 8085) location /nextcloud/ { # Remove the /nextcloud prefix when proxying rewrite ^/nextcloud/(.*) /$1 break; # Proxy to the Docker container proxy_pass http://127.0.0.1:8085; # WebSocket and SSE support proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; # Standard proxy headers 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; # MCP-specific headers proxy_set_header Mcp-Session-Id $http_mcp_session_id; proxy_pass_header Mcp-Session-Id; # Timeouts for long-running requests proxy_connect_timeout 60s; proxy_send_timeout 60s; proxy_read_timeout 300s; # Disable buffering for SSE proxy_buffering off; proxy_cache off; # CORS headers (if not handled by the app) add_header Access-Control-Allow-Origin * always; add_header Access-Control-Allow-Methods "GET, POST, DELETE, OPTIONS" always; add_header Access-Control-Allow-Headers "Content-Type, Accept, Authorization, Mcp-Session-Id, MCP-Protocol-Version" always; add_header Access-Control-Expose-Headers "Mcp-Session-Id" always; # Handle preflight requests if ($request_method = 'OPTIONS') { add_header Access-Control-Allow-Origin * always; add_header Access-Control-Allow-Methods "GET, POST, DELETE, OPTIONS" always; add_header Access-Control-Allow-Headers "Content-Type, Accept, Authorization, Mcp-Session-Id, MCP-Protocol-Version" always; add_header Access-Control-Max-Age 86400; add_header Content-Length 0; add_header Content-Type text/plain; return 204; } }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hithereiamaliff/mcp-nextcloud'

If you have feedback or need assistance with the MCP directory API, please join our Discord server