[11149] | 1 | # deploy.ini |
---|
| 2 | # |
---|
| 3 | # Deployment configuration for use with paster/WSGI |
---|
| 4 | # |
---|
| 5 | |
---|
| 6 | [loggers] |
---|
| 7 | keys = root, wsgi, async, async_trace |
---|
| 8 | |
---|
| 9 | [handlers] |
---|
| 10 | keys = null, console, accesslog, asynclog, async_tracelog |
---|
| 11 | |
---|
| 12 | [formatters] |
---|
| 13 | keys = generic, accesslog |
---|
| 14 | |
---|
| 15 | [logger_root] |
---|
| 16 | level = INFO |
---|
| 17 | handlers = console |
---|
| 18 | |
---|
| 19 | [logger_wsgi] |
---|
| 20 | level = INFO |
---|
| 21 | #handlers = accesslog |
---|
| 22 | handlers = null |
---|
| 23 | qualname = wsgi |
---|
| 24 | propagate = 0 |
---|
| 25 | |
---|
| 26 | [logger_async] |
---|
| 27 | level = INFO |
---|
| 28 | handlers = asynclog |
---|
| 29 | qualname = zc.async |
---|
| 30 | propagate = 0 |
---|
| 31 | |
---|
| 32 | [logger_async_trace] |
---|
| 33 | level = INFO |
---|
| 34 | handlers = async_tracelog |
---|
| 35 | qualname = zc.async.trace |
---|
| 36 | propagate = 0 |
---|
| 37 | |
---|
| 38 | [handler_null] |
---|
| 39 | # you can use 'NullHandler' (w/o the path) if under Python 2.7+ |
---|
| 40 | class = waeup.kofa.utils.helpers.NullHandler |
---|
| 41 | args = () |
---|
| 42 | level = NOTSET |
---|
| 43 | |
---|
| 44 | [handler_console] |
---|
| 45 | class = StreamHandler |
---|
| 46 | args = (sys.stderr,) |
---|
| 47 | level = NOTSET |
---|
| 48 | formatter = generic |
---|
| 49 | |
---|
| 50 | [handler_accesslog] |
---|
| 51 | class = FileHandler |
---|
| 52 | args = (os.path.join(r'${zope_conf:logfiles}', 'zeo2.log'), |
---|
| 53 | 'a') |
---|
| 54 | level = INFO |
---|
| 55 | formatter = accesslog |
---|
| 56 | |
---|
| 57 | [handler_asynclog] |
---|
| 58 | class = FileHandler |
---|
| 59 | args = (os.path.join(r'${zope_conf:logfiles}', 'zeo2_async.log'), |
---|
| 60 | 'a') |
---|
| 61 | level = INFO |
---|
| 62 | formatter = generic |
---|
| 63 | |
---|
| 64 | [handler_async_tracelog] |
---|
| 65 | class = FileHandler |
---|
| 66 | args = (os.path.join(r'${zope_conf:logfiles}', 'zeo2_async_trace.log'), |
---|
| 67 | 'a') |
---|
| 68 | level = INFO |
---|
| 69 | formatter = generic |
---|
| 70 | |
---|
| 71 | [formatter_generic] |
---|
| 72 | format = %(asctime)s %(levelname)s [%(name)s] %(message)s |
---|
| 73 | |
---|
| 74 | [formatter_accesslog] |
---|
| 75 | format = %(message)s |
---|
| 76 | |
---|
| 77 | [filter:translogger] |
---|
| 78 | use = egg:Paste#translogger |
---|
| 79 | setup_console_handler = False |
---|
| 80 | logger_name = wsgi |
---|
| 81 | |
---|
| 82 | [app:content] |
---|
| 83 | use = egg:${kofa_params:devel_pkg} |
---|
| 84 | filter-with = translogger |
---|
| 85 | |
---|
| 86 | [app:static] |
---|
| 87 | use = egg:Paste#static |
---|
| 88 | document_root = %(LAYOUT_DIR)s/static/ |
---|
| 89 | |
---|
| 90 | [app:static_custom] |
---|
| 91 | use = egg:Paste#static |
---|
| 92 | document_root = %(LAYOUT_CUSTOM_DIR)s/static/ |
---|
| 93 | |
---|
| 94 | [composite:main] |
---|
| 95 | use = egg:Paste#urlmap |
---|
| 96 | /static = static |
---|
| 97 | /static_custom = static_custom |
---|
| 98 | / = default |
---|
| 99 | |
---|
| 100 | [server:main] |
---|
| 101 | use = egg:Paste#http |
---|
| 102 | host = ${kofa_params:host} |
---|
| 103 | port = ${kofa_params:zeo2_port} |
---|
| 104 | threadpool_workers = ${kofa_params:threadpool_workers} |
---|
| 105 | use_threadpool = True |
---|
| 106 | |
---|
| 107 | [filter:theme] |
---|
| 108 | use = egg:diazo |
---|
| 109 | rules = file:///%(LAYOUT_CUSTOM_DIR)s/rules.xml |
---|
| 110 | prefix = / |
---|
| 111 | doctype = <!DOCTYPE html> |
---|
| 112 | # set to true, if you want rules.xml being rebuild on each request |
---|
| 113 | debug = false |
---|
| 114 | |
---|
| 115 | [pipeline:default] |
---|
| 116 | pipeline = theme |
---|
| 117 | content |
---|
| 118 | [DEFAULT] |
---|
| 119 | # set the name of the zope.conf file |
---|
| 120 | zope_conf = %(here)s/zope_zeo2.conf |
---|
| 121 | env_vars = ZC_ASYNC_UUID ${buildout:directory}/var/uuid2.txt |
---|
| 122 | # the directory where all real diazo config is done (no trailing slash) |
---|
| 123 | LAYOUT_DIR = ${buildout:directory}/sources/waeup.kofa/layout |
---|
| 124 | STATIC_DIR = %(LAYOUT_DIR)s/static |
---|
| 125 | LAYOUT_CUSTOM_DIR = ${buildout:directory}/layout |
---|
| 126 | STATIC_CUSTOM_DIR = %(LAYOUT_CUSTOM_DIR)s/static |
---|