diff options
author | 2021-11-22 10:55:52 +0100 | |
---|---|---|
committer | 2021-11-22 10:55:52 +0100 | |
commit | 1ded58b34b72c8e6862c5614882fd5a3bb430aaa (patch) | |
tree | a57350333cf51100fca3ecb21152626a03e0bed3 /cmd | |
parent | properly initialize user client module (#319) (diff) | |
download | gotosocial-1ded58b34b72c8e6862c5614882fd5a3bb430aaa.tar.xz |
add bindAddress configuration option (#320)
* add bindAddress configuration option
* clarify that bindAddress can be a hostname
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/gotosocial/generalflags.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/gotosocial/generalflags.go b/cmd/gotosocial/generalflags.go index f33ef5b49..9f321b760 100644 --- a/cmd/gotosocial/generalflags.go +++ b/cmd/gotosocial/generalflags.go @@ -62,6 +62,12 @@ func generalFlags(flagNames, envNames config.Flags, defaults config.Defaults) [] Value: defaults.Protocol, EnvVars: []string{envNames.Protocol}, }, + &cli.StringFlag{ + Name: flagNames.BindAddress, + Usage: "Bind address to use for the GoToSocial server (eg., 0.0.0.0, 172.138.0.9, [::], localhost). For ipv6, enclose the address in square brackets, eg [2a02:1807:1430:500:13f5:5efb:3f3a:1191]. Default binds to all interfaces.", + Value: defaults.BindAddress, + EnvVars: []string{envNames.BindAddress}, + }, &cli.IntFlag{ Name: flagNames.Port, Usage: "Port to use for GoToSocial. Change this to 443 if you're running the binary directly on the host machine.", |