caddy

package
v4.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, dir string) (server.Server, error)

Types

type Server

type Server struct {
	*server.ListableMux

	Confs []byte
	// contains filtered or unexported fields
}

func (*Server) Address

func (s *Server) Address() []string

func (*Server) As

func (s *Server) As(i interface{}) bool

func (*Server) ComputeConfs

func (s *Server) ComputeConfs() error

func (*Server) Endpoints

func (s *Server) Endpoints() []string

func (*Server) ID

func (s *Server) ID() string

func (*Server) Metadata

func (s *Server) Metadata() map[string]string

func (*Server) Name

func (s *Server) Name() string

func (*Server) Serve

func (s *Server) Serve() error

func (*Server) Stop

func (s *Server) Stop() error

func (*Server) Type

func (s *Server) Type() server.ServerType

type SiteConf

type SiteConf struct {
	*install.ProxyConfig
	// Parsed values from proto oneOf
	TLS     string
	TLSCert string
	TLSKey  string
	// Parsed External host if any
	ExternalHost string
	// Custom Root for this site
	WebRoot string
}

func SitesToCaddyConfigs

func SitesToCaddyConfigs(sites []*install.ProxyConfig) (caddySites []SiteConf, er error)

SitesToCaddyConfigs computes all SiteConf from all *install.ProxyConfig by analyzing TLSConfig, ReverseProxyURL and Maintenance fields values

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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