summaryrefslogtreecommitdiff
path: root/system/admin/config/config.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-07-23 12:03:10 -0600
committerGitHub <noreply@github.com>2017-07-23 12:03:10 -0600
commita931ae0a72802d28807a156dba399aaef4531e49 (patch)
treea9a28463605eb06eb311eb184397dfc575c759ea /system/admin/config/config.go
parent271bae22b9c954d76e96712a44fe4702f356d116 (diff)
parentb1b0c8b76017ffe7dc60d11d79ec81a8e3d03bce (diff)
Merge pull request #178 from ponzu-cms/ponzu-dev
[cli] add --bind option to run cmd on CLI to set address of listener
Diffstat (limited to 'system/admin/config/config.go')
-rw-r--r--system/admin/config/config.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/system/admin/config/config.go b/system/admin/config/config.go
index 19da39b..83ca2f7 100644
--- a/system/admin/config/config.go
+++ b/system/admin/config/config.go
@@ -14,6 +14,7 @@ type Config struct {
Name string `json:"name"`
Domain string `json:"domain"`
+ BindAddress string `json:"bind_addr"`
HTTPPort string `json:"http_port"`
HTTPSPort string `json:"https_port"`
AdminEmail string `json:"admin_email"`
@@ -54,6 +55,11 @@ func (c *Config) MarshalEditor() ([]byte, error) {
}),
},
editor.Field{
+ View: editor.Input("BindAddress", c, map[string]string{
+ "type": "hidden",
+ }),
+ },
+ editor.Field{
View: editor.Input("HTTPPort", c, map[string]string{
"type": "hidden",
}),