diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2026-08-31 17:10:07 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2026-08-31 17:10:07 +0200 |
| commit | 66b54db812b01f5b944b0e5694a1473bdbcbaf32 (patch) | |
| tree | 177d8c6120c8df5e5a63162417258e1522951c11 /lighttpd.conf | |
| download | cgit-config-master.tar.gz cgit-config-master.zip | |
Diffstat (limited to '')
| -rw-r--r-- | lighttpd.conf | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lighttpd.conf b/lighttpd.conf new file mode 100644 index 0000000..43d6c00 --- /dev/null +++ b/lighttpd.conf | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | # Minimal lighttpd configuration for local testing | ||
| 2 | |||
| 3 | server.document-root = "/usr/share/webapps/cgit" | ||
| 4 | server.port = 8080 | ||
| 5 | server.bind = "localhost" | ||
| 6 | server.username = "sebastiano" | ||
| 7 | server.groupname = "sebastiano" | ||
| 8 | |||
| 9 | server.modules = ( "mod_cgi", "mod_rewrite", "mod_setenv" ) | ||
| 10 | |||
| 11 | mimetype.assign = ( | ||
| 12 | ".css" => "text/css", | ||
| 13 | ".png" => "image/png", | ||
| 14 | ".ico" => "image/x-icon", | ||
| 15 | ) | ||
| 16 | |||
| 17 | cgi.assign = ( "cgit.cgi" => "" ) | ||
| 18 | setenv.add-environment = ( "CGIT_CONFIG" => "/etc/cgitrc" ) | ||
| 19 | |||
| 20 | url.rewrite-once = ( | ||
| 21 | "^/custom/(.*)$" => "/custom/$1", | ||
| 22 | "^/(cgit\.css|cgit\.js)(\?.*)?$" => "/$1", | ||
| 23 | "^/([^?/]+/[^?]*)?(?:\?(.*))?$" => "/cgit.cgi?url=$1&$2", | ||
| 24 | ) | ||
