This module adds uwsgi reverse proxying support to Caddy.
ID: http.reverse_proxy.transport.uwsgi
By using xcaddy
xcaddy build \
--with github.com/BadAimWeeb/caddy-uwsgi-transport
reverse_proxy [<matcher>] [<upstreams...>] {
transport uwsgi {
uwsgi_param <key> <value> # in case you need to set uwsgi params (for example UWSGI_SCRIPT)
}
}
{
"apps": {
"http": {
"servers": {
"": {
"routes": [
{
"handle": [
{
"handler": "reverse_proxy",
"transport": {
"protocol": "uwsgi",
"uwsgi_params": {
"<key>": "<value>"
}
},
"upstreams": [{ "dial": "<upstream>" }]
}
]
}
]
}
}
}
}
}
This module is licensed under the Apache 2.0 License.
Copyright ©️ 2024 BadAimWeeb.
Original author copyright ©️ 2023 Xinhe Wang.