Show More
@@ -1,578 +1,581 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 | <%text>################################################################################</%text> |
|
2 | <%text>################################################################################</%text> | |
3 | <%text>################################################################################</%text> |
|
3 | <%text>################################################################################</%text> | |
4 | # Kallithea - config file generated with kallithea-config # |
|
4 | # Kallithea - config file generated with kallithea-config # | |
5 | <%text>################################################################################</%text> |
|
5 | <%text>################################################################################</%text> | |
6 | <%text>################################################################################</%text> |
|
6 | <%text>################################################################################</%text> | |
7 |
|
7 | |||
8 | [DEFAULT] |
|
8 | [DEFAULT] | |
9 | debug = true |
|
9 | debug = true | |
10 | pdebug = false |
|
10 | pdebug = false | |
11 |
|
11 | |||
12 | <%text>################################################################################</%text> |
|
12 | <%text>################################################################################</%text> | |
13 | <%text>## Uncomment and replace with the address which should receive ##</%text> |
|
13 | <%text>## Uncomment and replace with the address which should receive ##</%text> | |
14 | <%text>## any error reports after application crash ##</%text> |
|
14 | <%text>## any error reports after application crash ##</%text> | |
15 | <%text>## Additionally those settings will be used by Kallithea mailing system ##</%text> |
|
15 | <%text>## Additionally those settings will be used by Kallithea mailing system ##</%text> | |
16 | <%text>################################################################################</%text> |
|
16 | <%text>################################################################################</%text> | |
17 | #email_to = admin@localhost |
|
17 | #email_to = admin@localhost | |
18 | #error_email_from = paste_error@localhost |
|
18 | #error_email_from = paste_error@localhost | |
19 | #app_email_from = kallithea-noreply@localhost |
|
19 | #app_email_from = kallithea-noreply@localhost | |
20 | #email_prefix = [Kallithea] |
|
20 | #email_prefix = [Kallithea] | |
21 |
|
21 | |||
22 | #smtp_server = mail.server.com |
|
22 | #smtp_server = mail.server.com | |
23 | #smtp_username = |
|
23 | #smtp_username = | |
24 | #smtp_password = |
|
24 | #smtp_password = | |
25 | #smtp_port = |
|
25 | #smtp_port = | |
26 | #smtp_use_tls = false |
|
26 | #smtp_use_tls = false | |
27 | #smtp_use_ssl = false |
|
27 | #smtp_use_ssl = false | |
28 | <%text>## Specify available auth parameters here (e.g. LOGIN PLAIN CRAM-MD5, etc.)</%text> |
|
28 | <%text>## Specify available auth parameters here (e.g. LOGIN PLAIN CRAM-MD5, etc.)</%text> | |
29 | #smtp_auth = |
|
29 | #smtp_auth = | |
30 |
|
30 | |||
31 | [server:main] |
|
31 | [server:main] | |
32 | %if http_server == 'paste': |
|
32 | %if http_server == 'paste': | |
33 | <%text>## PASTE ##</%text> |
|
33 | <%text>## PASTE ##</%text> | |
34 | use = egg:Paste#http |
|
34 | use = egg:Paste#http | |
35 | <%text>## nr of worker threads to spawn</%text> |
|
35 | <%text>## nr of worker threads to spawn</%text> | |
36 | threadpool_workers = 5 |
|
36 | threadpool_workers = 5 | |
37 | <%text>## max request before thread respawn</%text> |
|
37 | <%text>## max request before thread respawn</%text> | |
38 | threadpool_max_requests = 10 |
|
38 | threadpool_max_requests = 10 | |
39 | <%text>## option to use threads of process</%text> |
|
39 | <%text>## option to use threads of process</%text> | |
40 | use_threadpool = true |
|
40 | use_threadpool = true | |
41 | %endif |
|
41 | ||
42 | %if http_server == 'waitress': |
|
42 | %elif http_server == 'waitress': | |
43 | <%text>## WAITRESS ##</%text> |
|
43 | <%text>## WAITRESS ##</%text> | |
44 | use = egg:waitress#main |
|
44 | use = egg:waitress#main | |
45 | <%text>## number of worker threads</%text> |
|
45 | <%text>## number of worker threads</%text> | |
46 | threads = 5 |
|
46 | threads = 5 | |
47 | <%text>## MAX BODY SIZE 100GB</%text> |
|
47 | <%text>## MAX BODY SIZE 100GB</%text> | |
48 | max_request_body_size = 107374182400 |
|
48 | max_request_body_size = 107374182400 | |
49 | <%text>## use poll instead of select, fixes fd limits, may not work on old</%text> |
|
49 | <%text>## use poll instead of select, fixes fd limits, may not work on old</%text> | |
50 | <%text>## windows systems.</%text> |
|
50 | <%text>## windows systems.</%text> | |
51 | #asyncore_use_poll = True |
|
51 | #asyncore_use_poll = True | |
52 | %endif |
|
52 | ||
53 | %if http_server == 'gunicorn': |
|
53 | %elif http_server == 'gunicorn': | |
54 | <%text>## GUNICORN ##</%text> |
|
54 | <%text>## GUNICORN ##</%text> | |
55 | use = egg:gunicorn#main |
|
55 | use = egg:gunicorn#main | |
56 | <%text>## number of process workers. You must set `instance_id = *` when this option</%text> |
|
56 | <%text>## number of process workers. You must set `instance_id = *` when this option</%text> | |
57 | <%text>## is set to more than one worker</%text> |
|
57 | <%text>## is set to more than one worker</%text> | |
58 | workers = 1 |
|
58 | workers = 1 | |
59 | <%text>## process name</%text> |
|
59 | <%text>## process name</%text> | |
60 | proc_name = kallithea |
|
60 | proc_name = kallithea | |
61 | <%text>## type of worker class, one of sync, eventlet, gevent, tornado</%text> |
|
61 | <%text>## type of worker class, one of sync, eventlet, gevent, tornado</%text> | |
62 | <%text>## recommended for bigger setup is using of of other than sync one</%text> |
|
62 | <%text>## recommended for bigger setup is using of of other than sync one</%text> | |
63 | worker_class = sync |
|
63 | worker_class = sync | |
64 | max_requests = 1000 |
|
64 | max_requests = 1000 | |
65 | <%text>## ammount of time a worker can handle request before it gets killed and</%text> |
|
65 | <%text>## ammount of time a worker can handle request before it gets killed and</%text> | |
66 | <%text>## restarted</%text> |
|
66 | <%text>## restarted</%text> | |
67 | timeout = 3600 |
|
67 | timeout = 3600 | |
68 | %endif |
|
68 | ||
69 | %if http_server == 'uwsgi': |
|
69 | %elif http_server == 'uwsgi': | |
70 | <%text>## UWSGI ##</%text> |
|
70 | <%text>## UWSGI ##</%text> | |
71 | <%text>## run with uwsgi --ini-paste-logged <inifile.ini></%text> |
|
71 | <%text>## run with uwsgi --ini-paste-logged <inifile.ini></%text> | |
72 | [uwsgi] |
|
72 | [uwsgi] | |
73 | socket = /tmp/uwsgi.sock |
|
73 | socket = /tmp/uwsgi.sock | |
74 | master = true |
|
74 | master = true | |
75 | http = 127.0.0.1:5000 |
|
75 | http = 127.0.0.1:5000 | |
76 |
|
76 | |||
77 | <%text>## set as deamon and redirect all output to file</%text> |
|
77 | <%text>## set as deamon and redirect all output to file</%text> | |
78 | #daemonize = ./uwsgi_kallithea.log |
|
78 | #daemonize = ./uwsgi_kallithea.log | |
79 |
|
79 | |||
80 | <%text>## master process PID</%text> |
|
80 | <%text>## master process PID</%text> | |
81 | pidfile = ./uwsgi_kallithea.pid |
|
81 | pidfile = ./uwsgi_kallithea.pid | |
82 |
|
82 | |||
83 | <%text>## stats server with workers statistics, use uwsgitop</%text> |
|
83 | <%text>## stats server with workers statistics, use uwsgitop</%text> | |
84 | <%text>## for monitoring, `uwsgitop 127.0.0.1:1717`</%text> |
|
84 | <%text>## for monitoring, `uwsgitop 127.0.0.1:1717`</%text> | |
85 | stats = 127.0.0.1:1717 |
|
85 | stats = 127.0.0.1:1717 | |
86 | memory-report = true |
|
86 | memory-report = true | |
87 |
|
87 | |||
88 | <%text>## log 5XX errors</%text> |
|
88 | <%text>## log 5XX errors</%text> | |
89 | log-5xx = true |
|
89 | log-5xx = true | |
90 |
|
90 | |||
91 | <%text>## Set the socket listen queue size.</%text> |
|
91 | <%text>## Set the socket listen queue size.</%text> | |
92 | listen = 256 |
|
92 | listen = 256 | |
93 |
|
93 | |||
94 | <%text>## Gracefully Reload workers after the specified amount of managed requests</%text> |
|
94 | <%text>## Gracefully Reload workers after the specified amount of managed requests</%text> | |
95 | <%text>## (avoid memory leaks).</%text> |
|
95 | <%text>## (avoid memory leaks).</%text> | |
96 | max-requests = 1000 |
|
96 | max-requests = 1000 | |
97 |
|
97 | |||
98 | <%text>## enable large buffers</%text> |
|
98 | <%text>## enable large buffers</%text> | |
99 | buffer-size=65535 |
|
99 | buffer-size = 65535 | |
100 |
|
100 | |||
101 | <%text>## socket and http timeouts ##</%text> |
|
101 | <%text>## socket and http timeouts ##</%text> | |
102 | http-timeout=3600 |
|
102 | http-timeout = 3600 | |
103 | socket-timeout=3600 |
|
103 | socket-timeout = 3600 | |
104 |
|
104 | |||
105 | <%text>## Log requests slower than the specified number of milliseconds.</%text> |
|
105 | <%text>## Log requests slower than the specified number of milliseconds.</%text> | |
106 | log-slow = 10 |
|
106 | log-slow = 10 | |
107 |
|
107 | |||
108 | <%text>## Exit if no app can be loaded.</%text> |
|
108 | <%text>## Exit if no app can be loaded.</%text> | |
109 | need-app = true |
|
109 | need-app = true | |
110 |
|
110 | |||
111 | <%text>## Set lazy mode (load apps in workers instead of master).</%text> |
|
111 | <%text>## Set lazy mode (load apps in workers instead of master).</%text> | |
112 | lazy = true |
|
112 | lazy = true | |
113 |
|
113 | |||
114 | <%text>## scaling ##</%text> |
|
114 | <%text>## scaling ##</%text> | |
115 | <%text>## set cheaper algorithm to use, if not set default will be used</%text> |
|
115 | <%text>## set cheaper algorithm to use, if not set default will be used</%text> | |
116 | cheaper-algo = spare |
|
116 | cheaper-algo = spare | |
117 |
|
117 | |||
118 | <%text>## minimum number of workers to keep at all times</%text> |
|
118 | <%text>## minimum number of workers to keep at all times</%text> | |
119 | cheaper = 1 |
|
119 | cheaper = 1 | |
120 |
|
120 | |||
121 | <%text>## number of workers to spawn at startup</%text> |
|
121 | <%text>## number of workers to spawn at startup</%text> | |
122 | cheaper-initial = 1 |
|
122 | cheaper-initial = 1 | |
123 |
|
123 | |||
124 | <%text>## maximum number of workers that can be spawned</%text> |
|
124 | <%text>## maximum number of workers that can be spawned</%text> | |
125 | workers = 4 |
|
125 | workers = 4 | |
126 |
|
126 | |||
127 | <%text>## how many workers should be spawned at a time</%text> |
|
127 | <%text>## how many workers should be spawned at a time</%text> | |
128 | cheaper-step = 1 |
|
128 | cheaper-step = 1 | |
|
129 | ||||
129 | %endif |
|
130 | %endif | |
130 | <%text>## COMMON ##</%text> |
|
131 | <%text>## COMMON ##</%text> | |
131 | host = ${host} |
|
132 | host = ${host} | |
132 | port = ${port} |
|
133 | port = ${port} | |
133 |
|
134 | |||
134 | <%text>## middleware for hosting the WSGI application under a URL prefix</%text> |
|
135 | <%text>## middleware for hosting the WSGI application under a URL prefix</%text> | |
135 | #[filter:proxy-prefix] |
|
136 | #[filter:proxy-prefix] | |
136 | #use = egg:PasteDeploy#prefix |
|
137 | #use = egg:PasteDeploy#prefix | |
137 | #prefix = /<your-prefix> |
|
138 | #prefix = /<your-prefix> | |
138 |
|
139 | |||
139 | [app:main] |
|
140 | [app:main] | |
140 | use = egg:kallithea |
|
141 | use = egg:kallithea | |
141 | <%text>## enable proxy prefix middleware</%text> |
|
142 | <%text>## enable proxy prefix middleware</%text> | |
142 | #filter-with = proxy-prefix |
|
143 | #filter-with = proxy-prefix | |
143 |
|
144 | |||
144 | full_stack = true |
|
145 | full_stack = true | |
145 | static_files = true |
|
146 | static_files = true | |
146 | <%text>## Available Languages:</%text> |
|
147 | <%text>## Available Languages:</%text> | |
147 | <%text>## cs de fr hu ja nl_BE pl pt_BR ru sk zh_CN zh_TW</%text> |
|
148 | <%text>## cs de fr hu ja nl_BE pl pt_BR ru sk zh_CN zh_TW</%text> | |
148 | lang = |
|
149 | lang = | |
149 | cache_dir = ${here}/data |
|
150 | cache_dir = ${here}/data | |
150 | index_dir = ${here}/data/index |
|
151 | index_dir = ${here}/data/index | |
151 |
|
152 | |||
152 | <%text>## perform a full repository scan on each server start, this should be</%text> |
|
153 | <%text>## perform a full repository scan on each server start, this should be</%text> | |
153 | <%text>## set to false after first startup, to allow faster server restarts.</%text> |
|
154 | <%text>## set to false after first startup, to allow faster server restarts.</%text> | |
154 | initial_repo_scan = false |
|
155 | initial_repo_scan = false | |
155 |
|
156 | |||
156 | <%text>## uncomment and set this path to use archive download cache</%text> |
|
157 | <%text>## uncomment and set this path to use archive download cache</%text> | |
157 | archive_cache_dir = ${here}/tarballcache |
|
158 | archive_cache_dir = ${here}/tarballcache | |
158 |
|
159 | |||
159 | <%text>## change this to unique ID for security</%text> |
|
160 | <%text>## change this to unique ID for security</%text> | |
160 | app_instance_uuid = ${uuid()} |
|
161 | app_instance_uuid = ${uuid()} | |
161 |
|
162 | |||
162 | <%text>## cut off limit for large diffs (size in bytes)</%text> |
|
163 | <%text>## cut off limit for large diffs (size in bytes)</%text> | |
163 | cut_off_limit = 256000 |
|
164 | cut_off_limit = 256000 | |
164 |
|
165 | |||
165 | <%text>## use cache version of scm repo everywhere</%text> |
|
166 | <%text>## use cache version of scm repo everywhere</%text> | |
166 | vcs_full_cache = true |
|
167 | vcs_full_cache = true | |
167 |
|
168 | |||
168 | <%text>## force https in Kallithea, fixes https redirects, assumes it's always https</%text> |
|
169 | <%text>## force https in Kallithea, fixes https redirects, assumes it's always https</%text> | |
169 | force_https = false |
|
170 | force_https = false | |
170 |
|
171 | |||
171 | <%text>## use Strict-Transport-Security headers</%text> |
|
172 | <%text>## use Strict-Transport-Security headers</%text> | |
172 | use_htsts = false |
|
173 | use_htsts = false | |
173 |
|
174 | |||
174 | <%text>## number of commits stats will parse on each iteration</%text> |
|
175 | <%text>## number of commits stats will parse on each iteration</%text> | |
175 | commit_parse_limit = 25 |
|
176 | commit_parse_limit = 25 | |
176 |
|
177 | |||
177 | <%text>## path to git executable</%text> |
|
178 | <%text>## path to git executable</%text> | |
178 | git_path = git |
|
179 | git_path = git | |
179 |
|
180 | |||
180 | <%text>## git rev filter option, --all is the default filter, if you need to</%text> |
|
181 | <%text>## git rev filter option, --all is the default filter, if you need to</%text> | |
181 | <%text>## hide all refs in changelog switch this to --branches --tags</%text> |
|
182 | <%text>## hide all refs in changelog switch this to --branches --tags</%text> | |
182 | #git_rev_filter = --branches --tags |
|
183 | #git_rev_filter = --branches --tags | |
183 |
|
184 | |||
184 | <%text>## RSS feed options</%text> |
|
185 | <%text>## RSS feed options</%text> | |
185 | rss_cut_off_limit = 256000 |
|
186 | rss_cut_off_limit = 256000 | |
186 | rss_items_per_page = 10 |
|
187 | rss_items_per_page = 10 | |
187 | rss_include_diff = false |
|
188 | rss_include_diff = false | |
188 |
|
189 | |||
189 | <%text>## options for showing and identifying changesets</%text> |
|
190 | <%text>## options for showing and identifying changesets</%text> | |
190 | show_sha_length = 12 |
|
191 | show_sha_length = 12 | |
191 | show_revision_number = false |
|
192 | show_revision_number = false | |
192 |
|
193 | |||
193 | <%text>## gist URL alias, used to create nicer urls for gist. This should be an</%text> |
|
194 | <%text>## gist URL alias, used to create nicer urls for gist. This should be an</%text> | |
194 | <%text>## url that does rewrites to _admin/gists/<gistid>.</%text> |
|
195 | <%text>## url that does rewrites to _admin/gists/<gistid>.</%text> | |
195 | <%text>## example: http://gist.kallithea.server/{gistid}. Empty means use the internal</%text> |
|
196 | <%text>## example: http://gist.kallithea.server/{gistid}. Empty means use the internal</%text> | |
196 | <%text>## Kallithea url, ie. http[s]://your.kallithea.server/_admin/gists/<gistid></%text> |
|
197 | <%text>## Kallithea url, ie. http[s]://your.kallithea.server/_admin/gists/<gistid></%text> | |
197 | gist_alias_url = |
|
198 | gist_alias_url = | |
198 |
|
199 | |||
199 | <%text>## white list of API enabled controllers. This allows to add list of</%text> |
|
200 | <%text>## white list of API enabled controllers. This allows to add list of</%text> | |
200 | <%text>## controllers to which access will be enabled by api_key. eg: to enable</%text> |
|
201 | <%text>## controllers to which access will be enabled by api_key. eg: to enable</%text> | |
201 | <%text>## api access to raw_files put `FilesController:raw`, to enable access to patches</%text> |
|
202 | <%text>## api access to raw_files put `FilesController:raw`, to enable access to patches</%text> | |
202 | <%text>## add `ChangesetController:changeset_patch`. This list should be "," separated</%text> |
|
203 | <%text>## add `ChangesetController:changeset_patch`. This list should be "," separated</%text> | |
203 | <%text>## Syntax is <ControllerClass>:<function>. Check debug logs for generated names</%text> |
|
204 | <%text>## Syntax is <ControllerClass>:<function>. Check debug logs for generated names</%text> | |
204 | <%text>## Recommended settings below are commented out:</%text> |
|
205 | <%text>## Recommended settings below are commented out:</%text> | |
205 | api_access_controllers_whitelist = |
|
206 | api_access_controllers_whitelist = | |
206 | # ChangesetController:changeset_patch, |
|
207 | # ChangesetController:changeset_patch, | |
207 | # ChangesetController:changeset_raw, |
|
208 | # ChangesetController:changeset_raw, | |
208 | # FilesController:raw, |
|
209 | # FilesController:raw, | |
209 | # FilesController:archivefile |
|
210 | # FilesController:archivefile | |
210 |
|
211 | |||
211 | <%text>## default encoding used to convert from and to unicode</%text> |
|
212 | <%text>## default encoding used to convert from and to unicode</%text> | |
212 | <%text>## can be also a comma seperated list of encoding in case of mixed encodings</%text> |
|
213 | <%text>## can be also a comma seperated list of encoding in case of mixed encodings</%text> | |
213 | default_encoding = utf8 |
|
214 | default_encoding = utf8 | |
214 |
|
215 | |||
215 | <%text>## issue tracker for Kallithea (leave blank to disable, absent for default)</%text> |
|
216 | <%text>## issue tracker for Kallithea (leave blank to disable, absent for default)</%text> | |
216 | #bugtracker = https://bitbucket.org/conservancy/kallithea/issues |
|
217 | #bugtracker = https://bitbucket.org/conservancy/kallithea/issues | |
217 |
|
218 | |||
218 | <%text>## issue tracking mapping for commits messages</%text> |
|
219 | <%text>## issue tracking mapping for commits messages</%text> | |
219 | <%text>## comment out issue_pat, issue_server, issue_prefix to enable</%text> |
|
220 | <%text>## comment out issue_pat, issue_server, issue_prefix to enable</%text> | |
220 |
|
221 | |||
221 | <%text>## pattern to get the issues from commit messages</%text> |
|
222 | <%text>## pattern to get the issues from commit messages</%text> | |
222 | <%text>## default one used here is #<numbers> with a regex passive group for `#`</%text> |
|
223 | <%text>## default one used here is #<numbers> with a regex passive group for `#`</%text> | |
223 | <%text>## {id} will be all groups matched from this pattern</%text> |
|
224 | <%text>## {id} will be all groups matched from this pattern</%text> | |
224 |
|
225 | |||
225 | issue_pat = (?:\s*#)(\d+) |
|
226 | issue_pat = (?:\s*#)(\d+) | |
226 |
|
227 | |||
227 | <%text>## server url to the issue, each {id} will be replaced with match</%text> |
|
228 | <%text>## server url to the issue, each {id} will be replaced with match</%text> | |
228 | <%text>## fetched from the regex and {repo} is replaced with full repository name</%text> |
|
229 | <%text>## fetched from the regex and {repo} is replaced with full repository name</%text> | |
229 | <%text>## including groups {repo_name} is replaced with just name of repo</%text> |
|
230 | <%text>## including groups {repo_name} is replaced with just name of repo</%text> | |
230 |
|
231 | |||
231 | issue_server_link = https://myissueserver.com/{repo}/issue/{id} |
|
232 | issue_server_link = https://myissueserver.com/{repo}/issue/{id} | |
232 |
|
233 | |||
233 | <%text>## prefix to add to link to indicate it's an url</%text> |
|
234 | <%text>## prefix to add to link to indicate it's an url</%text> | |
234 | <%text>## #314 will be replaced by <issue_prefix><id></%text> |
|
235 | <%text>## #314 will be replaced by <issue_prefix><id></%text> | |
235 |
|
236 | |||
236 | issue_prefix = # |
|
237 | issue_prefix = # | |
237 |
|
238 | |||
238 | <%text>## issue_pat, issue_server_link, issue_prefix can have suffixes to specify</%text> |
|
239 | <%text>## issue_pat, issue_server_link, issue_prefix can have suffixes to specify</%text> | |
239 | <%text>## multiple patterns, to other issues server, wiki or others</%text> |
|
240 | <%text>## multiple patterns, to other issues server, wiki or others</%text> | |
240 | <%text>## below an example how to create a wiki pattern</%text> |
|
241 | <%text>## below an example how to create a wiki pattern</%text> | |
241 | # wiki-some-id -> https://mywiki.com/some-id |
|
242 | # wiki-some-id -> https://mywiki.com/some-id | |
242 |
|
243 | |||
243 | #issue_pat_wiki = (?:wiki-)(.+) |
|
244 | #issue_pat_wiki = (?:wiki-)(.+) | |
244 | #issue_server_link_wiki = https://mywiki.com/{id} |
|
245 | #issue_server_link_wiki = https://mywiki.com/{id} | |
245 | #issue_prefix_wiki = WIKI- |
|
246 | #issue_prefix_wiki = WIKI- | |
246 |
|
247 | |||
247 | <%text>## instance-id prefix</%text> |
|
248 | <%text>## instance-id prefix</%text> | |
248 | <%text>## a prefix key for this instance used for cache invalidation when running</%text> |
|
249 | <%text>## a prefix key for this instance used for cache invalidation when running</%text> | |
249 | <%text>## multiple instances of kallithea, make sure it's globally unique for</%text> |
|
250 | <%text>## multiple instances of kallithea, make sure it's globally unique for</%text> | |
250 | <%text>## all running kallithea instances. Leave empty if you don't use it</%text> |
|
251 | <%text>## all running kallithea instances. Leave empty if you don't use it</%text> | |
251 | instance_id = |
|
252 | instance_id = | |
252 |
|
253 | |||
253 | <%text>## alternative return HTTP header for failed authentication. Default HTTP</%text> |
|
254 | <%text>## alternative return HTTP header for failed authentication. Default HTTP</%text> | |
254 | <%text>## response is 401 HTTPUnauthorized. Currently Mercurial clients have trouble with</%text> |
|
255 | <%text>## response is 401 HTTPUnauthorized. Currently Mercurial clients have trouble with</%text> | |
255 | <%text>## handling that. Set this variable to 403 to return HTTPForbidden</%text> |
|
256 | <%text>## handling that. Set this variable to 403 to return HTTPForbidden</%text> | |
256 | auth_ret_code = |
|
257 | auth_ret_code = | |
257 |
|
258 | |||
258 | <%text>## locking return code. When repository is locked return this HTTP code. 2XX</%text> |
|
259 | <%text>## locking return code. When repository is locked return this HTTP code. 2XX</%text> | |
259 | <%text>## codes don't break the transactions while 4XX codes do</%text> |
|
260 | <%text>## codes don't break the transactions while 4XX codes do</%text> | |
260 | lock_ret_code = 423 |
|
261 | lock_ret_code = 423 | |
261 |
|
262 | |||
262 | <%text>## allows to change the repository location in settings page</%text> |
|
263 | <%text>## allows to change the repository location in settings page</%text> | |
263 | allow_repo_location_change = True |
|
264 | allow_repo_location_change = True | |
264 |
|
265 | |||
265 | <%text>## allows to setup custom hooks in settings page</%text> |
|
266 | <%text>## allows to setup custom hooks in settings page</%text> | |
266 | allow_custom_hooks_settings = True |
|
267 | allow_custom_hooks_settings = True | |
267 |
|
268 | |||
268 | <%text>####################################</%text> |
|
269 | <%text>####################################</%text> | |
269 | <%text>### CELERY CONFIG ####</%text> |
|
270 | <%text>### CELERY CONFIG ####</%text> | |
270 | <%text>####################################</%text> |
|
271 | <%text>####################################</%text> | |
271 |
|
272 | |||
272 | use_celery = false |
|
273 | use_celery = false | |
273 | broker.host = localhost |
|
274 | broker.host = localhost | |
274 | broker.vhost = rabbitmqhost |
|
275 | broker.vhost = rabbitmqhost | |
275 | broker.port = 5672 |
|
276 | broker.port = 5672 | |
276 | broker.user = rabbitmq |
|
277 | broker.user = rabbitmq | |
277 | broker.password = qweqwe |
|
278 | broker.password = qweqwe | |
278 |
|
279 | |||
279 | celery.imports = kallithea.lib.celerylib.tasks |
|
280 | celery.imports = kallithea.lib.celerylib.tasks | |
280 |
|
281 | |||
281 | celery.result.backend = amqp |
|
282 | celery.result.backend = amqp | |
282 | celery.result.dburi = amqp:// |
|
283 | celery.result.dburi = amqp:// | |
283 | celery.result.serialier = json |
|
284 | celery.result.serialier = json | |
284 |
|
285 | |||
285 | #celery.send.task.error.emails = true |
|
286 | #celery.send.task.error.emails = true | |
286 | #celery.amqp.task.result.expires = 18000 |
|
287 | #celery.amqp.task.result.expires = 18000 | |
287 |
|
288 | |||
288 | celeryd.concurrency = 2 |
|
289 | celeryd.concurrency = 2 | |
289 | #celeryd.log.file = celeryd.log |
|
290 | #celeryd.log.file = celeryd.log | |
290 | celeryd.log.level = DEBUG |
|
291 | celeryd.log.level = DEBUG | |
291 | celeryd.max.tasks.per.child = 1 |
|
292 | celeryd.max.tasks.per.child = 1 | |
292 |
|
293 | |||
293 | <%text>## tasks will never be sent to the queue, but executed locally instead.</%text> |
|
294 | <%text>## tasks will never be sent to the queue, but executed locally instead.</%text> | |
294 | celery.always.eager = false |
|
295 | celery.always.eager = false | |
295 |
|
296 | |||
296 | <%text>####################################</%text> |
|
297 | <%text>####################################</%text> | |
297 | <%text>### BEAKER CACHE ####</%text> |
|
298 | <%text>### BEAKER CACHE ####</%text> | |
298 | <%text>####################################</%text> |
|
299 | <%text>####################################</%text> | |
299 |
|
300 | |||
300 | beaker.cache.data_dir=${here}/data/cache/data |
|
301 | beaker.cache.data_dir = ${here}/data/cache/data | |
301 | beaker.cache.lock_dir=${here}/data/cache/lock |
|
302 | beaker.cache.lock_dir = ${here}/data/cache/lock | |
302 |
|
303 | |||
303 | beaker.cache.regions=super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long |
|
304 | beaker.cache.regions = super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long | |
304 |
|
305 | |||
305 | beaker.cache.super_short_term.type=memory |
|
306 | beaker.cache.super_short_term.type = memory | |
306 | beaker.cache.super_short_term.expire=10 |
|
307 | beaker.cache.super_short_term.expire = 10 | |
307 | beaker.cache.super_short_term.key_length = 256 |
|
308 | beaker.cache.super_short_term.key_length = 256 | |
308 |
|
309 | |||
309 | beaker.cache.short_term.type=memory |
|
310 | beaker.cache.short_term.type = memory | |
310 | beaker.cache.short_term.expire=60 |
|
311 | beaker.cache.short_term.expire = 60 | |
311 | beaker.cache.short_term.key_length = 256 |
|
312 | beaker.cache.short_term.key_length = 256 | |
312 |
|
313 | |||
313 | beaker.cache.long_term.type=memory |
|
314 | beaker.cache.long_term.type = memory | |
314 | beaker.cache.long_term.expire=36000 |
|
315 | beaker.cache.long_term.expire = 36000 | |
315 | beaker.cache.long_term.key_length = 256 |
|
316 | beaker.cache.long_term.key_length = 256 | |
316 |
|
317 | |||
317 | beaker.cache.sql_cache_short.type=memory |
|
318 | beaker.cache.sql_cache_short.type = memory | |
318 | beaker.cache.sql_cache_short.expire=10 |
|
319 | beaker.cache.sql_cache_short.expire = 10 | |
319 | beaker.cache.sql_cache_short.key_length = 256 |
|
320 | beaker.cache.sql_cache_short.key_length = 256 | |
320 |
|
321 | |||
321 | beaker.cache.sql_cache_med.type=memory |
|
322 | beaker.cache.sql_cache_med.type = memory | |
322 | beaker.cache.sql_cache_med.expire=360 |
|
323 | beaker.cache.sql_cache_med.expire = 360 | |
323 | beaker.cache.sql_cache_med.key_length = 256 |
|
324 | beaker.cache.sql_cache_med.key_length = 256 | |
324 |
|
325 | |||
325 | beaker.cache.sql_cache_long.type=file |
|
326 | beaker.cache.sql_cache_long.type = file | |
326 | beaker.cache.sql_cache_long.expire=3600 |
|
327 | beaker.cache.sql_cache_long.expire = 3600 | |
327 | beaker.cache.sql_cache_long.key_length = 256 |
|
328 | beaker.cache.sql_cache_long.key_length = 256 | |
328 |
|
329 | |||
329 | <%text>####################################</%text> |
|
330 | <%text>####################################</%text> | |
330 | <%text>### BEAKER SESSION ####</%text> |
|
331 | <%text>### BEAKER SESSION ####</%text> | |
331 | <%text>####################################</%text> |
|
332 | <%text>####################################</%text> | |
332 | <%text>## Type of storage used for the session, current types are</%text> |
|
333 | <%text>## Type of storage used for the session, current types are</%text> | |
333 | <%text>## dbm, file, memcached, database, and memory.</%text> |
|
334 | <%text>## dbm, file, memcached, database, and memory.</%text> | |
334 | <%text>## The storage uses the Container API</%text> |
|
335 | <%text>## The storage uses the Container API</%text> | |
335 | <%text>## that is also used by the cache system.</%text> |
|
336 | <%text>## that is also used by the cache system.</%text> | |
336 |
|
337 | |||
337 | <%text>## db session ##</%text> |
|
338 | <%text>## db session ##</%text> | |
338 | #beaker.session.type = ext:database |
|
339 | #beaker.session.type = ext:database | |
339 | #beaker.session.sa.url = postgresql://postgres:qwe@localhost/kallithea |
|
340 | #beaker.session.sa.url = postgresql://postgres:qwe@localhost/kallithea | |
340 | #beaker.session.table_name = db_session |
|
341 | #beaker.session.table_name = db_session | |
341 |
|
342 | |||
342 | <%text>## encrypted cookie client side session, good for many instances ##</%text> |
|
343 | <%text>## encrypted cookie client side session, good for many instances ##</%text> | |
343 | #beaker.session.type = cookie |
|
344 | #beaker.session.type = cookie | |
344 |
|
345 | |||
345 | <%text>## file based cookies (default) ##</%text> |
|
346 | <%text>## file based cookies (default) ##</%text> | |
346 | #beaker.session.type = file |
|
347 | #beaker.session.type = file | |
347 |
|
348 | |||
348 | <%text>## beaker.session.key should be unique for a given host, even when running</%text> |
|
349 | <%text>## beaker.session.key should be unique for a given host, even when running</%text> | |
349 | <%text>## on different ports. Otherwise, cookie sessions will be shared and messed up.</%text> |
|
350 | <%text>## on different ports. Otherwise, cookie sessions will be shared and messed up.</%text> | |
350 | beaker.session.key = kallithea |
|
351 | beaker.session.key = kallithea | |
351 | beaker.session.secret = ${uuid()} |
|
352 | beaker.session.secret = ${uuid()} | |
352 |
|
353 | |||
353 | <%text>## Secure encrypted cookie. Requires AES and AES python libraries</%text> |
|
354 | <%text>## Secure encrypted cookie. Requires AES and AES python libraries</%text> | |
354 | <%text>## you must disable beaker.session.secret to use this</%text> |
|
355 | <%text>## you must disable beaker.session.secret to use this</%text> | |
355 | #beaker.session.encrypt_key = <key_for_encryption> |
|
356 | #beaker.session.encrypt_key = <key_for_encryption> | |
356 | #beaker.session.validate_key = <validation_key> |
|
357 | #beaker.session.validate_key = <validation_key> | |
357 |
|
358 | |||
358 | <%text>## sets session as invalid if it haven't been accessed for given amount of time</%text> |
|
359 | <%text>## sets session as invalid if it haven't been accessed for given amount of time</%text> | |
359 | beaker.session.timeout = 2592000 |
|
360 | beaker.session.timeout = 2592000 | |
360 | beaker.session.httponly = true |
|
361 | beaker.session.httponly = true | |
361 | #beaker.session.cookie_path = /<your-prefix> |
|
362 | #beaker.session.cookie_path = /<your-prefix> | |
362 |
|
363 | |||
363 | <%text>## uncomment for https secure cookie</%text> |
|
364 | <%text>## uncomment for https secure cookie</%text> | |
364 | beaker.session.secure = false |
|
365 | beaker.session.secure = false | |
365 |
|
366 | |||
366 | <%text>## auto save the session to not to use .save()</%text> |
|
367 | <%text>## auto save the session to not to use .save()</%text> | |
367 | beaker.session.auto = False |
|
368 | beaker.session.auto = False | |
368 |
|
369 | |||
369 | <%text>## default cookie expiration time in seconds `true` expire at browser close ##</%text> |
|
370 | <%text>## default cookie expiration time in seconds `true` expire at browser close ##</%text> | |
370 | #beaker.session.cookie_expires = 3600 |
|
371 | #beaker.session.cookie_expires = 3600 | |
371 |
|
372 | |||
372 | %if error_aggregation_service == 'errormator': |
|
373 | %if error_aggregation_service == 'errormator': | |
373 |
|
||||
374 | <%text>############################</%text> |
|
374 | <%text>############################</%text> | |
375 | <%text>## ERROR HANDLING SYSTEMS ##</%text> |
|
375 | <%text>## ERROR HANDLING SYSTEMS ##</%text> | |
376 | <%text>############################</%text> |
|
376 | <%text>############################</%text> | |
377 |
|
377 | |||
378 | <%text>####################</%text> |
|
378 | <%text>####################</%text> | |
379 | <%text>### [errormator] ###</%text> |
|
379 | <%text>### [errormator] ###</%text> | |
380 | <%text>####################</%text> |
|
380 | <%text>####################</%text> | |
381 |
|
381 | |||
382 | <%text>## Errormator is tailored to work with Kallithea, see</%text> |
|
382 | <%text>## Errormator is tailored to work with Kallithea, see</%text> | |
383 | <%text>## http://errormator.com for details how to obtain an account</%text> |
|
383 | <%text>## http://errormator.com for details how to obtain an account</%text> | |
384 | <%text>## you must install python package `errormator_client` to make it work</%text> |
|
384 | <%text>## you must install python package `errormator_client` to make it work</%text> | |
385 |
|
385 | |||
386 | <%text>## errormator enabled</%text> |
|
386 | <%text>## errormator enabled</%text> | |
387 | errormator = false |
|
387 | errormator = false | |
388 |
|
388 | |||
389 | errormator.server_url = https://api.errormator.com |
|
389 | errormator.server_url = https://api.errormator.com | |
390 | errormator.api_key = YOUR_API_KEY |
|
390 | errormator.api_key = YOUR_API_KEY | |
391 |
|
391 | |||
392 | <%text>## TWEAK AMOUNT OF INFO SENT HERE</%text> |
|
392 | <%text>## TWEAK AMOUNT OF INFO SENT HERE</%text> | |
393 |
|
393 | |||
394 | <%text>## enables 404 error logging (default False)</%text> |
|
394 | <%text>## enables 404 error logging (default False)</%text> | |
395 | errormator.report_404 = false |
|
395 | errormator.report_404 = false | |
396 |
|
396 | |||
397 | <%text>## time in seconds after request is considered being slow (default 1)</%text> |
|
397 | <%text>## time in seconds after request is considered being slow (default 1)</%text> | |
398 | errormator.slow_request_time = 1 |
|
398 | errormator.slow_request_time = 1 | |
399 |
|
399 | |||
400 | <%text>## record slow requests in application</%text> |
|
400 | <%text>## record slow requests in application</%text> | |
401 | <%text>## (needs to be enabled for slow datastore recording and time tracking)</%text> |
|
401 | <%text>## (needs to be enabled for slow datastore recording and time tracking)</%text> | |
402 | errormator.slow_requests = true |
|
402 | errormator.slow_requests = true | |
403 |
|
403 | |||
404 | <%text>## enable hooking to application loggers</%text> |
|
404 | <%text>## enable hooking to application loggers</%text> | |
405 |
# |
|
405 | #errormator.logging = true | |
406 |
|
406 | |||
407 | <%text>## minimum log level for log capture</%text> |
|
407 | <%text>## minimum log level for log capture</%text> | |
408 |
# |
|
408 | #errormator.logging.level = WARNING | |
409 |
|
409 | |||
410 | <%text>## send logs only from erroneous/slow requests</%text> |
|
410 | <%text>## send logs only from erroneous/slow requests</%text> | |
411 | <%text>## (saves API quota for intensive logging)</%text> |
|
411 | <%text>## (saves API quota for intensive logging)</%text> | |
412 | errormator.logging_on_error = false |
|
412 | errormator.logging_on_error = false | |
413 |
|
413 | |||
414 | <%text>## list of additonal keywords that should be grabbed from environ object</%text> |
|
414 | <%text>## list of additonal keywords that should be grabbed from environ object</%text> | |
415 | <%text>## can be string with comma separated list of words in lowercase</%text> |
|
415 | <%text>## can be string with comma separated list of words in lowercase</%text> | |
416 | <%text>## (by default client will always send following info:</%text> |
|
416 | <%text>## (by default client will always send following info:</%text> | |
417 | <%text>## 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that</%text> |
|
417 | <%text>## 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that</%text> | |
418 | <%text>## start with HTTP* this list be extended with additional keywords here</%text> |
|
418 | <%text>## start with HTTP* this list be extended with additional keywords here</%text> | |
419 | errormator.environ_keys_whitelist = |
|
419 | errormator.environ_keys_whitelist = | |
420 |
|
420 | |||
421 | <%text>## list of keywords that should be blanked from request object</%text> |
|
421 | <%text>## list of keywords that should be blanked from request object</%text> | |
422 | <%text>## can be string with comma separated list of words in lowercase</%text> |
|
422 | <%text>## can be string with comma separated list of words in lowercase</%text> | |
423 | <%text>## (by default client will always blank keys that contain following words</%text> |
|
423 | <%text>## (by default client will always blank keys that contain following words</%text> | |
424 | <%text>## 'password', 'passwd', 'pwd', 'auth_tkt', 'secret', 'csrf'</%text> |
|
424 | <%text>## 'password', 'passwd', 'pwd', 'auth_tkt', 'secret', 'csrf'</%text> | |
425 | <%text>## this list be extended with additional keywords set here</%text> |
|
425 | <%text>## this list be extended with additional keywords set here</%text> | |
426 | errormator.request_keys_blacklist = |
|
426 | errormator.request_keys_blacklist = | |
427 |
|
427 | |||
428 | <%text>## list of namespaces that should be ignores when gathering log entries</%text> |
|
428 | <%text>## list of namespaces that should be ignores when gathering log entries</%text> | |
429 | <%text>## can be string with comma separated list of namespaces</%text> |
|
429 | <%text>## can be string with comma separated list of namespaces</%text> | |
430 | <%text>## (by default the client ignores own entries: errormator_client.client)</%text> |
|
430 | <%text>## (by default the client ignores own entries: errormator_client.client)</%text> | |
431 | errormator.log_namespace_blacklist = |
|
431 | errormator.log_namespace_blacklist = | |
|
432 | ||||
432 | %elif error_aggregation_service == 'sentry': |
|
433 | %elif error_aggregation_service == 'sentry': | |
433 |
|
||||
434 | <%text>################</%text> |
|
434 | <%text>################</%text> | |
435 | <%text>### [sentry] ###</%text> |
|
435 | <%text>### [sentry] ###</%text> | |
436 | <%text>################</%text> |
|
436 | <%text>################</%text> | |
437 |
|
437 | |||
438 | <%text>## sentry is a alternative open source error aggregator</%text> |
|
438 | <%text>## sentry is a alternative open source error aggregator</%text> | |
439 | <%text>## you must install python packages `sentry` and `raven` to enable</%text> |
|
439 | <%text>## you must install python packages `sentry` and `raven` to enable</%text> | |
440 |
|
440 | |||
441 | sentry.dsn = YOUR_DNS |
|
441 | sentry.dsn = YOUR_DNS | |
442 | sentry.servers = |
|
442 | sentry.servers = | |
443 | sentry.name = |
|
443 | sentry.name = | |
444 | sentry.key = |
|
444 | sentry.key = | |
445 | sentry.public_key = |
|
445 | sentry.public_key = | |
446 | sentry.secret_key = |
|
446 | sentry.secret_key = | |
447 | sentry.project = |
|
447 | sentry.project = | |
448 | sentry.site = |
|
448 | sentry.site = | |
449 | sentry.include_paths = |
|
449 | sentry.include_paths = | |
450 | sentry.exclude_paths = |
|
450 | sentry.exclude_paths = | |
|
451 | ||||
451 | %endif |
|
452 | %endif | |
452 |
|
||||
453 | <%text>################################################################################</%text> |
|
453 | <%text>################################################################################</%text> | |
454 | <%text>## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##</%text> |
|
454 | <%text>## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##</%text> | |
455 | <%text>## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##</%text> |
|
455 | <%text>## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##</%text> | |
456 | <%text>## execute malicious code after an exception is raised. ##</%text> |
|
456 | <%text>## execute malicious code after an exception is raised. ##</%text> | |
457 | <%text>################################################################################</%text> |
|
457 | <%text>################################################################################</%text> | |
458 | set debug = false |
|
458 | set debug = false | |
459 |
|
459 | |||
460 | <%text>##################################</%text> |
|
460 | <%text>##################################</%text> | |
461 | <%text>### LOGVIEW CONFIG ###</%text> |
|
461 | <%text>### LOGVIEW CONFIG ###</%text> | |
462 | <%text>##################################</%text> |
|
462 | <%text>##################################</%text> | |
463 |
|
463 | |||
464 | logview.sqlalchemy = #faa |
|
464 | logview.sqlalchemy = #faa | |
465 | logview.pylons.templating = #bfb |
|
465 | logview.pylons.templating = #bfb | |
466 | logview.pylons.util = #eee |
|
466 | logview.pylons.util = #eee | |
467 |
|
467 | |||
468 | <%text>#########################################################</%text> |
|
468 | <%text>#########################################################</%text> | |
469 | <%text>### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###</%text> |
|
469 | <%text>### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###</%text> | |
470 | <%text>#########################################################</%text> |
|
470 | <%text>#########################################################</%text> | |
471 |
|
471 | |||
472 | %if database_engine == 'sqlite': |
|
472 | %if database_engine == 'sqlite': | |
473 | # SQLITE [default] |
|
473 | # SQLITE [default] | |
474 | sqlalchemy.db1.url = sqlite:///${here}/kallithea.db?timeout=60 |
|
474 | sqlalchemy.db1.url = sqlite:///${here}/kallithea.db?timeout=60 | |
|
475 | ||||
475 | %elif database_engine == 'postgres': |
|
476 | %elif database_engine == 'postgres': | |
476 | # POSTGRESQL |
|
477 | # POSTGRESQL | |
477 | sqlalchemy.db1.url = postgresql://user:pass@localhost/kallithea |
|
478 | sqlalchemy.db1.url = postgresql://user:pass@localhost/kallithea | |
|
479 | ||||
478 | %elif database_engine == 'mysql': |
|
480 | %elif database_engine == 'mysql': | |
479 | # MySQL |
|
481 | # MySQL | |
480 | sqlalchemy.db1.url = mysql://user:pass@localhost/kallithea |
|
482 | sqlalchemy.db1.url = mysql://user:pass@localhost/kallithea | |
|
483 | ||||
481 | %endif |
|
484 | %endif | |
482 | # see sqlalchemy docs for others |
|
485 | # see sqlalchemy docs for others | |
483 |
|
486 | |||
484 | sqlalchemy.db1.echo = false |
|
487 | sqlalchemy.db1.echo = false | |
485 | sqlalchemy.db1.pool_recycle = 3600 |
|
488 | sqlalchemy.db1.pool_recycle = 3600 | |
486 | sqlalchemy.db1.convert_unicode = true |
|
489 | sqlalchemy.db1.convert_unicode = true | |
487 |
|
490 | |||
488 | <%text>################################</%text> |
|
491 | <%text>################################</%text> | |
489 | <%text>### LOGGING CONFIGURATION ####</%text> |
|
492 | <%text>### LOGGING CONFIGURATION ####</%text> | |
490 | <%text>################################</%text> |
|
493 | <%text>################################</%text> | |
491 |
|
494 | |||
492 | [loggers] |
|
495 | [loggers] | |
493 | keys = root, routes, kallithea, sqlalchemy, beaker, templates, whoosh_indexer |
|
496 | keys = root, routes, kallithea, sqlalchemy, beaker, templates, whoosh_indexer | |
494 |
|
497 | |||
495 | [handlers] |
|
498 | [handlers] | |
496 | keys = console, console_sql |
|
499 | keys = console, console_sql | |
497 |
|
500 | |||
498 | [formatters] |
|
501 | [formatters] | |
499 | keys = generic, color_formatter, color_formatter_sql |
|
502 | keys = generic, color_formatter, color_formatter_sql | |
500 |
|
503 | |||
501 | <%text>#############</%text> |
|
504 | <%text>#############</%text> | |
502 | <%text>## LOGGERS ##</%text> |
|
505 | <%text>## LOGGERS ##</%text> | |
503 | <%text>#############</%text> |
|
506 | <%text>#############</%text> | |
504 |
|
507 | |||
505 | [logger_root] |
|
508 | [logger_root] | |
506 | level = NOTSET |
|
509 | level = NOTSET | |
507 | handlers = console |
|
510 | handlers = console | |
508 |
|
511 | |||
509 | [logger_routes] |
|
512 | [logger_routes] | |
510 | level = DEBUG |
|
513 | level = DEBUG | |
511 | handlers = |
|
514 | handlers = | |
512 | qualname = routes.middleware |
|
515 | qualname = routes.middleware | |
513 | <%text>## "level = DEBUG" logs the route matched and routing variables.</%text> |
|
516 | <%text>## "level = DEBUG" logs the route matched and routing variables.</%text> | |
514 | propagate = 1 |
|
517 | propagate = 1 | |
515 |
|
518 | |||
516 | [logger_beaker] |
|
519 | [logger_beaker] | |
517 | level = DEBUG |
|
520 | level = DEBUG | |
518 | handlers = |
|
521 | handlers = | |
519 | qualname = beaker.container |
|
522 | qualname = beaker.container | |
520 | propagate = 1 |
|
523 | propagate = 1 | |
521 |
|
524 | |||
522 | [logger_templates] |
|
525 | [logger_templates] | |
523 | level = INFO |
|
526 | level = INFO | |
524 | handlers = |
|
527 | handlers = | |
525 | qualname = pylons.templating |
|
528 | qualname = pylons.templating | |
526 | propagate = 1 |
|
529 | propagate = 1 | |
527 |
|
530 | |||
528 | [logger_kallithea] |
|
531 | [logger_kallithea] | |
529 | level = DEBUG |
|
532 | level = DEBUG | |
530 | handlers = |
|
533 | handlers = | |
531 | qualname = kallithea |
|
534 | qualname = kallithea | |
532 | propagate = 1 |
|
535 | propagate = 1 | |
533 |
|
536 | |||
534 | [logger_sqlalchemy] |
|
537 | [logger_sqlalchemy] | |
535 | level = INFO |
|
538 | level = INFO | |
536 | handlers = console_sql |
|
539 | handlers = console_sql | |
537 | qualname = sqlalchemy.engine |
|
540 | qualname = sqlalchemy.engine | |
538 | propagate = 0 |
|
541 | propagate = 0 | |
539 |
|
542 | |||
540 | [logger_whoosh_indexer] |
|
543 | [logger_whoosh_indexer] | |
541 | level = DEBUG |
|
544 | level = DEBUG | |
542 | handlers = |
|
545 | handlers = | |
543 | qualname = whoosh_indexer |
|
546 | qualname = whoosh_indexer | |
544 | propagate = 1 |
|
547 | propagate = 1 | |
545 |
|
548 | |||
546 | <%text>##############</%text> |
|
549 | <%text>##############</%text> | |
547 | <%text>## HANDLERS ##</%text> |
|
550 | <%text>## HANDLERS ##</%text> | |
548 | <%text>##############</%text> |
|
551 | <%text>##############</%text> | |
549 |
|
552 | |||
550 | [handler_console] |
|
553 | [handler_console] | |
551 | class = StreamHandler |
|
554 | class = StreamHandler | |
552 | args = (sys.stderr,) |
|
555 | args = (sys.stderr,) | |
553 | level = INFO |
|
556 | level = INFO | |
554 | formatter = generic |
|
557 | formatter = generic | |
555 |
|
558 | |||
556 | [handler_console_sql] |
|
559 | [handler_console_sql] | |
557 | class = StreamHandler |
|
560 | class = StreamHandler | |
558 | args = (sys.stderr,) |
|
561 | args = (sys.stderr,) | |
559 | level = WARN |
|
562 | level = WARN | |
560 | formatter = generic |
|
563 | formatter = generic | |
561 |
|
564 | |||
562 | <%text>################</%text> |
|
565 | <%text>################</%text> | |
563 | <%text>## FORMATTERS ##</%text> |
|
566 | <%text>## FORMATTERS ##</%text> | |
564 | <%text>################</%text> |
|
567 | <%text>################</%text> | |
565 |
|
568 | |||
566 | [formatter_generic] |
|
569 | [formatter_generic] | |
567 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
570 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s | |
568 | datefmt = %Y-%m-%d %H:%M:%S |
|
571 | datefmt = %Y-%m-%d %H:%M:%S | |
569 |
|
572 | |||
570 | [formatter_color_formatter] |
|
573 | [formatter_color_formatter] | |
571 | class=kallithea.lib.colored_formatter.ColorFormatter |
|
574 | class = kallithea.lib.colored_formatter.ColorFormatter | |
572 | format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
575 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s | |
573 | datefmt = %Y-%m-%d %H:%M:%S |
|
576 | datefmt = %Y-%m-%d %H:%M:%S | |
574 |
|
577 | |||
575 | [formatter_color_formatter_sql] |
|
578 | [formatter_color_formatter_sql] | |
576 | class=kallithea.lib.colored_formatter.ColorFormatterSql |
|
579 | class = kallithea.lib.colored_formatter.ColorFormatterSql | |
577 | format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
580 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s | |
578 | datefmt = %Y-%m-%d %H:%M:%S |
|
581 | datefmt = %Y-%m-%d %H:%M:%S |
General Comments 0
You need to be logged in to leave comments.
Login now