about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-07-21 18:37:45 -0400
committerJune McEnroe <june@causal.agency>2020-07-21 18:37:45 -0400
commit9cd4bdab846b50c8a41dc1fdd89b789338d7c810 (patch)
tree65214889aa7e9bf3eeb45873819d1860b2af482a
parentUse a .pc file to configure (diff)
downloadscooper-9cd4bdab846b50c8a41dc1fdd89b789338d7c810.tar.gz
scooper-9cd4bdab846b50c8a41dc1fdd89b789338d7c810.zip
Add OpenBSD instructions
Diffstat (limited to '')
-rw-r--r--README.732
1 files 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