summaryrefslogtreecommitdiff
path: root/usr/local/etc/lighttpd
diff options
context:
space:
mode:
author53hornet <atc@53hor.net>2021-12-29 18:40:34 -0500
committer53hornet <atc@53hor.net>2021-12-29 18:40:34 -0500
commitb42e16cee761c186cf8ea7166502933b65328b5e (patch)
treed9f34f1c88b58e03c5636f9db6b37a79564f31fe /usr/local/etc/lighttpd
downloadcgit-b42e16cee761c186cf8ea7166502933b65328b5e.tar.xz
cgit-b42e16cee761c186cf8ea7166502933b65328b5e.zip
feat: add bastillefile, lighttpd config, and cgit config
Diffstat (limited to 'usr/local/etc/lighttpd')
-rw-r--r--usr/local/etc/lighttpd/conf.d/access_log.conf2
-rw-r--r--usr/local/etc/lighttpd/conf.d/cgi.conf2
-rw-r--r--usr/local/etc/lighttpd/lighttpd.conf12
3 files changed, 16 insertions, 0 deletions
diff --git a/usr/local/etc/lighttpd/conf.d/access_log.conf b/usr/local/etc/lighttpd/conf.d/access_log.conf
new file mode 100644
index 0000000..71586e9
--- /dev/null
+++ b/usr/local/etc/lighttpd/conf.d/access_log.conf
@@ -0,0 +1,2 @@
+server.modules += ( "mod_accesslog" )
+accesslog.filename = log_root + "/access.log"
diff --git a/usr/local/etc/lighttpd/conf.d/cgi.conf b/usr/local/etc/lighttpd/conf.d/cgi.conf
new file mode 100644
index 0000000..b1ad517
--- /dev/null
+++ b/usr/local/etc/lighttpd/conf.d/cgi.conf
@@ -0,0 +1,2 @@
+server.modules += ( "mod_cgi" )
+cgi.assign = ( ".cgi" => "" )
diff --git a/usr/local/etc/lighttpd/lighttpd.conf b/usr/local/etc/lighttpd/lighttpd.conf
new file mode 100644
index 0000000..277ac25
--- /dev/null
+++ b/usr/local/etc/lighttpd/lighttpd.conf
@@ -0,0 +1,12 @@
+var.log_root = "/var/log/lighttpd"
+include "conf.d/access_log.conf"
+include "conf.d/mime.conf"
+include "conf.d/cgi.conf"
+index-file.names += ("cgit.cgi")
+server.document-root = "/usr/local/www/cgit"
+server.errorlog = log_root + "/error.log"
+server.breakagelog = log_root + "/breakage.log"
+server.network-backend = "sendfile"
+server.port = 80
+server.username = "www"
+server.groupname = "www"