From 5f65f5d9332d7c2e12dc13011903e936051c49e5 Mon Sep 17 00:00:00 2001 From: default Date: Mon, 29 Jan 2024 10:10:43 +0100 Subject: [PATCH] Updated documentation. --- doc/snac.8 | 24 +++++++++++++++++++----- 1 file 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 -# NodeInfo (optional) - - ProxyPass http://127.0.0.1:8001/.well-known/nodeinfo - - # Mastodon API (entry points) ProxyPass http://127.0.0.1:8001/api/v1/ @@ -439,6 +439,16 @@ ProxyPreserveHost On ProxyPass http://127.0.0.1:8001/oauth + +# NodeInfo (optional) + + ProxyPass http://127.0.0.1:8001/.well-known/nodeinfo + + +# host-meta (optional, needed for some Mastodon API clients) + + ProxyPass http://127.0.0.1:8001/.well-known/host-meta + .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 ,