diff options
author | Raul Benencia <raul@thousandeyes.com> | 2021-01-12 16:57:26 -0800 |
---|---|---|
committer | Raul Benencia <46945030+raul-te@users.noreply.github.com> | 2021-01-13 10:50:35 -0800 |
commit | cfa915142c2bbff8d1572488b6343e56dfef9b64 (patch) | |
tree | 66961e8009fb10e84ddec3b55633d8cd4769cff8 /internal/environment/flags.go | |
parent | fa13436d4ceba235081c9eedb8d6f586ea21e7aa (diff) |
Segregate BindAddr and BaseURL
Diffstat (limited to 'internal/environment/flags.go')
-rw-r--r-- | internal/environment/flags.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/environment/flags.go b/internal/environment/flags.go index 8250690..bbb7d1a 100644 --- a/internal/environment/flags.go +++ b/internal/environment/flags.go @@ -23,8 +23,8 @@ import ( func (env *Environment) setFlags() { flag.StringVar(&env.ConfigFile, "config", "", "My config file") - flag.IntVar(&env.Port, "port", 8080, "The port where I'm going to listen") - flag.StringVar(&env.Domain, "domain", "localhost", "The address where I'm going to listen") + flag.StringVar(&env.BindAddr, "bind-addr", "localhost:8081", "The address where I'm going to listen") + flag.StringVar(&env.BaseURL, "base-url", "", "The base shoelaces URL. If it's not defined, it will default to bind-addr.") flag.StringVar(&env.DataDir, "data-dir", "", "Directory with mappings, configs, templates, etc.") flag.StringVar(&env.StaticDir, "static-dir", "web", "A custom web directory with static files") flag.StringVar(&env.EnvDir, "env-dir", "env_overrides", "Directory with overrides") |