mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-14 17:45:04 +00:00
Updated documentation.
This commit is contained in:
parent
386dc31dc3
commit
5f65f5d933
1 changed files with 19 additions and 5 deletions
24
doc/snac.8
24
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 ,
|
||||
|
|
Loading…
Reference in a new issue