summaryrefslogtreecommitdiff
path: root/etc/lighttpd/lorry-controller-webapp-httpd.conf
blob: 68f67c59889724478bef6ee61d09859b3acb2384 (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
server.document-root = "/var/www/htdocs"

server.bind = "127.0.0.1"
server.port = 12765

server.username = "lorry"
server.groupname = "lorry"

server.modules += ("mod_cgi", "mod_fastcgi")

mimetype.assign = (
  ".html" => "text/html",
  ".txt" => "text/plain",
  ".jpg" => "image/jpeg",
  ".png" => "image/png",
  ".css" => "text/css"
)

$SERVER["socket"] == "127.0.0.1:12765" {
    server.username = "lorry"
    server.groupname = "lorry"
    fastcgi.server = (
        "/" =>
        (
            "python-fcgi" =>
                (
                    "socket" => "/run/lighttpd-lorry/lorry-controller-webapp.socket",
                    "bin-path" => "/usr/bin/lorry-controller-webapp --config=/etc/lorry-controller/webapp.conf",
                    "check-local" => "disable",
                    # Pass full request path as PATH_INFO
                    "fix-root-scriptname" => "enable",
                    "max-procs" => 1,
                )
        )
    )
}