proxyprotocol

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2019 License: Apache-2.0 Imports: 6 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Add PROXY protocol support to Caddy

Build Status

Syntax

proxyprotocol *cidr* ... {
    timeout *val*
}
  • cidr CIDR ranges to process PROXY headers from
  • val duration value (e.g. 5s, 1m)

The default timeout is 5s. Set to 0 or none to disable the timeout.

Examples

# Enable from any source 
proxyprotocol

# Enable from local subnet and fixed IP
proxyprotocol 10.22.0.0/16 10.23.0.1/32

# Set header timeout
proxyprotocol 10.22.0.0/16 10.23.0.1/32 {
    timeout 5s
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Listener

type Listener struct {
	*pp.Listener
	// contains filtered or unexported fields
}

Listener adds PROXY protocol support to a caddy.Listener.

func (*Listener) File

func (l *Listener) File() (*os.File, error)

File implements the caddy.Listener interface.

Jump to

Keyboard shortcuts

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