commit 7365f8f

default  ·  2023-10-18 19:31:05 +0000 UTC
parent 5188717
Updated documentation.
1 files changed,  +34, -1
+34, -1
 1@@ -386,7 +386,6 @@ location /.well-known/nodeinfo {
 2     proxy_pass http://localhost:8001;
 3     proxy_set_header Host $http_host;
 4 }
 5-
 6 .Ed
 7 .Pp
 8 Restart the nginx daemon and connect to
 9@@ -395,6 +394,40 @@ The empty, default screen will be shown. Enter the admin section with the
10 credentials defined for this user. Search people, start following
11 them, engage in arid discussions and generally enjoy the frustrating
12 experience of Social Media.
13+.Pp
14+The following example configures OpenBSD's httpd as a frontend using the
15+FastCGI interface. There is no need to use relayd, as httpd includes
16+native FastCGI support (please take note that you must reconfigure
17+.Nm
18+by setting the fastcgi value to true in the
19+.Pa server.json
20+configuration file). Add the following to the example.com server section in
21+.Pa /etc/httpd.conf :
22+.Bd -literal -offset indent
23+location "/social*" {
24+    fastcgi socket tcp "127.0.0.1" 8001
25+}
26+
27+location "/.well-known/webfinger" {
28+    fastcgi socket tcp "127.0.0.1" 8001
29+}
30+
31+location "/oauth/*" {
32+    fastcgi socket tcp "127.0.0.1" 8001
33+}
34+
35+location "/api/v1/*" {
36+    fastcgi socket tcp "127.0.0.1" 8001
37+}
38+
39+location "/api/v2/*" {
40+    fastcgi socket tcp "127.0.0.1" 8001
41+}
42+
43+location "/.well-known/nodeinfo" {
44+    fastcgi socket tcp "127.0.0.1" 8001
45+}
46+.Ed
47 .Sh SEE ALSO
48 .Xr snac 1 ,
49 .Xr snac 5