commit 71225fc

default  ·  2023-10-22 15:49:03 +0000 UTC
parent 7a71046
Updated documentation.
1 files changed,  +22, -7
+22, -7
 1@@ -395,15 +395,30 @@ credentials defined for this user. Search people, start following
 2 them, engage in arid discussions and generally enjoy the frustrating
 3 experience of Social Media.
 4 .Pp
 5-The following example configures OpenBSD's httpd as a frontend using the
 6-FastCGI interface. There is no need to use relayd, as httpd includes
 7-native FastCGI support (please take note that you must reconfigure
 8+Since version 2.43,
 9 .Nm
10-by setting the fastcgi value to true in the
11-.Pa server.json
12-configuration file). Add the following to the example.com server section in
13-.Pa /etc/httpd.conf :
14+supports communicating from / to the front end http server using the FastCGI
15+protocol. There is no special advantage in using this, only that some servers
16+allow for simpler configuration. For example, in the case of nginx, you can
17+replace the two 'proxy_pass' and 'proxy_set_header' lines in the example
18+above with just
19 .Bd -literal -offset indent
20+fastcgi_pass localhost:8001;
21+.Ed
22+.Pp
23+The only thing to change on
24+.Nm
25+size is to the set 'fastcgi' value to true in
26+.Pa server.json .
27+.Pp
28+Further, using the FastCGI interface allows a much simpler configuration
29+under OpenBSD's native httpd, given that it's natively implemented there
30+and you no longer need to configure the complicated relayd server. This is
31+an example:
32+.Bd -literal -offset indent
33+# other server configuration
34+[...]
35+
36 location "/fedi*" {
37     fastcgi socket tcp "127.0.0.1" 8001
38 }