summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 {
396 proxy_pass http://localhost:8001; 396 proxy_pass http://localhost:8001;
397 proxy_set_header Host $http_host; 397 proxy_set_header Host $http_host;
398} 398}
399# optional (needed by some Mastodon API clients)
400location /.well-known/host-meta {
401 proxy_pass http://localhost:8001;
402 proxy_set_header Host $http_host;
403}
399.Ed 404.Ed
400.Pp 405.Pp
401Restart the nginx daemon and connect to 406Restart the nginx daemon and connect to
@@ -421,11 +426,6 @@ ProxyPreserveHost On
421 ProxyPass http://127.0.0.1:8001/.well-known/webfinger 426 ProxyPass http://127.0.0.1:8001/.well-known/webfinger
422</Location> 427</Location>
423 428
424# NodeInfo (optional)
425<Location /.well-known/nodeinfo>
426 ProxyPass http://127.0.0.1:8001/.well-known/nodeinfo
427</Location>
428
429# Mastodon API (entry points) 429# Mastodon API (entry points)
430<Location /api/v1/> 430<Location /api/v1/>
431 ProxyPass http://127.0.0.1:8001/api/v1/ 431 ProxyPass http://127.0.0.1:8001/api/v1/
@@ -439,6 +439,16 @@ ProxyPreserveHost On
439<Location /oauth> 439<Location /oauth>
440 ProxyPass http://127.0.0.1:8001/oauth 440 ProxyPass http://127.0.0.1:8001/oauth
441</Location> 441</Location>
442
443# NodeInfo (optional)
444<Location /.well-known/nodeinfo>
445 ProxyPass http://127.0.0.1:8001/.well-known/nodeinfo
446</Location>
447
448# host-meta (optional, needed for some Mastodon API clients)
449<Location /.well-known/host-meta>
450 ProxyPass http://127.0.0.1:8001/.well-known/host-meta
451</Location>
442.Ed 452.Ed
443.Pp 453.Pp
444Since version 2.43, 454Since version 2.43,
@@ -490,6 +500,10 @@ location "/api/v2/*" {
490location "/.well-known/nodeinfo" { 500location "/.well-known/nodeinfo" {
491 fastcgi socket tcp "127.0.0.1" 8001 501 fastcgi socket tcp "127.0.0.1" 8001
492} 502}
503
504location "/.well-known/host-meta" {
505 fastcgi socket tcp "127.0.0.1" 8001
506}
493.Ed 507.Ed
494.Sh SEE ALSO 508.Sh SEE ALSO
495.Xr snac 1 , 509.Xr snac 1 ,