mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-19 01:05:37 +03:00
Some godoc
This commit is contained in:
parent
6d869ef55b
commit
cdfc67db01
1 changed files with 20 additions and 6 deletions
|
@ -59,12 +59,26 @@ func Default() []Config {
|
||||||
// is populated by parsing a config file (via the
|
// is populated by parsing a config file (via the
|
||||||
// Load function).
|
// Load function).
|
||||||
type Config struct {
|
type Config struct {
|
||||||
|
// The hostname or IP to which to bind the server
|
||||||
Host string
|
Host string
|
||||||
|
|
||||||
|
// The port to listen on
|
||||||
Port string
|
Port string
|
||||||
|
|
||||||
|
// The directory from which to serve files
|
||||||
Root string
|
Root string
|
||||||
|
|
||||||
|
// HTTPS configuration
|
||||||
TLS TLSConfig
|
TLS TLSConfig
|
||||||
|
|
||||||
|
// Middleware stack
|
||||||
Middleware map[string][]middleware.Middleware
|
Middleware map[string][]middleware.Middleware
|
||||||
|
|
||||||
|
// Functions (or methods) to execute at server start; these
|
||||||
|
// are executed before any parts of the server are configured
|
||||||
Startup []func() error
|
Startup []func() error
|
||||||
|
|
||||||
|
// MaxCPU is the maximum number of cores for the whole process to use
|
||||||
MaxCPU int
|
MaxCPU int
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue