summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/snac.840
1 files changed, 40 insertions, 0 deletions
diff --git a/doc/snac.8 b/doc/snac.8
index f8fb14c..ffdbd44 100644
--- a/doc/snac.8
+++ b/doc/snac.8
@@ -363,6 +363,8 @@ snac httpd /home/snacusr/fedidata
363Edit the nginx configuration and add the following snippet to the 363Edit the nginx configuration and add the following snippet to the
364example.com server section: 364example.com server section:
365.Bd -literal -offset indent 365.Bd -literal -offset indent
366# nginx configuration example
367
366# main web access point 368# main web access point
367location /fedi { 369location /fedi {
368 proxy_pass http://localhost:8001; 370 proxy_pass http://localhost:8001;
@@ -401,6 +403,42 @@ credentials defined for this user. Search people, start following
401them, engage in arid discussions and generally enjoy the frustrating 403them, engage in arid discussions and generally enjoy the frustrating
402experience of Social Media. 404experience of Social Media.
403.Pp 405.Pp
406This is an example of a similar configuration for the Apache2 web server:
407.Bd -literal -offset indent
408# apache2 configuration example
409
410ProxyPreserveHost On
411
412# Main web access point
413<Location /social>
414 ProxyPass http://127.0.0.1:8001/social
415</Location>
416
417# WebFinger
418<Location /.well-known/webfinger>
419 ProxyPass http://127.0.0.1:8001/.well-known/webfinger
420</Location>
421
422# NodeInfo (optional)
423<Location /.well-known/nodeinfo>
424 ProxyPass http://127.0.0.1:8001/.well-known/nodeinfo
425</Location>
426
427# Mastodon API (entry points)
428<Location /api/v1/>
429 ProxyPass http://127.0.0.1:8001/api/v1/
430</Location>
431
432<Location /api/v2/>
433 ProxyPass http://127.0.0.1:8001/api/v2/
434</Location>
435
436# Mastodon API (OAuth support)
437<Location /oauth>
438 ProxyPass http://127.0.0.1:8001/oauth
439</Location>
440.Ed
441.Pp
404Since version 2.43, 442Since version 2.43,
405.Nm 443.Nm
406supports communicating from / to the front end http server using the FastCGI 444supports communicating from / to the front end http server using the FastCGI
@@ -422,6 +460,8 @@ under OpenBSD's native httpd, given that it's natively implemented there
422and you no longer need to configure the complicated relayd server. This is 460and you no longer need to configure the complicated relayd server. This is
423an example: 461an example:
424.Bd -literal -offset indent 462.Bd -literal -offset indent
463# OpenBSD httpd configuration example
464
425# other server configuration 465# other server configuration
426[...] 466[...]
427 467