Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caddy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Łukasz Nowak
caddy
Commits
cdfc67db
Commit
cdfc67db
authored
Mar 21, 2015
by
Matthew Holt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some godoc
parent
6d869ef5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
6 deletions
+20
-6
config/config.go
config/config.go
+20
-6
No files found.
config/config.go
View file @
cdfc67db
...
...
@@ -59,13 +59,27 @@ func Default() []Config {
// is populated by parsing a config file (via the
// Load function).
type
Config
struct
{
Host
string
Port
string
Root
string
TLS
TLSConfig
// The hostname or IP to which to bind the server
Host
string
// The port to listen on
Port
string
// The directory from which to serve files
Root
string
// HTTPS configuration
TLS
TLSConfig
// Middleware stack
Middleware
map
[
string
][]
middleware
.
Middleware
Startup
[]
func
()
error
MaxCPU
int
// Functions (or methods) to execute at server start; these
// are executed before any parts of the server are configured
Startup
[]
func
()
error
// MaxCPU is the maximum number of cores for the whole process to use
MaxCPU
int
}
// Address returns the host:port of c as a string.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment