acmeproxy

package
v0.0.0-...-e6bd25b Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModeDefault   string = "default"
	ModeRaw       string = "raw"
	ActionPresent string = "present"
	ActionCleanup string = "cleanup"
)

Variables

This section is empty.

Functions

func ActionHandler

func ActionHandler(action string, config *Config) http.Handler

func AuthenticationHandler

func AuthenticationHandler(h http.Handler, action string, a AuthenticatorInterface) http.Handler

func FilterHandler

func FilterHandler(h http.Handler, action string, config *Config) http.Handler

func GetHandler

func GetHandler(config *Config) http.Handler

func HomeHandler

func HomeHandler() http.Handler

func RunServer

func RunServer(ctx *cli.Context, config *Config)

Types

type AuthenticatorInterface

type AuthenticatorInterface interface {
	// NewContext returns a new context carrying authentication
	// information extracted from the request.
	NewContext(ctx context.Context, r *http.Request) context.Context
}

AuthenticatorInterface is the interface implemented by BasicAuth FIXME: is this deprecated?

type Config

type Config struct {
	HttpServer     *http.Server
	Provider       challenge.Provider
	ProviderName   string
	HtpasswdFile   string
	AllowedIPs     []string
	AllowedDomains []string
	AccesslogFile  string
}

func NewDefaultConfig

func NewDefaultConfig() *Config

type Server

type Server struct {
	HttpServer     *http.Server
	Provider       challenge.Provider
	HtpasswdFile   string
	AllowedIPs     []string
	AllowedDomains []string
	AccesslogFile  string
}

func NewServer

func NewServer(config *Config) (*Server, error)

Jump to

Keyboard shortcuts

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