diff options
| author | Fuwn <[email protected]> | 2026-01-03 00:27:05 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-01-03 00:27:05 -0800 |
| commit | 4c50005038d79173c6577deda73f8ca49f74fa19 (patch) | |
| tree | 951872d59da8d32c72b619a232ec88f3d164e5df /lighttpd.conf | |
| download | cgit-docker-4c50005038d79173c6577deda73f8ca49f74fa19.tar.xz cgit-docker-4c50005038d79173c6577deda73f8ca49f74fa19.zip | |
Diffstat (limited to 'lighttpd.conf')
| -rw-r--r-- | lighttpd.conf | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/lighttpd.conf b/lighttpd.conf new file mode 100644 index 0000000..822f7c2 --- /dev/null +++ b/lighttpd.conf @@ -0,0 +1,33 @@ +server.modules = ( + "mod_access", + "mod_cgi", + "mod_alias", + "mod_rewrite", + "mod_setenv" +) + +server.document-root = "/var/www/html" +server.port = 80 +server.errorlog = "-" + +cgi.assign = ( ".cgi" => "" ) + +alias.url = ( + "/cgit.cgi" => "/usr/lib/cgit/cgit.cgi" +) + +url.rewrite-once = ( + "^/(cgit\\.css|cgit\\.png|custom\\.css)$" => "$0", + "^/$" => "/cgit.cgi", + "^/(.*)$" => "/cgit.cgi/$1" +) + +setenv.add-environment = ( + "GIT_PROJECT_ROOT" => "/git", + "GIT_HTTP_EXPORT_ALL" => "1" +) + +mimetype.assign = ( + ".css" => "text/css", + ".txt" => "text/plain" +) |