snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit 7365f8fc4a0883f27d443e7732a036362c61e78a
parent 51887172a90885136a5d8994ce807fab8276b878
Author: default <nobody@localhost>
Date:   Wed, 18 Oct 2023 21:31:05 +0200

Updated documentation.

Diffstat:
Mdoc/snac.8 | 35++++++++++++++++++++++++++++++++++-
1 file changed, 34 insertions(+), 1 deletion(-)

diff --git a/doc/snac.8 b/doc/snac.8 @@ -386,7 +386,6 @@ location /.well-known/nodeinfo { proxy_pass http://localhost:8001; proxy_set_header Host $http_host; } - .Ed .Pp Restart the nginx daemon and connect to @@ -395,6 +394,40 @@ The empty, default screen will be shown. Enter the admin section with the credentials defined for this user. Search people, start following them, engage in arid discussions and generally enjoy the frustrating experience of Social Media. +.Pp +The following example configures OpenBSD's httpd as a frontend using the +FastCGI interface. There is no need to use relayd, as httpd includes +native FastCGI support (please take note that you must reconfigure +.Nm +by setting the fastcgi value to true in the +.Pa server.json +configuration file). Add the following to the example.com server section in +.Pa /etc/httpd.conf : +.Bd -literal -offset indent +location "/social*" { + fastcgi socket tcp "127.0.0.1" 8001 +} + +location "/.well-known/webfinger" { + fastcgi socket tcp "127.0.0.1" 8001 +} + +location "/oauth/*" { + fastcgi socket tcp "127.0.0.1" 8001 +} + +location "/api/v1/*" { + fastcgi socket tcp "127.0.0.1" 8001 +} + +location "/api/v2/*" { + fastcgi socket tcp "127.0.0.1" 8001 +} + +location "/.well-known/nodeinfo" { + fastcgi socket tcp "127.0.0.1" 8001 +} +.Ed .Sh SEE ALSO .Xr snac 1 , .Xr snac 5