mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-15 01:55:03 +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_pass http://localhost:8001;
|
||||||
proxy_set_header Host $http_host;
|
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
|
.Ed
|
||||||
.Pp
|
.Pp
|
||||||
Restart the nginx daemon and connect to
|
Restart the nginx daemon and connect to
|
||||||
|
@ -421,11 +426,6 @@ ProxyPreserveHost On
|
||||||
ProxyPass http://127.0.0.1:8001/.well-known/webfinger
|
ProxyPass http://127.0.0.1:8001/.well-known/webfinger
|
||||||
</Location>
|
</Location>
|
||||||
|
|
||||||
# NodeInfo (optional)
|
|
||||||
<Location /.well-known/nodeinfo>
|
|
||||||
ProxyPass http://127.0.0.1:8001/.well-known/nodeinfo
|
|
||||||
</Location>
|
|
||||||
|
|
||||||
# Mastodon API (entry points)
|
# Mastodon API (entry points)
|
||||||
<Location /api/v1/>
|
<Location /api/v1/>
|
||||||
ProxyPass http://127.0.0.1:8001/api/v1/
|
ProxyPass http://127.0.0.1:8001/api/v1/
|
||||||
|
@ -439,6 +439,16 @@ ProxyPreserveHost On
|
||||||
<Location /oauth>
|
<Location /oauth>
|
||||||
ProxyPass http://127.0.0.1:8001/oauth
|
ProxyPass http://127.0.0.1:8001/oauth
|
||||||
</Location>
|
</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
|
.Ed
|
||||||
.Pp
|
.Pp
|
||||||
Since version 2.43,
|
Since version 2.43,
|
||||||
|
@ -490,6 +500,10 @@ location "/api/v2/*" {
|
||||||
location "/.well-known/nodeinfo" {
|
location "/.well-known/nodeinfo" {
|
||||||
fastcgi socket tcp "127.0.0.1" 8001
|
fastcgi socket tcp "127.0.0.1" 8001
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location "/.well-known/host-meta" {
|
||||||
|
fastcgi socket tcp "127.0.0.1" 8001
|
||||||
|
}
|
||||||
.Ed
|
.Ed
|
||||||
.Sh SEE ALSO
|
.Sh SEE ALSO
|
||||||
.Xr snac 1 ,
|
.Xr snac 1 ,
|
||||||
|
|
Loading…
Reference in a new issue