summaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@archlinux.org>2015-06-28 18:02:38 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2015-06-28 18:03:21 +0200
commitc89bf51af26003d01fb73eece3899c2b6e97e7bd (patch)
treed802488c80cfe9f2057840d0384eec5944a27f11 /conf
parent552a297a498c2fc0c1fb53bae4d4ad76a165e807 (diff)
downloadaurweb-c89bf51af26003d01fb73eece3899c2b6e97e7bd.tar.xz
Update sample configuration for Smart HTTP
Using uWSGI for the Smart HTTP protocol caused some issues, see e.g. FS#45428. Suggest using fcgiwrap instead which is more lightweight, has better documentation and is easier to debug. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'conf')
-rw-r--r--conf/fcgiwrap.service.proto11
-rw-r--r--conf/fcgiwrap.socket.proto11
2 files changed, 22 insertions, 0 deletions
diff --git a/conf/fcgiwrap.service.proto b/conf/fcgiwrap.service.proto
new file mode 100644
index 0000000..c4e8544
--- /dev/null
+++ b/conf/fcgiwrap.service.proto
@@ -0,0 +1,11 @@
+[Unit]
+Description=Simple CGI Server
+After=nss-user-lookup.target
+
+[Service]
+ExecStart=/usr/sbin/fcgiwrap
+User=aur
+Group=aur
+
+[Install]
+Also=fcgiwrap.socket
diff --git a/conf/fcgiwrap.socket.proto b/conf/fcgiwrap.socket.proto
new file mode 100644
index 0000000..a1bc826
--- /dev/null
+++ b/conf/fcgiwrap.socket.proto
@@ -0,0 +1,11 @@
+[Unit]
+Description=fcgiwrap Socket
+
+[Socket]
+ListenStream=/run/fcgiwrap.sock
+SocketUser=http
+SocketGroup=http
+SocketMode=0700
+
+[Install]
+WantedBy=sockets.target