From 9cd4bdab846b50c8a41dc1fdd89b789338d7c810 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Tue, 21 Jul 2020 18:37:45 -0400 Subject: Add OpenBSD instructions --- README.7 | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/README.7 b/README.7 index 1dc7bf9..6f1ecd0 100644 --- a/README.7 +++ b/README.7 @@ -19,6 +19,8 @@ and full-text search. .Nm targets .Fx +and +.Ox , and requires .Lk "https://kristaps.bsd.lv/kcgi/" kcgi and SQLite. @@ -65,7 +67,7 @@ See .Xr scooper 1 for details. . -.Ss FastCGI & nginx +.Ss nginx Use .Xr kfcgi 8 to run @@ -77,7 +79,6 @@ kfcgi -u www -s /var/run/scooper.sock \e -U $user -p /home/$user/.local \e -- /bin/scooper /share/litterbox/litterbox.sqlite .Ed -. .Pp Configure .Xr nginx 8 @@ -95,6 +96,33 @@ location /scooper/ { } .Ed . +.Ss OpenBSD httpd +Use +.Xr kfcgi 8 +to run +.Nm +as the user who owns +.Xr litterbox 1 : +.Bd -literal -offset indent +kfcgi -u www -s /var/www/run/scooper.sock \e + -U $user -p /home/$user/.local \e + -- /bin/scooper /share/litterbox/litterbox.sqlite +.Ed +.Pp +Configure +.Xr httpd 8 +to serve +.Nm +at +.Pa /scooper/ , +for example: +.Bd -literal -offset indent +location "/scooper/*" { + request strip 1 + fastcgi socket "/run/scooper.sock" +} +.Ed +. .Sh FILES .Bl -tag -width "default.css" -compact .It Pa server.h -- cgit 1.4.1