summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorLibravatar Tobi Smethurst <31960611+tsmethurst@users.noreply.github.com>2021-07-19 18:42:08 +0200
committerLibravatar GitHub <noreply@github.com>2021-07-19 18:42:08 +0200
commitb1a4f38e383279d14d10b6b4575f752ca4b54f73 (patch)
tree813429385388f6ce7f6255d53210ce9ba914e796 /cmd
parentDb tls (#102) (diff)
downloadgotosocial-b1a4f38e383279d14d10b6b4575f752ca4b54f73.tar.xz
allow different host + accountDomain (#103)
* allow different host + accountDomain * use accountDomain in tags
Diffstat (limited to 'cmd')
-rw-r--r--cmd/gotosocial/main.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/cmd/gotosocial/main.go b/cmd/gotosocial/main.go
index fde83e623..e8bc793bd 100644
--- a/cmd/gotosocial/main.go
+++ b/cmd/gotosocial/main.go
@@ -69,11 +69,17 @@ func main() {
},
&cli.StringFlag{
Name: flagNames.Host,
- Usage: "Hostname to use for the server (eg., example.org, gotosocial.whatever.com)",
+ Usage: "Hostname to use for the server (eg., example.org, gotosocial.whatever.com). DO NOT change this on a server that's already run!",
Value: defaults.Host,
EnvVars: []string{envNames.Host},
},
&cli.StringFlag{
+ Name: flagNames.AccountDomain,
+ Usage: "Domain to use in account names (eg., example.org, whatever.com). If not set, will default to the setting for host. DO NOT change this on a server that's already run!",
+ Value: defaults.AccountDomain,
+ EnvVars: []string{envNames.AccountDomain},
+ },
+ &cli.StringFlag{
Name: flagNames.Protocol,
Usage: "Protocol to use for the REST api of the server (only use http for debugging and tests!)",
Value: defaults.Protocol,