Skip to content

Latest commit

 

History

History
50 lines (40 loc) · 864 Bytes

README.md

File metadata and controls

50 lines (40 loc) · 864 Bytes

caddy-uwsgi-transport

This module adds uwsgi reverse proxying support to Caddy.

ID: http.reverse_proxy.transport.uwsgi

Installation

By using xcaddy

xcaddy build \
    --with github.com/wxh06/caddy-uwsgi-transport

Usage

Caddyfile

reverse_proxy [<matcher>] [<upstreams...>] {
	transport uwsgi
}

JSON

{
  "apps": {
    "http": {
      "servers": {
        "": {
          "routes": [
            {
              "handle": [
                {
                  "handler": "reverse_proxy",
                  "transport": { "protocol": "uwsgi" },
                  "upstreams": [{ "dial": "<upstream>" }]
                }
              ]
            }
          ]
        }
      }
    }
  }
}