proxy

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2020 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	Addr           string `yaml:"addr"`
	ConnectTimeout int    `yaml:"connect_timeout"`
}

Backend describes the TCP connection the server should talk to (unencrypted)

type Server

type Server struct {
	BindDomain    string
	Backend       Backend
	CertDirectory string
	Manager       *autocert.Manager
	// contains filtered or unexported fields
}

Server is a TLS termination proxy that will take incoming TLS connections from a domain and proxy them to an insecure TCP backend. It uses autocert to get a LetsEncrypt certificate on demand for serving the TLS.

func (*Server) Run

func (s *Server) Run() error

Jump to

Keyboard shortcuts

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