boot

package
v0.0.0-...-269dea4 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Manager is the default certificate manager.
	Manager = autocert.Manager{
		Prompt:     autocert.AcceptTOS,
		HostPolicy: autocert.HostWhitelist("gesedels.com"),
		Cache:      autocert.DirCache("./certs"),
	}

	// Server is the default server controller.
	Server = &http.Server{
		Addr:      ":https",
		ErrorLog:  log.New(os.Stderr, "", 0),
		Handler:   urls.Router(),
		TLSConfig: &tls.Config{GetCertificate: Manager.GetCertificate},
	}
)

Functions

func ServeHTTP

func ServeHTTP(logf string)

ServeHTTP launches Gesedels with an insecure HTTP server.

func ServeHTTPS

func ServeHTTPS(logf string)

ServeHTTPS launches Gesedels with a secure HTTPS server and bouncer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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