summaryrefslogtreecommitdiff
path: root/etc/lighttpd.conf
diff options
context:
space:
mode:
Diffstat (limited to 'etc/lighttpd.conf')
-rw-r--r--etc/lighttpd.conf56
1 files changed, 56 insertions, 0 deletions
diff --git a/etc/lighttpd.conf b/etc/lighttpd.conf
new file mode 100644
index 0000000..a69407f
--- /dev/null
+++ b/etc/lighttpd.conf
@@ -0,0 +1,56 @@
+server.document-root = "/var/www/htdocs"
+
+server.port = 80
+
+server.username = "git"
+server.groupname = "git"
+
+server.modules += ("mod_cgi", "mod_fastcgi")
+
+index-file.names = ("index.html")
+
+cgi.assign = ("cgit.cgi" => "")
+
+mimetype.assign = (
+ ".html" => "text/html",
+ ".txt" => "text/plain",
+ ".jpg" => "image/jpeg",
+ ".png" => "image/png",
+ ".css" => "text/css"
+)
+
+
+$SERVER["socket"] == ":8080" {
+ server.username = "cache"
+ server.groupname = "cache"
+ fastcgi.server = (
+ "" =>
+ (
+ "python-fcgi" =>
+ (
+ "socket" => "/var/run/lighttpd/morph-cache-server.socket",
+ "bin-path" => "/usr/bin/morph-cache-server --config=/etc/morph-cache-server.conf",
+ "check-local" => "disable",
+ "max-procs" => 4,
+ )
+ )
+ )
+}
+
+
+$SERVER["socket"] == ":8081" {
+ server.username = "cache"
+ server.groupname = "cache"
+ fastcgi.server = (
+ "" =>
+ (
+ "python-fcgi" =>
+ (
+ "socket" => "/var/run/lighttpd/morph-cache-server-write.socket",
+ "bin-path" => "/usr/bin/morph-cache-server --config=/etc/morph-cache-server-write.conf",
+ "check-local" => "disable",
+ "max-procs" => 1,
+ )
+ )
+ )
+}