Exemplo n.º 1
0
* WEB_CONF_PATH specifies a base path where configuration files can be found
* WEB_CONF_FILES is a ':' separated list of configuration files. The extension can be omitted if it is .cfg.

Example:

    $ export WEB_CONF_PATH=/opt/intogen/conf
    $ export WEB_CONF_FILES=web:limits

This will load:

* /opt/intogen/conf/web.cfg
* /opt/intogen/conf/limits.cfg
"""

app.load_conf(conf_files=["web.cfg"])

# plug middleware apps

app.wsgi_app = ReverseProxied(app.wsgi_app)

# http://werkzeug.pocoo.org/docs/middlewares/#werkzeug.wsgi.SharedDataMiddleware

app.wsgi_app = SharedDataMiddleware(app.wsgi_app, {
    '/help' : os.path.join(os.path.dirname(__file__), "help")
})

# Wok server -----------------------------------------------------------------------------------------------------------

"""
The following app configuration variables or environment variables can be defined: