summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-01-29 10:10:43 +0100
committerdefault <nobody@localhost>2024-01-29 10:10:43 +0100
commit5f65f5d9332d7c2e12dc13011903e936051c49e5 (patch)
tree61f5d1ee9e34514ce6ff6d018d6ab745d6142cca /doc
parent386dc31dc35bb59341225c20162a473a54e3b194 (diff)
Updated documentation.
Diffstat (limited to 'doc')
-rw-r--r--doc/snac.824
1 files changed, 19 insertions, 5 deletions
diff --git a/doc/snac.8 b/doc/snac.8
index f58ad45..de05bcf 100644
--- 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 ,