simplify API device list
[mygpo.git] / mygpo.lighttpd.conf
blob002ff819c6d6738ffca50c5b250e35dba1b3a913
2 # my.gpodder.org configuration file for lighttpd
4 # This file is part of my.gpodder.org.
6 # my.gpodder.org is free software: you can redistribute it and/or modify it
7 # under the terms of the GNU Affero General Public License as published by
8 # the Free Software Foundation, either version 3 of the License, or (at your
9 # option) any later version.
11 # my.gpodder.org is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
14 # License for more details.
16 # You should have received a copy of the GNU Affero General Public License
17 # along with my.gpodder.org. If not, see <http://www.gnu.org/licenses/>.
21 # How to setup for lighttpd (on Debian):
22 #   - Copy this file to /etc/lighttpd/
23 #   - Edit var.mygpo_home and var.mygpo_domain below
24 #   - Add the following line to /etc/lighttpd/lighttpd.conf:
25 #     include "mygpo.lighttpd.conf"
27 # http://iamtgc.com/2007/07/04/django-on-lighttpd-with-fastcgi/
28 # http://docs.djangoproject.com/en/dev/howto/deployment/fastcgi/
31 var.mygpo_home = "/srv/mygpo"
32 var.mygpo_domain = "my.gpodder.org"
34 server.document-root = mygpo_home + "/htdocs",
35 server.errorlog = mygpo_home + "/logs/error.log",
36 accesslog.filename = mygpo_home + "/logs/access.log",
38 fastcgi.server = (
39         "/mygpo.fcgi" => (
40                 "main" => (
41                         "bin-path" => mygpo_home + "/mygpo.fcgi",
42                         "socket" => "/tmp/mygpo-" + mygpo_domain + ".sock",
43                         "check-local" => "disable",
44                         "min-procs" => 1,
45                         "max-procs" => 1,
46                 )
47         )
50 url.rewrite-once = (
51         "^(/media.*)$" => "$1",
52         "^/(favicon\.ico|favicon\.png|robots\.txt)$" => "/$1",
53         "^(/.*)$" => "/mygpo.fcgi$1",
56 server.error-handler-404 = "/mygpo.fcgi"