summaryrefslogtreecommitdiff
path: root/doc/snac.8
diff options
context:
space:
mode:
authorGravatar default2023-04-12 11:54:42 +0200
committerGravatar default2023-04-12 11:54:42 +0200
commit7fecec134f878964e02cc156e04855ba5cfe9708 (patch)
tree46fbb0f4c8cc998e48889a7f6ec7e8cdbf9da63d /doc/snac.8
parentUpdated README. (diff)
downloadsnac2-7fecec134f878964e02cc156e04855ba5cfe9708.tar.gz
snac2-7fecec134f878964e02cc156e04855ba5cfe9708.tar.xz
snac2-7fecec134f878964e02cc156e04855ba5cfe9708.zip
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
331Edit the nginx configuration and add the following snippet to the 331Edit the nginx configuration and add the following snippet to the
332example.com server section: 332example.com server section:
333.Bd -literal -offset indent 333.Bd -literal -offset indent
334# main web access point
335location /fedi {
336 proxy_pass http://localhost:8001;
337 proxy_set_header Host $http_host;
338}
339# webfinger
334location /.well-known/webfinger { 340location /.well-known/webfinger {
335 proxy_pass http://localhost:8001; 341 proxy_pass http://localhost:8001;
336 proxy_set_header Host $http_host; 342 proxy_set_header Host $http_host;
337} 343}
338 344# Mastodon API (entry point)
339# optional 345location /api/v1/ {
340location /.well-known/nodeinfo {
341 proxy_pass http://localhost:8001; 346 proxy_pass http://localhost:8001;
342 proxy_set_header Host $http_host; 347 proxy_set_header Host $http_host;
343} 348}
344 349# Mastodon API (OAuth support)
345location /fedi { 350location /oauth {
346 proxy_pass http://localhost:8001; 351 proxy_pass http://localhost:8001;
347 proxy_set_header Host $http_host; 352 proxy_set_header Host $http_host;
348} 353}
354# optional
355location /.well-known/nodeinfo {
356 proxy_pass http://localhost:8001;
357 proxy_set_header Host $http_host;
358}
359
349.Ed 360.Ed
350.Pp 361.Pp
351Restart the nginx daemon and connect to https://example.com/fedi/walter. 362Restart the nginx daemon and connect to https://example.com/fedi/walter.