summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/snac.829
1 files changed, 22 insertions, 7 deletions
diff --git a/doc/snac.8 b/doc/snac.8
index 90b5313..bdfd48b 100644
--- a/doc/snac.8
+++ b/doc/snac.8
@@ -395,15 +395,30 @@ credentials defined for this user. Search people, start following
395them, engage in arid discussions and generally enjoy the frustrating 395them, engage in arid discussions and generally enjoy the frustrating
396experience of Social Media. 396experience of Social Media.
397.Pp 397.Pp
398The following example configures OpenBSD's httpd as a frontend using the 398Since version 2.43,
399FastCGI interface. There is no need to use relayd, as httpd includes
400native FastCGI support (please take note that you must reconfigure
401.Nm 399.Nm
402by setting the fastcgi value to true in the 400supports communicating from / to the front end http server using the FastCGI
403.Pa server.json 401protocol. There is no special advantage in using this, only that some servers
404configuration file). Add the following to the example.com server section in 402allow for simpler configuration. For example, in the case of nginx, you can
405.Pa /etc/httpd.conf : 403replace the two 'proxy_pass' and 'proxy_set_header' lines in the example
404above with just
406.Bd -literal -offset indent 405.Bd -literal -offset indent
406fastcgi_pass localhost:8001;
407.Ed
408.Pp
409The only thing to change on
410.Nm
411size is to the set 'fastcgi' value to true in
412.Pa server.json .
413.Pp
414Further, using the FastCGI interface allows a much simpler configuration
415under OpenBSD's native httpd, given that it's natively implemented there
416and you no longer need to configure the complicated relayd server. This is
417an example:
418.Bd -literal -offset indent
419# other server configuration
420[...]
421
407location "/fedi*" { 422location "/fedi*" {
408 fastcgi socket tcp "127.0.0.1" 8001 423 fastcgi socket tcp "127.0.0.1" 8001
409} 424}