commit 265c536

default  ·  2025-01-06 08:00:02 +0000 UTC
parent c3be99b
Updated documentation.
1 files changed,  +15, -0
+15, -0
 1@@ -676,6 +676,12 @@ location /.well-known/host-meta {
 2     proxy_set_header Host $http_host;
 3     proxy_set_header X-Forwarded-For $remote_addr;
 4 }
 5+# optional (Mastodon-like link share entrypoint)
 6+location /share {
 7+    proxy_pass http://localhost:8001;
 8+    proxy_set_header Host $http_host;
 9+    proxy_set_header X-Forwarded-For $remote_addr;
10+}
11 .Ed
12 .Pp
13 Restart the nginx daemon and connect to
14@@ -724,6 +730,11 @@ ProxyPreserveHost On
15 <Location /.well-known/host-meta>
16     ProxyPass http://127.0.0.1:8001/.well-known/host-meta
17 </Location>
18+
19+# optional (Mastodon-like link share entrypoint)
20+<Location /share>
21+    ProxyPass http://127.0.0.1:8001/share
22+</Location>
23 .Ed
24 .Pp
25 Since version 2.43,
26@@ -779,6 +790,10 @@ location "/.well-known/nodeinfo" {
27 location "/.well-known/host-meta" {
28     fastcgi socket tcp "127.0.0.1" 8001
29 }
30+
31+location "/share" {
32+    fastcgi socket tcp "127.0.0.1" 8001
33+}
34 .Ed
35 .Sh SEE ALSO
36 .Xr snac 1 ,