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