summaryrefslogtreecommitdiff
path: root/cmd/gotosocial/flag
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2022-05-16 14:13:19 +0200
committerLibravatar GitHub <noreply@github.com>2022-05-16 14:13:19 +0200
commitb915a418115c7873913bafbc0337b6050c473d6a (patch)
treec101d927d881d22d5320064ad8414919a646dda4 /cmd/gotosocial/flag
parent[docs] Mention `AmbientCapabilities=CAP_NET_BIND_SERVICE` in example systemd ... (diff)
downloadgotosocial-b915a418115c7873913bafbc0337b6050c473d6a.tar.xz
[feature] Basic config validation (#562)
* add optional config validation * clarify that host and protocol are required * add validation for host and protocol * pass prerunArgs as a struct (validate by default)
Diffstat (limited to 'cmd/gotosocial/flag')
-rw-r--r--cmd/gotosocial/flag/usage.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/gotosocial/flag/usage.go b/cmd/gotosocial/flag/usage.go
index 63c3eac5d..3393f4675 100644
--- a/cmd/gotosocial/flag/usage.go
+++ b/cmd/gotosocial/flag/usage.go
@@ -25,9 +25,9 @@ var usage = config.KeyNames{
LogDbQueries: "Log database queries verbosely when log-level is trace or debug",
ApplicationName: "Name of the application, used in various places internally",
ConfigPath: "Path to a file containing gotosocial configuration. Values set in this file will be overwritten by values set as env vars or arguments",
- Host: "Hostname to use for the server (eg., example.org, gotosocial.whatever.com). DO NOT change this on a server that's already run!",
+ Host: "Hostname to use for the server (eg., example.org, gotosocial.whatever.com). This value must be set. DO NOT change this on a server that's already run!",
AccountDomain: "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!",
- Protocol: "Protocol to use for the REST api of the server (only use http for debugging and tests!)",
+ Protocol: "Protocol to use for the REST api of the server. This value must be set to one of http or https; only use http for debugging and tests!",
BindAddress: "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 [2001:db8::fed1]. Default binds to all interfaces.",
Port: "Port to use for GoToSocial. Change this to 443 if you're running the binary directly on the host machine.",
TrustedProxies: "Proxies to trust when parsing x-forwarded headers into real IPs.",