caddygoproxyproto

package module
v0.0.0-...-b7dc3c0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2022 License: MIT Imports: 4 Imported by: 0

README

caddy-go-proxyproto

Caddy wrapper for go-proxyproto

caddy listener wrapper go_proxyproto for Caddy 2 adds support for PROXY headers using the go proxy proto listener https://github.com/pires/go-proxyproto

JSON

This module is only designed to work with JSON configurations in Caddy. Load the listener before the tls wrapper

{
  "apps": {
    "http": {
      "servers": {
        "myserver": {
          // ...
          "listener_wrappers":[{"wrapper": "go_proxyproto", "timeout": "5s"}, {"wrapper":"tls"}]
          // ...
        }
      }
    }
  }
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Wrapper

type Wrapper struct {
	Timeout caddy.Duration `json:"timeout,omitempty"`
}

func (Wrapper) CaddyModule

func (Wrapper) CaddyModule() caddy.ModuleInfo

func (*Wrapper) Provision

func (pp *Wrapper) Provision(ctx caddy.Context) error

func (*Wrapper) WrapListener

func (pp *Wrapper) WrapListener(l net.Listener) net.Listener

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL