summaryrefslogtreecommitdiff
path: root/doc/snac.8
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-04-12 11:54:42 +0200
committerdefault <nobody@localhost>2023-04-12 11:54:42 +0200
commit7fecec134f878964e02cc156e04855ba5cfe9708 (patch)
tree46fbb0f4c8cc998e48889a7f6ec7e8cdbf9da63d /doc/snac.8
parent168e1ceab9795ddfe5857a7c4ba110857771c1c6 (diff)
Updated documentation.
Diffstat (limited to 'doc/snac.8')
-rw-r--r--doc/snac.821
1 files changed, 16 insertions, 5 deletions
diff --git a/doc/snac.8 b/doc/snac.8
index a9c1487..3174097 100644
--- a/doc/snac.8
+++ b/doc/snac.8
@@ -331,21 +331,32 @@ snac httpd /home/snacusr/fedidata
Edit the nginx configuration and add the following snippet to the
example.com server section:
.Bd -literal -offset indent
+# main web access point
+location /fedi {
+ proxy_pass http://localhost:8001;
+ proxy_set_header Host $http_host;
+}
+# webfinger
location /.well-known/webfinger {
proxy_pass http://localhost:8001;
proxy_set_header Host $http_host;
}
-
-# optional
-location /.well-known/nodeinfo {
+# Mastodon API (entry point)
+location /api/v1/ {
proxy_pass http://localhost:8001;
proxy_set_header Host $http_host;
}
-
-location /fedi {
+# Mastodon API (OAuth support)
+location /oauth {
proxy_pass http://localhost:8001;
proxy_set_header Host $http_host;
}
+# optional
+location /.well-known/nodeinfo {
+ proxy_pass http://localhost:8001;
+ proxy_set_header Host $http_host;
+}
+
.Ed
.Pp
Restart the nginx daemon and connect to https://example.com/fedi/walter.