Documentation ¶
Index ¶
- Constants
- type Server
- func (s *Server) HandleAcmeChallenge(w http.ResponseWriter, r *http.Request)
- func (s *Server) IsAcmeChallenge(r *http.Request) bool
- func (s *Server) ListenForHTTP(ctx context.Context) error
- func (s *Server) ListenForHTTPS(ctx context.Context) error
- func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (s *Server) SetLogLevel(l logger.Level)
Constants ¶
View Source
const ( AddressHTTP = "0.0.0.0:80" AddressHTTPS = "0.0.0.0:443" )
View Source
const AcmePrefix = "/.well-known/acme-challenge/"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { IngressManager *manager.IngressManager CertificateManager *manager.CertificateManager // contains filtered or unexported fields }
func (*Server) HandleAcmeChallenge ¶
func (s *Server) HandleAcmeChallenge(w http.ResponseWriter, r *http.Request)
HandleAcmeChallenge will handle an incoming ACME request.
func (*Server) IsAcmeChallenge ¶
IsAcmeChallenge will return true when the request contains the expected path for an ACME challenge.
func (*Server) ListenForHTTP ¶
ListenForHTTP will start listening for incoming HTTP request that require to be proxied through.
func (*Server) ListenForHTTPS ¶
ListenForHTTPS will start listening for incoming HTTPS requests that required to be proxied through.
func (*Server) ServeHTTP ¶
func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP will route the HTTP request through to the desired proxy.
func (*Server) SetLogLevel ¶
func (s *Server) SetLogLevel(l logger.Level)
SetLogLevel overrides the log level for the reverse proxy logger.
Click to show internal directories.
Click to hide internal directories.