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