summarylogtreecommitdiffstats
path: root/bozohttpd_ssl.service
diff options
context:
space:
mode:
Diffstat (limited to 'bozohttpd_ssl.service')
-rw-r--r--bozohttpd_ssl.service26
1 files changed, 26 insertions, 0 deletions
diff --git a/bozohttpd_ssl.service b/bozohttpd_ssl.service
new file mode 100644
index 000000000000..46e43fc3511c
--- /dev/null
+++ b/bozohttpd_ssl.service
@@ -0,0 +1,26 @@
+[Unit]
+Description=the bozotic HTTP server (SSL)
+After=syslog.target
+After=network.target
+
+[Service]
+PIDFile=/run/bozohttpd_ssl.pid
+StandardOutput=null
+#
+# Simplest use:
+ExecStart=/usr/bin/bozohttpd -b -f -s -U nobody -I 443 -P /run/bozohttpd_ssl.pid -Z /etc/ssl/private/bozohttpd.crt /etc/ssl/private/bozohttpd.key /srv/http
+#
+# Enable directory indexing:
+#ExecStart=/usr/bin/bozohttpd -b -f -s -X -U nobody -I 443 -P /run/bozohttpd_ssl.pid -Z /etc/ssl/private/bozohttpd.crt /etc/ssl/private/bozohttpd.key /srv/http
+#
+# Enable CGI:
+#ExecStart=/usr/bin/bozohttpd -b -f -s -c /usr/lib/cgi-bin -U nobody -I 443 -P /run/bozohttpd_ssl.pid -Z /etc/ssl/private/bozohttpd.crt /etc/ssl/private/bozohttpd.key /srv/http
+#
+# Enable PHP and set default to index.php (instead of index.html):
+#ExecStart=/usr/bin/bozohttpd -b -f -s -C .php /usr/bin/php-cgi -x index.php -U nobody -I 443 -P /run/bozohttpd_ssl.pid -Z /etc/ssl/private/bozohttpd.crt /etc/ssl/private/bozohttpd.key /srv/http
+#
+# Enable Lua scripting:
+#ExecStart=/usr/bin/bozohttpd -b -f -s -L rest /usr/lib/cgi-bin/printenv.lua -U nobody -I 443 -P /run/bozohttpd_ssl.pid -Z /etc/ssl/private/bozohttpd.crt /etc/ssl/private/bozohttpd.key /srv/http
+
+[Install]
+WantedBy=multi-user.target