commit 5f65f5d

default  ·  2024-01-29 09:10:43 +0000 UTC
parent 386dc31
Updated documentation.
1 files changed,  +19, -5
+19, -5
 1@@ -396,6 +396,11 @@ location /.well-known/nodeinfo {
 2     proxy_pass http://localhost:8001;
 3     proxy_set_header Host $http_host;
 4 }
 5+# optional (needed by some Mastodon API clients)
 6+location /.well-known/host-meta {
 7+    proxy_pass http://localhost:8001;
 8+    proxy_set_header Host $http_host;
 9+}
10 .Ed
11 .Pp
12 Restart the nginx daemon and connect to
13@@ -421,11 +426,6 @@ ProxyPreserveHost On
14     ProxyPass http://127.0.0.1:8001/.well-known/webfinger
15 </Location>
16 
17-# NodeInfo (optional)
18-<Location /.well-known/nodeinfo>
19-    ProxyPass http://127.0.0.1:8001/.well-known/nodeinfo
20-</Location>
21-
22 # Mastodon API (entry points)
23 <Location /api/v1/>
24     ProxyPass http://127.0.0.1:8001/api/v1/
25@@ -439,6 +439,16 @@ ProxyPreserveHost On
26 <Location /oauth>
27     ProxyPass http://127.0.0.1:8001/oauth
28 </Location>
29+
30+# NodeInfo (optional)
31+<Location /.well-known/nodeinfo>
32+    ProxyPass http://127.0.0.1:8001/.well-known/nodeinfo
33+</Location>
34+
35+# host-meta (optional, needed for some Mastodon API clients)
36+<Location /.well-known/host-meta>
37+    ProxyPass http://127.0.0.1:8001/.well-known/host-meta
38+</Location>
39 .Ed
40 .Pp
41 Since version 2.43,
42@@ -490,6 +500,10 @@ location "/api/v2/*" {
43 location "/.well-known/nodeinfo" {
44     fastcgi socket tcp "127.0.0.1" 8001
45 }
46+
47+location "/.well-known/host-meta" {
48+    fastcgi socket tcp "127.0.0.1" 8001
49+}
50 .Ed
51 .Sh SEE ALSO
52 .Xr snac 1 ,