summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar tobi <tobi.smethurst@protonmail.com>2025-09-22 13:10:30 +0200
committerLibravatar tobi <kipvandenbos@noreply.codeberg.org>2025-09-22 13:10:30 +0200
commit602022701b43ca2ef42c407dd509bd3fa6d2569d (patch)
tree647e482273b74c6f5a2086d82f9fa667a80ca037
parent[chore/docs] Fix Prometheus metric names for Gin, include example Grafana das... (diff)
downloadgotosocial-602022701b43ca2ef42c407dd509bd3fa6d2569d.tar.xz
[chore] Update config to remove unnecessary square brackets around ipv6 addresses (#4451)
Tweak example config for `bind-address`, as square brackets around ipv6 addresses was causing issues launching. Closes https://codeberg.org/superseriousbusiness/gotosocial/issues/4450 Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4451 Co-authored-by: tobi <tobi.smethurst@protonmail.com> Co-committed-by: tobi <tobi.smethurst@protonmail.com>
-rw-r--r--docs/configuration/general.md16
-rw-r--r--example/config.yaml16
2 files changed, 18 insertions, 14 deletions
diff --git a/docs/configuration/general.md b/docs/configuration/general.md
index 3443bed35..7cd230baa 100644
--- a/docs/configuration/general.md
+++ b/docs/configuration/general.md
@@ -107,14 +107,16 @@ account-domain: ""
# Default: "https"
protocol: "https"
-# String. Address to bind the GoToSocial server to.
-# This can be an IPv4 address or an IPv6 address (surrounded in square brackets), or a hostname.
+# String. Address to bind the GoToSocial HTTP server to.
+# This can be an IPv4 address, an IPv6 address, or a hostname.
+#
# The default value will bind to all interfaces, which makes the server
-# accessible by other machines. For most setups there is no need to change this.
-# If you are using GoToSocial in a reverse proxy setup with the proxy running on
-# the same machine, you will want to set this to "localhost" or an equivalent,
-# so that the proxy can't be bypassed.
-# Examples: ["0.0.0.0", "172.128.0.16", "localhost", "[::]", "[2001:db8::fed1]"]
+# accessible by other machines. For most setups you won't need to change this.
+# However, if you are using GoToSocial in a reverse proxy setup with the proxy
+# running on the same machine, you may want to set this to "localhost" or equivalent,
+# so that the proxy definitely can't be bypassed.
+#
+# Examples: ["0.0.0.0", "172.128.0.16", "localhost", "::1", "2001:db8::fed1"]
# Default: "0.0.0.0"
bind-address: "0.0.0.0"
diff --git a/example/config.yaml b/example/config.yaml
index 9eaa560fe..25bb09068 100644
--- a/example/config.yaml
+++ b/example/config.yaml
@@ -117,14 +117,16 @@ account-domain: ""
# Default: "https"
protocol: "https"
-# String. Address to bind the GoToSocial server to.
-# This can be an IPv4 address or an IPv6 address (surrounded in square brackets), or a hostname.
+# String. Address to bind the GoToSocial HTTP server to.
+# This can be an IPv4 address, an IPv6 address, or a hostname.
+#
# The default value will bind to all interfaces, which makes the server
-# accessible by other machines. For most setups there is no need to change this.
-# If you are using GoToSocial in a reverse proxy setup with the proxy running on
-# the same machine, you will want to set this to "localhost" or an equivalent,
-# so that the proxy can't be bypassed.
-# Examples: ["0.0.0.0", "172.128.0.16", "localhost", "[::]", "[2001:db8::fed1]"]
+# accessible by other machines. For most setups you won't need to change this.
+# However, if you are using GoToSocial in a reverse proxy setup with the proxy
+# running on the same machine, you may want to set this to "localhost" or equivalent,
+# so that the proxy definitely can't be bypassed.
+#
+# Examples: ["0.0.0.0", "172.128.0.16", "localhost", "::1", "2001:db8::fed1"]
# Default: "0.0.0.0"
bind-address: "0.0.0.0"