Documentation ¶
Index ¶
- func New(ctx context.Context, dir string) (server.Server, error)
- type Opener
- type Server
- func (s *Server) As(i interface{}) bool
- func (s *Server) Clone() interface{}
- func (s *Server) ComputeConfs() ([]string, error)
- func (s *Server) Endpoints() []string
- func (s *Server) ID() string
- func (s *Server) Metadata() map[string]string
- func (s *Server) Name() string
- func (s *Server) RawServe(*server.ServeOptions) (ii []registry.Item, er error)
- func (s *Server) SetMetadata(meta map[string]string)
- func (s *Server) Stop() error
- func (s *Server) Type() server.Type
- type SiteConf
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
type Server struct { *server.ListableMux // contains filtered or unexported fields }
func (*Server) ComputeConfs ¶
func (*Server) SetMetadata ¶ added in v4.0.6
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
Click to show internal directories.
Click to hide internal directories.