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
nexedi
caddy
Commits
3bc4e84e
Commit
3bc4e84e
authored
Apr 29, 2015
by
Matthew Holt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Default host is now 0.0.0.0 (wildcard)
Doesn't break using localhost to access the site
parent
60beddf6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
config/config.go
config/config.go
+7
-4
No files found.
config/config.go
View file @
3bc4e84e
...
...
@@ -11,7 +11,7 @@ import (
)
const
(
DefaultHost
=
"
localhost
"
DefaultHost
=
"
0.0.0.0
"
DefaultPort
=
"2015"
DefaultRoot
=
"."
...
...
@@ -19,8 +19,11 @@ const (
DefaultConfigFile
=
"Caddyfile"
)
// Port is configurable via command line flag
var
Port
=
DefaultPort
// Host and Port are configurable via command line flag
var
(
Host
=
DefaultHost
Port
=
DefaultPort
)
// config represents a server configuration. It
// is populated by parsing a config file (via the
...
...
@@ -117,7 +120,7 @@ func Default() []Config {
cfg
:=
[]
Config
{
Config
{
Root
:
DefaultRoot
,
Host
:
Default
Host
,
Host
:
Host
,
Port
:
Port
,
},
}
...
...
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