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.
Click to show internal directories.
Click to hide internal directories.