commit 5f65f5d9332d7c2e12dc13011903e936051c49e5
parent 386dc31dc35bb59341225c20162a473a54e3b194
Author: default <nobody@localhost>
Date: Mon, 29 Jan 2024 10:10:43 +0100
Updated documentation.
Diffstat:
1 file changed, 19 insertions(+), 5 deletions(-)
diff --git a/doc/snac.8 b/doc/snac.8
@@ -396,6 +396,11 @@ location /.well-known/nodeinfo {
proxy_pass http://localhost:8001;
proxy_set_header Host $http_host;
}
+# optional (needed by some Mastodon API clients)
+location /.well-known/host-meta {
+ proxy_pass http://localhost:8001;
+ proxy_set_header Host $http_host;
+}
.Ed
.Pp
Restart the nginx daemon and connect to
@@ -421,11 +426,6 @@ ProxyPreserveHost On
ProxyPass http://127.0.0.1:8001/.well-known/webfinger
</Location>
-# NodeInfo (optional)
-<Location /.well-known/nodeinfo>
- ProxyPass http://127.0.0.1:8001/.well-known/nodeinfo
-</Location>
-
# Mastodon API (entry points)
<Location /api/v1/>
ProxyPass http://127.0.0.1:8001/api/v1/
@@ -439,6 +439,16 @@ ProxyPreserveHost On
<Location /oauth>
ProxyPass http://127.0.0.1:8001/oauth
</Location>
+
+# NodeInfo (optional)
+<Location /.well-known/nodeinfo>
+ ProxyPass http://127.0.0.1:8001/.well-known/nodeinfo
+</Location>
+
+# host-meta (optional, needed for some Mastodon API clients)
+<Location /.well-known/host-meta>
+ ProxyPass http://127.0.0.1:8001/.well-known/host-meta
+</Location>
.Ed
.Pp
Since version 2.43,
@@ -490,6 +500,10 @@ location "/api/v2/*" {
location "/.well-known/nodeinfo" {
fastcgi socket tcp "127.0.0.1" 8001
}
+
+location "/.well-known/host-meta" {
+ fastcgi socket tcp "127.0.0.1" 8001
+}
.Ed
.Sh SEE ALSO
.Xr snac 1 ,