Zine

open source content publishing system


source: servers/zine.wsgi @ 1279:088d2f519391

Revision 1279:088d2f519391, 1.4 KB checked in by Georg Brandl <georg@…>, 2 years ago (diff)

Update copyright notices.

Line 
1# -*- coding: utf-8 -*-
2"""
3    Zine mod_wsgi Runner
4    ~~~~~~~~~~~~~~~~~~~~
5
6    Run Zine in mod_wsgi.  For help on configuration have a look at the
7    README file.
8
9    :copyright: (c) 2010 by the Zine Team, see AUTHORS for more details.
10    :license: BSD, see LICENSE for more details.
11"""
12
13# path to the instance. the folder for the instance must exist,
14# if there is not instance information in that folder the websetup
15# will show an assistent
16INSTANCE_FOLDER = '/path/to/instance/folder'
17
18# path to the Zine application code.
19ZINE_LIB = '/usr/lib/zine'
20
21# these values can be use to override database pool settings.
22# see deployment guide for more details.
23POOL_SIZE = None
24POOL_RECYCLE = None
25POOL_TIMEOUT = None
26
27# if you are proxying into zine somehow (caching proxies or external
28# fastcgi servers) set this value to True to enable proxy support.  Do
29# not set this to True if you are not using proxies as this would be a
30# security risk.
31BEHIND_PROXY = None
32
33# ----------------------------------------------------------------------------
34# here you can further configure the wsgi app settings but usually you don't
35# have to touch them
36import sys
37import os
38if ZINE_LIB not in sys.path:
39    sys.path.insert(0, ZINE_LIB)
40
41from zine import get_wsgi_app, override_environ_config
42from flup.server.fcgi import WSGIServer
43override_environ_config(POOL_SIZE, POOL_RECYCLE, POOL_TIMEOUT, BEHIND_PROXY)
44application = get_wsgi_app(INSTANCE_FOLDER)
Note: See TracBrowser for help on using the repository browser.