From b1a4f38e383279d14d10b6b4575f752ca4b54f73 Mon Sep 17 00:00:00 2001 From: Tobi Smethurst <31960611+tsmethurst@users.noreply.github.com> Date: Mon, 19 Jul 2021 18:42:08 +0200 Subject: allow different host + accountDomain (#103) * allow different host + accountDomain * use accountDomain in tags --- cmd/gotosocial/main.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'cmd/gotosocial') 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,10 +69,16 @@ 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!)", -- cgit v1.3