caddy

package
v4.4.5 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: AGPL-3.0 Imports: 32 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 Opener added in v4.0.1

type Opener struct{}

func (*Opener) OpenURL added in v4.0.1

func (o *Opener) OpenURL(ctx context.Context, u *url.URL) (server.Server, error)

type Server

type Server struct {
	*server.ListableMux
	// contains filtered or unexported fields
}

func (*Server) As

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

func (*Server) Clone added in v4.2.2

func (s *Server) Clone() interface{}

func (*Server) ComputeConfs

func (s *Server) ComputeConfs() ([]string, 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) RawServe added in v4.0.1

func (s *Server) RawServe(*server.ServeOptions) (ii []registry.Item, er error)

func (*Server) SetMetadata added in v4.0.6

func (s *Server) SetMetadata(meta map[string]string)

func (*Server) Stop

func (s *Server) Stop() error

func (*Server) Type

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

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
	// LogFile for this site
	Log string
	// LogLevel for this site
	LogLevel 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

func (SiteConf) Redirects added in v4.0.1

func (s SiteConf) Redirects() map[string]string

Redirects compute required redirects if SSLRedirect is set

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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