Back to DocumentationReverse Proxy

Custom Proxy Configurations

Advanced proxy setup including headers, rewrites, and rate limiting.

April 12, 20265 views

Custom Proxy Configurations

Custom Headers

Add custom request or response headers to your proxy configuration. Common uses:

  • X-Forwarded-For - Pass the client's real IP to your backend
  • X-Real-IP - Alternative real IP header
  • CORS headers - Enable cross-origin requests
  • Path-Based Routing

    Route different paths to different backends:

  • /api/* → API server
  • /static/* → CDN or file server
  • /* → Frontend application
  • Rate Limiting

    Protect your backend from abuse by configuring rate limits per IP. Set maximum requests per time window.

    WebSocket Support

    WebSocket connections are fully supported. The proxy handles the upgrade from HTTP to WebSocket protocol automatically.

    Caching

    Enable response caching for static assets to reduce backend load and improve response times.

    proxyheadersroutingwebsocket