-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlighttpd.conf
45 lines (38 loc) · 1.55 KB
/
lighttpd.conf
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
44
45
# Configuring lighttpd for use with littlefinger
# First off, enable FastCGI support in lighttpd. This is as easy as:
# sudo lighty-enable-mod fastcgi
# Second, edit the /etc/lighttpd/lighttpd.conf file. You'll need to add a few
# variables near the top (before the server configuration section):
# var.littlefinger-root = "PATH_TO_LITTLEFINGER_REPO_ROOT"
# var.littlefinger-data = "DATABASE_URI"
# var.littlefinger-ofx = "PATH_TO_OFXCLIENT_INI"
# The DATABASE_URI should include a protocol, and optionally username / password
# combinations. Littlefinger was developed (and tested) against sqlite, so I
# typically use a "sqlite:///" URI
# Third, modify the server.document-root to point to the distribution folder:
# server.document-root = var.littlefinger-root + "/www/dist"
# Finally, near the end of the configuration file, add a hook to include this
# configuration file, which sets up the fastcgi servers:
# include var.littlefinger-root + "/lighttpd.conf"
fastcgi.server = (
"/api" => ((
"socket" => "/tmp/littlefinger-api.sock",
"bin-path" => var.littlefinger-root + "/api.fcgi",
"bin-environment" => (
"LITTLEFINGER_DATA" => var.littlefinger-data,
"LITTLEFINGER_OFX" => var.littlefinger-ofx
),
"check-local" => "disable",
"max-procs" => 1
)),
"/raw" => ((
"socket" => "/tmp/littlefinger-raw.sock",
"bin-path" => var.littlefinger-root + "/raw.fcgi",
"bin-environment" => (
"LITTLEFINGER_DATA" => var.littlefinger-data,
"LITTLEFINGER_OFX" => var.littlefinger-ofx
),
"check-local" => "disable",
"max-procs" => 1
)),
)