Skip to content

wxh06/caddy-uwsgi-transport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>" }]
                }
              ]
            }
          ]
        }
      }
    }
  }
}