summaryrefslogtreecommitdiff
path: root/lighttpd.conf
blob: cd9d562d6660fe0fbdc3df29e12c1d103903625d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
server.modules = (
  "mod_alias",
  "mod_auth",
  "mod_authn_file",
  "mod_cgi",
  "mod_rewrite",
  "mod_setenv"
)

server.bind = "0.0.0.0"
server.port = 8080
server.username = "git"
server.groupname = "git"
server.document-root = "/var/www/localhost/htdocs"
server.pid-file = "/run/lighttpd/lighttpd.pid"

index-file.names = ("index.html")

alias.url = (
  "/cgit.cgi" => "/usr/share/webapps/cgit/cgit.cgi",
  "/cgit.css" => "/usr/share/webapps/cgit/cgit.css",
  "/cgit.png" => "/usr/share/webapps/cgit/cgit.png",
  "/cgit" => "/usr/share/webapps/cgit/cgit.cgi",
  "/favicon.ico" => "/usr/share/webapps/cgit/favicon.ico",
  "/robots.txt" => "/usr/share/webapps/cgit/robots.txt",
  "/git" => "/usr/local/libexec/git-http-backend.cgi"
)

url.rewrite-once = (
  "^/$" => "/cgit"
)

cgi.assign = (
  ".cgi" => ""
)

setenv.add-environment = (
  "CGIT_CONFIG" => "/etc/cgitrc",
  "GIT_PROJECT_ROOT" => "/var/lib/git",
  "GIT_HTTP_EXPORT_ALL" => "1"
)

include "/etc/lighttpd/auth.conf"