Elegant996 / scgi-transport

SCGI reverse proxy transport module for Caddy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SCGI reverse proxy transport module for Caddy

This plugin adds SCGI reverse proxying support to Caddy.

The scgi transport module is based on the fastcgi transport module available.

SCGI Directive

To use the scgi directive, it must first be added under caddy's global setting:

{
  order   scgi after reverse_proxy
}

Syntax

scgi [<matcher>] <gateways...> {
  root <path>
  split <substrings...>
  env [<key> <value>]
  resolve_root_symlink
  dial_timeout  <duration>
  read_timeout  <duration>
  write_timeout <duration>

  <any other reverse_proxy subdirectives...>
}

Reverse Proxy

The scgi transport may also be specified under the reverse_proxy handler.

Expanded Form

route {
  reverse_proxy [<matcher>] <gateway> {
    transport scgi {
      ...
    }
  }
} 

Docker

You may download a pre-compiled version of caddy embedded with this module through the GitHub Container Registry using any of the below:

docker pull ghcr.io/elegant996/scgi-transport:1.0.3-caddy-2.7.5
docker pull ghcr.io/elegant996/scgi-transport:1.0.3
docker pull ghcr.io/elegant996/scgi-transport:latest

About

SCGI reverse proxy transport module for Caddy

License:Apache License 2.0


Languages

Language:Go 98.5%Language:Dockerfile 1.5%