##// END OF EJS Templates
configs: added info about @TOKEN syntaxt for whitelist views.
marcink -
r2004:7eb08ad3 default
parent child Browse files
Show More
@@ -1,699 +1,703 b''
1
1
2
2
3 ################################################################################
3 ################################################################################
4 ## RHODECODE COMMUNITY EDITION CONFIGURATION ##
4 ## RHODECODE COMMUNITY EDITION CONFIGURATION ##
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
10
11 ################################################################################
11 ################################################################################
12 ## EMAIL CONFIGURATION ##
12 ## EMAIL CONFIGURATION ##
13 ## Uncomment and replace with the email address which should receive ##
13 ## Uncomment and replace with the email address which should receive ##
14 ## any error reports after an application crash ##
14 ## any error reports after an application crash ##
15 ## Additionally these settings will be used by the RhodeCode mailing system ##
15 ## Additionally these settings will be used by the RhodeCode mailing system ##
16 ################################################################################
16 ################################################################################
17
17
18 ## prefix all emails subjects with given prefix, helps filtering out emails
18 ## prefix all emails subjects with given prefix, helps filtering out emails
19 #email_prefix = [RhodeCode]
19 #email_prefix = [RhodeCode]
20
20
21 ## email FROM address all mails will be sent
21 ## email FROM address all mails will be sent
22 #app_email_from = rhodecode-noreply@localhost
22 #app_email_from = rhodecode-noreply@localhost
23
23
24 ## Uncomment and replace with the address which should receive any error report
24 ## Uncomment and replace with the address which should receive any error report
25 ## note: using appenlight for error handling doesn't need this to be uncommented
25 ## note: using appenlight for error handling doesn't need this to be uncommented
26 #email_to = admin@localhost
26 #email_to = admin@localhost
27
27
28 ## in case of Application errors, sent an error email form
28 ## in case of Application errors, sent an error email form
29 #error_email_from = rhodecode_error@localhost
29 #error_email_from = rhodecode_error@localhost
30
30
31 ## additional error message to be send in case of server crash
31 ## additional error message to be send in case of server crash
32 #error_message =
32 #error_message =
33
33
34
34
35 #smtp_server = mail.server.com
35 #smtp_server = mail.server.com
36 #smtp_username =
36 #smtp_username =
37 #smtp_password =
37 #smtp_password =
38 #smtp_port =
38 #smtp_port =
39 #smtp_use_tls = false
39 #smtp_use_tls = false
40 #smtp_use_ssl = true
40 #smtp_use_ssl = true
41 ## Specify available auth parameters here (e.g. LOGIN PLAIN CRAM-MD5, etc.)
41 ## Specify available auth parameters here (e.g. LOGIN PLAIN CRAM-MD5, etc.)
42 #smtp_auth =
42 #smtp_auth =
43
43
44 [server:main]
44 [server:main]
45 ## COMMON ##
45 ## COMMON ##
46 host = 127.0.0.1
46 host = 127.0.0.1
47 port = 5000
47 port = 5000
48
48
49 ##################################
49 ##################################
50 ## WAITRESS WSGI SERVER ##
50 ## WAITRESS WSGI SERVER ##
51 ## Recommended for Development ##
51 ## Recommended for Development ##
52 ##################################
52 ##################################
53
53
54 use = egg:waitress#main
54 use = egg:waitress#main
55 ## number of worker threads
55 ## number of worker threads
56 threads = 5
56 threads = 5
57 ## MAX BODY SIZE 100GB
57 ## MAX BODY SIZE 100GB
58 max_request_body_size = 107374182400
58 max_request_body_size = 107374182400
59 ## Use poll instead of select, fixes file descriptors limits problems.
59 ## Use poll instead of select, fixes file descriptors limits problems.
60 ## May not work on old windows systems.
60 ## May not work on old windows systems.
61 asyncore_use_poll = true
61 asyncore_use_poll = true
62
62
63
63
64 ##########################
64 ##########################
65 ## GUNICORN WSGI SERVER ##
65 ## GUNICORN WSGI SERVER ##
66 ##########################
66 ##########################
67 ## run with gunicorn --log-config rhodecode.ini --paste rhodecode.ini
67 ## run with gunicorn --log-config rhodecode.ini --paste rhodecode.ini
68
68
69 #use = egg:gunicorn#main
69 #use = egg:gunicorn#main
70 ## Sets the number of process workers. You must set `instance_id = *`
70 ## Sets the number of process workers. You must set `instance_id = *`
71 ## when this option is set to more than one worker, recommended
71 ## when this option is set to more than one worker, recommended
72 ## value is (2 * NUMBER_OF_CPUS + 1), eg 2CPU = 5 workers
72 ## value is (2 * NUMBER_OF_CPUS + 1), eg 2CPU = 5 workers
73 ## The `instance_id = *` must be set in the [app:main] section below
73 ## The `instance_id = *` must be set in the [app:main] section below
74 #workers = 2
74 #workers = 2
75 ## number of threads for each of the worker, must be set to 1 for gevent
75 ## number of threads for each of the worker, must be set to 1 for gevent
76 ## generally recommened to be at 1
76 ## generally recommened to be at 1
77 #threads = 1
77 #threads = 1
78 ## process name
78 ## process name
79 #proc_name = rhodecode
79 #proc_name = rhodecode
80 ## type of worker class, one of sync, gevent
80 ## type of worker class, one of sync, gevent
81 ## recommended for bigger setup is using of of other than sync one
81 ## recommended for bigger setup is using of of other than sync one
82 #worker_class = sync
82 #worker_class = sync
83 ## The maximum number of simultaneous clients. Valid only for Gevent
83 ## The maximum number of simultaneous clients. Valid only for Gevent
84 #worker_connections = 10
84 #worker_connections = 10
85 ## max number of requests that worker will handle before being gracefully
85 ## max number of requests that worker will handle before being gracefully
86 ## restarted, could prevent memory leaks
86 ## restarted, could prevent memory leaks
87 #max_requests = 1000
87 #max_requests = 1000
88 #max_requests_jitter = 30
88 #max_requests_jitter = 30
89 ## amount of time a worker can spend with handling a request before it
89 ## amount of time a worker can spend with handling a request before it
90 ## gets killed and restarted. Set to 6hrs
90 ## gets killed and restarted. Set to 6hrs
91 #timeout = 21600
91 #timeout = 21600
92
92
93
93
94 ## prefix middleware for RhodeCode.
94 ## prefix middleware for RhodeCode.
95 ## recommended when using proxy setup.
95 ## recommended when using proxy setup.
96 ## allows to set RhodeCode under a prefix in server.
96 ## allows to set RhodeCode under a prefix in server.
97 ## eg https://server.com/custom_prefix. Enable `filter-with =` option below as well.
97 ## eg https://server.com/custom_prefix. Enable `filter-with =` option below as well.
98 ## And set your prefix like: `prefix = /custom_prefix`
98 ## And set your prefix like: `prefix = /custom_prefix`
99 ## be sure to also set beaker.session.cookie_path = /custom_prefix if you need
99 ## be sure to also set beaker.session.cookie_path = /custom_prefix if you need
100 ## to make your cookies only work on prefix url
100 ## to make your cookies only work on prefix url
101 [filter:proxy-prefix]
101 [filter:proxy-prefix]
102 use = egg:PasteDeploy#prefix
102 use = egg:PasteDeploy#prefix
103 prefix = /
103 prefix = /
104
104
105 [app:main]
105 [app:main]
106 use = egg:rhodecode-enterprise-ce
106 use = egg:rhodecode-enterprise-ce
107
107
108 ## enable proxy prefix middleware, defined above
108 ## enable proxy prefix middleware, defined above
109 #filter-with = proxy-prefix
109 #filter-with = proxy-prefix
110
110
111 # During development the we want to have the debug toolbar enabled
111 # During development the we want to have the debug toolbar enabled
112 pyramid.includes =
112 pyramid.includes =
113 pyramid_debugtoolbar
113 pyramid_debugtoolbar
114 rhodecode.utils.debugtoolbar
114 rhodecode.utils.debugtoolbar
115 rhodecode.lib.middleware.request_wrapper
115 rhodecode.lib.middleware.request_wrapper
116
116
117 pyramid.reload_templates = true
117 pyramid.reload_templates = true
118
118
119 debugtoolbar.hosts = 0.0.0.0/0
119 debugtoolbar.hosts = 0.0.0.0/0
120 debugtoolbar.exclude_prefixes =
120 debugtoolbar.exclude_prefixes =
121 /css
121 /css
122 /fonts
122 /fonts
123 /images
123 /images
124 /js
124 /js
125
125
126 ## RHODECODE PLUGINS ##
126 ## RHODECODE PLUGINS ##
127 rhodecode.includes =
127 rhodecode.includes =
128 rhodecode.api
128 rhodecode.api
129
129
130
130
131 # api prefix url
131 # api prefix url
132 rhodecode.api.url = /_admin/api
132 rhodecode.api.url = /_admin/api
133
133
134
134
135 ## END RHODECODE PLUGINS ##
135 ## END RHODECODE PLUGINS ##
136
136
137 ## encryption key used to encrypt social plugin tokens,
137 ## encryption key used to encrypt social plugin tokens,
138 ## remote_urls with credentials etc, if not set it defaults to
138 ## remote_urls with credentials etc, if not set it defaults to
139 ## `beaker.session.secret`
139 ## `beaker.session.secret`
140 #rhodecode.encrypted_values.secret =
140 #rhodecode.encrypted_values.secret =
141
141
142 ## decryption strict mode (enabled by default). It controls if decryption raises
142 ## decryption strict mode (enabled by default). It controls if decryption raises
143 ## `SignatureVerificationError` in case of wrong key, or damaged encryption data.
143 ## `SignatureVerificationError` in case of wrong key, or damaged encryption data.
144 #rhodecode.encrypted_values.strict = false
144 #rhodecode.encrypted_values.strict = false
145
145
146 ## return gzipped responses from Rhodecode (static files/application)
146 ## return gzipped responses from Rhodecode (static files/application)
147 gzip_responses = false
147 gzip_responses = false
148
148
149 ## autogenerate javascript routes file on startup
149 ## autogenerate javascript routes file on startup
150 generate_js_files = false
150 generate_js_files = false
151
151
152 ## Optional Languages
152 ## Optional Languages
153 ## en(default), be, de, es, fr, it, ja, pl, pt, ru, zh
153 ## en(default), be, de, es, fr, it, ja, pl, pt, ru, zh
154 lang = en
154 lang = en
155
155
156 ## perform a full repository scan on each server start, this should be
156 ## perform a full repository scan on each server start, this should be
157 ## set to false after first startup, to allow faster server restarts.
157 ## set to false after first startup, to allow faster server restarts.
158 startup.import_repos = false
158 startup.import_repos = false
159
159
160 ## Uncomment and set this path to use archive download cache.
160 ## Uncomment and set this path to use archive download cache.
161 ## Once enabled, generated archives will be cached at this location
161 ## Once enabled, generated archives will be cached at this location
162 ## and served from the cache during subsequent requests for the same archive of
162 ## and served from the cache during subsequent requests for the same archive of
163 ## the repository.
163 ## the repository.
164 #archive_cache_dir = /tmp/tarballcache
164 #archive_cache_dir = /tmp/tarballcache
165
165
166 ## change this to unique ID for security
166 ## change this to unique ID for security
167 app_instance_uuid = rc-production
167 app_instance_uuid = rc-production
168
168
169 ## cut off limit for large diffs (size in bytes)
169 ## cut off limit for large diffs (size in bytes)
170 cut_off_limit_diff = 1024000
170 cut_off_limit_diff = 1024000
171 cut_off_limit_file = 256000
171 cut_off_limit_file = 256000
172
172
173 ## use cache version of scm repo everywhere
173 ## use cache version of scm repo everywhere
174 vcs_full_cache = true
174 vcs_full_cache = true
175
175
176 ## force https in RhodeCode, fixes https redirects, assumes it's always https
176 ## force https in RhodeCode, fixes https redirects, assumes it's always https
177 ## Normally this is controlled by proper http flags sent from http server
177 ## Normally this is controlled by proper http flags sent from http server
178 force_https = false
178 force_https = false
179
179
180 ## use Strict-Transport-Security headers
180 ## use Strict-Transport-Security headers
181 use_htsts = false
181 use_htsts = false
182
182
183 ## number of commits stats will parse on each iteration
183 ## number of commits stats will parse on each iteration
184 commit_parse_limit = 25
184 commit_parse_limit = 25
185
185
186 ## git rev filter option, --all is the default filter, if you need to
186 ## git rev filter option, --all is the default filter, if you need to
187 ## hide all refs in changelog switch this to --branches --tags
187 ## hide all refs in changelog switch this to --branches --tags
188 git_rev_filter = --branches --tags
188 git_rev_filter = --branches --tags
189
189
190 # Set to true if your repos are exposed using the dumb protocol
190 # Set to true if your repos are exposed using the dumb protocol
191 git_update_server_info = false
191 git_update_server_info = false
192
192
193 ## RSS/ATOM feed options
193 ## RSS/ATOM feed options
194 rss_cut_off_limit = 256000
194 rss_cut_off_limit = 256000
195 rss_items_per_page = 10
195 rss_items_per_page = 10
196 rss_include_diff = false
196 rss_include_diff = false
197
197
198 ## gist URL alias, used to create nicer urls for gist. This should be an
198 ## gist URL alias, used to create nicer urls for gist. This should be an
199 ## url that does rewrites to _admin/gists/{gistid}.
199 ## url that does rewrites to _admin/gists/{gistid}.
200 ## example: http://gist.rhodecode.org/{gistid}. Empty means use the internal
200 ## example: http://gist.rhodecode.org/{gistid}. Empty means use the internal
201 ## RhodeCode url, ie. http[s]://rhodecode.server/_admin/gists/{gistid}
201 ## RhodeCode url, ie. http[s]://rhodecode.server/_admin/gists/{gistid}
202 gist_alias_url =
202 gist_alias_url =
203
203
204 ## List of views (using glob pattern syntax) that AUTH TOKENS could be
204 ## List of views (using glob pattern syntax) that AUTH TOKENS could be
205 ## used for access.
205 ## used for access.
206 ## Adding ?auth_token=TOKEN_HASH to the url authenticates this request as if it
206 ## Adding ?auth_token=TOKEN_HASH to the url authenticates this request as if it
207 ## came from the the logged in user who own this authentication token.
207 ## came from the the logged in user who own this authentication token.
208 ## Additionally @TOKEN syntaxt can be used to bound the view to specific
209 ## authentication token. Such view would be only accessible when used together
210 ## with this authentication token
208 ##
211 ##
209 ## list of all views can be found under `_admin/permissions/auth_token_access`
212 ## list of all views can be found under `_admin/permissions/auth_token_access`
210 ## The list should be "," separated and on a single line.
213 ## The list should be "," separated and on a single line.
211 ##
214 ##
212 ## Most common views to enable:
215 ## Most common views to enable:
213 # RepoCommitsView:repo_commit_download
216 # RepoCommitsView:repo_commit_download
214 # RepoCommitsView:repo_commit_patch
217 # RepoCommitsView:repo_commit_patch
215 # RepoCommitsView:repo_commit_raw
218 # RepoCommitsView:repo_commit_raw
219 # RepoCommitsView:repo_commit_raw@TOKEN
216 # RepoFilesView:repo_files_diff
220 # RepoFilesView:repo_files_diff
217 # RepoFilesView:repo_archivefile
221 # RepoFilesView:repo_archivefile
218 # RepoFilesView:repo_file_raw
222 # RepoFilesView:repo_file_raw
219 # GistView:*
223 # GistView:*
220 api_access_controllers_whitelist =
224 api_access_controllers_whitelist =
221
225
222 ## default encoding used to convert from and to unicode
226 ## default encoding used to convert from and to unicode
223 ## can be also a comma separated list of encoding in case of mixed encodings
227 ## can be also a comma separated list of encoding in case of mixed encodings
224 default_encoding = UTF-8
228 default_encoding = UTF-8
225
229
226 ## instance-id prefix
230 ## instance-id prefix
227 ## a prefix key for this instance used for cache invalidation when running
231 ## a prefix key for this instance used for cache invalidation when running
228 ## multiple instances of rhodecode, make sure it's globally unique for
232 ## multiple instances of rhodecode, make sure it's globally unique for
229 ## all running rhodecode instances. Leave empty if you don't use it
233 ## all running rhodecode instances. Leave empty if you don't use it
230 instance_id =
234 instance_id =
231
235
232 ## Fallback authentication plugin. Set this to a plugin ID to force the usage
236 ## Fallback authentication plugin. Set this to a plugin ID to force the usage
233 ## of an authentication plugin also if it is disabled by it's settings.
237 ## of an authentication plugin also if it is disabled by it's settings.
234 ## This could be useful if you are unable to log in to the system due to broken
238 ## This could be useful if you are unable to log in to the system due to broken
235 ## authentication settings. Then you can enable e.g. the internal rhodecode auth
239 ## authentication settings. Then you can enable e.g. the internal rhodecode auth
236 ## module to log in again and fix the settings.
240 ## module to log in again and fix the settings.
237 ##
241 ##
238 ## Available builtin plugin IDs (hash is part of the ID):
242 ## Available builtin plugin IDs (hash is part of the ID):
239 ## egg:rhodecode-enterprise-ce#rhodecode
243 ## egg:rhodecode-enterprise-ce#rhodecode
240 ## egg:rhodecode-enterprise-ce#pam
244 ## egg:rhodecode-enterprise-ce#pam
241 ## egg:rhodecode-enterprise-ce#ldap
245 ## egg:rhodecode-enterprise-ce#ldap
242 ## egg:rhodecode-enterprise-ce#jasig_cas
246 ## egg:rhodecode-enterprise-ce#jasig_cas
243 ## egg:rhodecode-enterprise-ce#headers
247 ## egg:rhodecode-enterprise-ce#headers
244 ## egg:rhodecode-enterprise-ce#crowd
248 ## egg:rhodecode-enterprise-ce#crowd
245 #rhodecode.auth_plugin_fallback = egg:rhodecode-enterprise-ce#rhodecode
249 #rhodecode.auth_plugin_fallback = egg:rhodecode-enterprise-ce#rhodecode
246
250
247 ## alternative return HTTP header for failed authentication. Default HTTP
251 ## alternative return HTTP header for failed authentication. Default HTTP
248 ## response is 401 HTTPUnauthorized. Currently HG clients have troubles with
252 ## response is 401 HTTPUnauthorized. Currently HG clients have troubles with
249 ## handling that causing a series of failed authentication calls.
253 ## handling that causing a series of failed authentication calls.
250 ## Set this variable to 403 to return HTTPForbidden, or any other HTTP code
254 ## Set this variable to 403 to return HTTPForbidden, or any other HTTP code
251 ## This will be served instead of default 401 on bad authnetication
255 ## This will be served instead of default 401 on bad authnetication
252 auth_ret_code =
256 auth_ret_code =
253
257
254 ## use special detection method when serving auth_ret_code, instead of serving
258 ## use special detection method when serving auth_ret_code, instead of serving
255 ## ret_code directly, use 401 initially (Which triggers credentials prompt)
259 ## ret_code directly, use 401 initially (Which triggers credentials prompt)
256 ## and then serve auth_ret_code to clients
260 ## and then serve auth_ret_code to clients
257 auth_ret_code_detection = false
261 auth_ret_code_detection = false
258
262
259 ## locking return code. When repository is locked return this HTTP code. 2XX
263 ## locking return code. When repository is locked return this HTTP code. 2XX
260 ## codes don't break the transactions while 4XX codes do
264 ## codes don't break the transactions while 4XX codes do
261 lock_ret_code = 423
265 lock_ret_code = 423
262
266
263 ## allows to change the repository location in settings page
267 ## allows to change the repository location in settings page
264 allow_repo_location_change = true
268 allow_repo_location_change = true
265
269
266 ## allows to setup custom hooks in settings page
270 ## allows to setup custom hooks in settings page
267 allow_custom_hooks_settings = true
271 allow_custom_hooks_settings = true
268
272
269 ## generated license token, goto license page in RhodeCode settings to obtain
273 ## generated license token, goto license page in RhodeCode settings to obtain
270 ## new token
274 ## new token
271 license_token =
275 license_token =
272
276
273 ## supervisor connection uri, for managing supervisor and logs.
277 ## supervisor connection uri, for managing supervisor and logs.
274 supervisor.uri =
278 supervisor.uri =
275 ## supervisord group name/id we only want this RC instance to handle
279 ## supervisord group name/id we only want this RC instance to handle
276 supervisor.group_id = dev
280 supervisor.group_id = dev
277
281
278 ## Display extended labs settings
282 ## Display extended labs settings
279 labs_settings_active = true
283 labs_settings_active = true
280
284
281 ####################################
285 ####################################
282 ### CELERY CONFIG ####
286 ### CELERY CONFIG ####
283 ####################################
287 ####################################
284 use_celery = false
288 use_celery = false
285 broker.host = localhost
289 broker.host = localhost
286 broker.vhost = rabbitmqhost
290 broker.vhost = rabbitmqhost
287 broker.port = 5672
291 broker.port = 5672
288 broker.user = rabbitmq
292 broker.user = rabbitmq
289 broker.password = qweqwe
293 broker.password = qweqwe
290
294
291 celery.imports = rhodecode.lib.celerylib.tasks
295 celery.imports = rhodecode.lib.celerylib.tasks
292
296
293 celery.result.backend = amqp
297 celery.result.backend = amqp
294 celery.result.dburi = amqp://
298 celery.result.dburi = amqp://
295 celery.result.serialier = json
299 celery.result.serialier = json
296
300
297 #celery.send.task.error.emails = true
301 #celery.send.task.error.emails = true
298 #celery.amqp.task.result.expires = 18000
302 #celery.amqp.task.result.expires = 18000
299
303
300 celeryd.concurrency = 2
304 celeryd.concurrency = 2
301 #celeryd.log.file = celeryd.log
305 #celeryd.log.file = celeryd.log
302 celeryd.log.level = debug
306 celeryd.log.level = debug
303 celeryd.max.tasks.per.child = 1
307 celeryd.max.tasks.per.child = 1
304
308
305 ## tasks will never be sent to the queue, but executed locally instead.
309 ## tasks will never be sent to the queue, but executed locally instead.
306 celery.always.eager = false
310 celery.always.eager = false
307
311
308 ####################################
312 ####################################
309 ### BEAKER CACHE ####
313 ### BEAKER CACHE ####
310 ####################################
314 ####################################
311 # default cache dir for templates. Putting this into a ramdisk
315 # default cache dir for templates. Putting this into a ramdisk
312 ## can boost performance, eg. %(here)s/data_ramdisk
316 ## can boost performance, eg. %(here)s/data_ramdisk
313 cache_dir = %(here)s/data
317 cache_dir = %(here)s/data
314
318
315 ## locking and default file storage for Beaker. Putting this into a ramdisk
319 ## locking and default file storage for Beaker. Putting this into a ramdisk
316 ## can boost performance, eg. %(here)s/data_ramdisk/cache/beaker_data
320 ## can boost performance, eg. %(here)s/data_ramdisk/cache/beaker_data
317 beaker.cache.data_dir = %(here)s/data/cache/beaker_data
321 beaker.cache.data_dir = %(here)s/data/cache/beaker_data
318 beaker.cache.lock_dir = %(here)s/data/cache/beaker_lock
322 beaker.cache.lock_dir = %(here)s/data/cache/beaker_lock
319
323
320 beaker.cache.regions = super_short_term, short_term, long_term, sql_cache_short, auth_plugins, repo_cache_long
324 beaker.cache.regions = super_short_term, short_term, long_term, sql_cache_short, auth_plugins, repo_cache_long
321
325
322 beaker.cache.super_short_term.type = memory
326 beaker.cache.super_short_term.type = memory
323 beaker.cache.super_short_term.expire = 10
327 beaker.cache.super_short_term.expire = 10
324 beaker.cache.super_short_term.key_length = 256
328 beaker.cache.super_short_term.key_length = 256
325
329
326 beaker.cache.short_term.type = memory
330 beaker.cache.short_term.type = memory
327 beaker.cache.short_term.expire = 60
331 beaker.cache.short_term.expire = 60
328 beaker.cache.short_term.key_length = 256
332 beaker.cache.short_term.key_length = 256
329
333
330 beaker.cache.long_term.type = memory
334 beaker.cache.long_term.type = memory
331 beaker.cache.long_term.expire = 36000
335 beaker.cache.long_term.expire = 36000
332 beaker.cache.long_term.key_length = 256
336 beaker.cache.long_term.key_length = 256
333
337
334 beaker.cache.sql_cache_short.type = memory
338 beaker.cache.sql_cache_short.type = memory
335 beaker.cache.sql_cache_short.expire = 10
339 beaker.cache.sql_cache_short.expire = 10
336 beaker.cache.sql_cache_short.key_length = 256
340 beaker.cache.sql_cache_short.key_length = 256
337
341
338 ## default is memory cache, configure only if required
342 ## default is memory cache, configure only if required
339 ## using multi-node or multi-worker setup
343 ## using multi-node or multi-worker setup
340 #beaker.cache.auth_plugins.type = ext:database
344 #beaker.cache.auth_plugins.type = ext:database
341 #beaker.cache.auth_plugins.lock_dir = %(here)s/data/cache/auth_plugin_lock
345 #beaker.cache.auth_plugins.lock_dir = %(here)s/data/cache/auth_plugin_lock
342 #beaker.cache.auth_plugins.url = postgresql://postgres:secret@localhost/rhodecode
346 #beaker.cache.auth_plugins.url = postgresql://postgres:secret@localhost/rhodecode
343 #beaker.cache.auth_plugins.url = mysql://root:secret@127.0.0.1/rhodecode
347 #beaker.cache.auth_plugins.url = mysql://root:secret@127.0.0.1/rhodecode
344 #beaker.cache.auth_plugins.sa.pool_recycle = 3600
348 #beaker.cache.auth_plugins.sa.pool_recycle = 3600
345 #beaker.cache.auth_plugins.sa.pool_size = 10
349 #beaker.cache.auth_plugins.sa.pool_size = 10
346 #beaker.cache.auth_plugins.sa.max_overflow = 0
350 #beaker.cache.auth_plugins.sa.max_overflow = 0
347
351
348 beaker.cache.repo_cache_long.type = memorylru_base
352 beaker.cache.repo_cache_long.type = memorylru_base
349 beaker.cache.repo_cache_long.max_items = 4096
353 beaker.cache.repo_cache_long.max_items = 4096
350 beaker.cache.repo_cache_long.expire = 2592000
354 beaker.cache.repo_cache_long.expire = 2592000
351
355
352 ## default is memorylru_base cache, configure only if required
356 ## default is memorylru_base cache, configure only if required
353 ## using multi-node or multi-worker setup
357 ## using multi-node or multi-worker setup
354 #beaker.cache.repo_cache_long.type = ext:memcached
358 #beaker.cache.repo_cache_long.type = ext:memcached
355 #beaker.cache.repo_cache_long.url = localhost:11211
359 #beaker.cache.repo_cache_long.url = localhost:11211
356 #beaker.cache.repo_cache_long.expire = 1209600
360 #beaker.cache.repo_cache_long.expire = 1209600
357 #beaker.cache.repo_cache_long.key_length = 256
361 #beaker.cache.repo_cache_long.key_length = 256
358
362
359 ####################################
363 ####################################
360 ### BEAKER SESSION ####
364 ### BEAKER SESSION ####
361 ####################################
365 ####################################
362
366
363 ## .session.type is type of storage options for the session, current allowed
367 ## .session.type is type of storage options for the session, current allowed
364 ## types are file, ext:memcached, ext:database, and memory (default).
368 ## types are file, ext:memcached, ext:database, and memory (default).
365 beaker.session.type = file
369 beaker.session.type = file
366 beaker.session.data_dir = %(here)s/data/sessions/data
370 beaker.session.data_dir = %(here)s/data/sessions/data
367
371
368 ## db based session, fast, and allows easy management over logged in users
372 ## db based session, fast, and allows easy management over logged in users
369 #beaker.session.type = ext:database
373 #beaker.session.type = ext:database
370 #beaker.session.table_name = db_session
374 #beaker.session.table_name = db_session
371 #beaker.session.sa.url = postgresql://postgres:secret@localhost/rhodecode
375 #beaker.session.sa.url = postgresql://postgres:secret@localhost/rhodecode
372 #beaker.session.sa.url = mysql://root:secret@127.0.0.1/rhodecode
376 #beaker.session.sa.url = mysql://root:secret@127.0.0.1/rhodecode
373 #beaker.session.sa.pool_recycle = 3600
377 #beaker.session.sa.pool_recycle = 3600
374 #beaker.session.sa.echo = false
378 #beaker.session.sa.echo = false
375
379
376 beaker.session.key = rhodecode
380 beaker.session.key = rhodecode
377 beaker.session.secret = develop-rc-uytcxaz
381 beaker.session.secret = develop-rc-uytcxaz
378 beaker.session.lock_dir = %(here)s/data/sessions/lock
382 beaker.session.lock_dir = %(here)s/data/sessions/lock
379
383
380 ## Secure encrypted cookie. Requires AES and AES python libraries
384 ## Secure encrypted cookie. Requires AES and AES python libraries
381 ## you must disable beaker.session.secret to use this
385 ## you must disable beaker.session.secret to use this
382 #beaker.session.encrypt_key = key_for_encryption
386 #beaker.session.encrypt_key = key_for_encryption
383 #beaker.session.validate_key = validation_key
387 #beaker.session.validate_key = validation_key
384
388
385 ## sets session as invalid(also logging out user) if it haven not been
389 ## sets session as invalid(also logging out user) if it haven not been
386 ## accessed for given amount of time in seconds
390 ## accessed for given amount of time in seconds
387 beaker.session.timeout = 2592000
391 beaker.session.timeout = 2592000
388 beaker.session.httponly = true
392 beaker.session.httponly = true
389 ## Path to use for the cookie. Set to prefix if you use prefix middleware
393 ## Path to use for the cookie. Set to prefix if you use prefix middleware
390 #beaker.session.cookie_path = /custom_prefix
394 #beaker.session.cookie_path = /custom_prefix
391
395
392 ## uncomment for https secure cookie
396 ## uncomment for https secure cookie
393 beaker.session.secure = false
397 beaker.session.secure = false
394
398
395 ## auto save the session to not to use .save()
399 ## auto save the session to not to use .save()
396 beaker.session.auto = false
400 beaker.session.auto = false
397
401
398 ## default cookie expiration time in seconds, set to `true` to set expire
402 ## default cookie expiration time in seconds, set to `true` to set expire
399 ## at browser close
403 ## at browser close
400 #beaker.session.cookie_expires = 3600
404 #beaker.session.cookie_expires = 3600
401
405
402 ###################################
406 ###################################
403 ## SEARCH INDEXING CONFIGURATION ##
407 ## SEARCH INDEXING CONFIGURATION ##
404 ###################################
408 ###################################
405 ## Full text search indexer is available in rhodecode-tools under
409 ## Full text search indexer is available in rhodecode-tools under
406 ## `rhodecode-tools index` command
410 ## `rhodecode-tools index` command
407
411
408 ## WHOOSH Backend, doesn't require additional services to run
412 ## WHOOSH Backend, doesn't require additional services to run
409 ## it works good with few dozen repos
413 ## it works good with few dozen repos
410 search.module = rhodecode.lib.index.whoosh
414 search.module = rhodecode.lib.index.whoosh
411 search.location = %(here)s/data/index
415 search.location = %(here)s/data/index
412
416
413 ########################################
417 ########################################
414 ### CHANNELSTREAM CONFIG ####
418 ### CHANNELSTREAM CONFIG ####
415 ########################################
419 ########################################
416 ## channelstream enables persistent connections and live notification
420 ## channelstream enables persistent connections and live notification
417 ## in the system. It's also used by the chat system
421 ## in the system. It's also used by the chat system
418 channelstream.enabled = false
422 channelstream.enabled = false
419
423
420 ## server address for channelstream server on the backend
424 ## server address for channelstream server on the backend
421 channelstream.server = 127.0.0.1:9800
425 channelstream.server = 127.0.0.1:9800
422
426
423 ## location of the channelstream server from outside world
427 ## location of the channelstream server from outside world
424 ## use ws:// for http or wss:// for https. This address needs to be handled
428 ## use ws:// for http or wss:// for https. This address needs to be handled
425 ## by external HTTP server such as Nginx or Apache
429 ## by external HTTP server such as Nginx or Apache
426 ## see nginx/apache configuration examples in our docs
430 ## see nginx/apache configuration examples in our docs
427 channelstream.ws_url = ws://rhodecode.yourserver.com/_channelstream
431 channelstream.ws_url = ws://rhodecode.yourserver.com/_channelstream
428 channelstream.secret = secret
432 channelstream.secret = secret
429 channelstream.history.location = %(here)s/channelstream_history
433 channelstream.history.location = %(here)s/channelstream_history
430
434
431 ## Internal application path that Javascript uses to connect into.
435 ## Internal application path that Javascript uses to connect into.
432 ## If you use proxy-prefix the prefix should be added before /_channelstream
436 ## If you use proxy-prefix the prefix should be added before /_channelstream
433 channelstream.proxy_path = /_channelstream
437 channelstream.proxy_path = /_channelstream
434
438
435
439
436 ###################################
440 ###################################
437 ## APPENLIGHT CONFIG ##
441 ## APPENLIGHT CONFIG ##
438 ###################################
442 ###################################
439
443
440 ## Appenlight is tailored to work with RhodeCode, see
444 ## Appenlight is tailored to work with RhodeCode, see
441 ## http://appenlight.com for details how to obtain an account
445 ## http://appenlight.com for details how to obtain an account
442
446
443 ## appenlight integration enabled
447 ## appenlight integration enabled
444 appenlight = false
448 appenlight = false
445
449
446 appenlight.server_url = https://api.appenlight.com
450 appenlight.server_url = https://api.appenlight.com
447 appenlight.api_key = YOUR_API_KEY
451 appenlight.api_key = YOUR_API_KEY
448 #appenlight.transport_config = https://api.appenlight.com?threaded=1&timeout=5
452 #appenlight.transport_config = https://api.appenlight.com?threaded=1&timeout=5
449
453
450 # used for JS client
454 # used for JS client
451 appenlight.api_public_key = YOUR_API_PUBLIC_KEY
455 appenlight.api_public_key = YOUR_API_PUBLIC_KEY
452
456
453 ## TWEAK AMOUNT OF INFO SENT HERE
457 ## TWEAK AMOUNT OF INFO SENT HERE
454
458
455 ## enables 404 error logging (default False)
459 ## enables 404 error logging (default False)
456 appenlight.report_404 = false
460 appenlight.report_404 = false
457
461
458 ## time in seconds after request is considered being slow (default 1)
462 ## time in seconds after request is considered being slow (default 1)
459 appenlight.slow_request_time = 1
463 appenlight.slow_request_time = 1
460
464
461 ## record slow requests in application
465 ## record slow requests in application
462 ## (needs to be enabled for slow datastore recording and time tracking)
466 ## (needs to be enabled for slow datastore recording and time tracking)
463 appenlight.slow_requests = true
467 appenlight.slow_requests = true
464
468
465 ## enable hooking to application loggers
469 ## enable hooking to application loggers
466 appenlight.logging = true
470 appenlight.logging = true
467
471
468 ## minimum log level for log capture
472 ## minimum log level for log capture
469 appenlight.logging.level = WARNING
473 appenlight.logging.level = WARNING
470
474
471 ## send logs only from erroneous/slow requests
475 ## send logs only from erroneous/slow requests
472 ## (saves API quota for intensive logging)
476 ## (saves API quota for intensive logging)
473 appenlight.logging_on_error = false
477 appenlight.logging_on_error = false
474
478
475 ## list of additonal keywords that should be grabbed from environ object
479 ## list of additonal keywords that should be grabbed from environ object
476 ## can be string with comma separated list of words in lowercase
480 ## can be string with comma separated list of words in lowercase
477 ## (by default client will always send following info:
481 ## (by default client will always send following info:
478 ## 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that
482 ## 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that
479 ## start with HTTP* this list be extended with additional keywords here
483 ## start with HTTP* this list be extended with additional keywords here
480 appenlight.environ_keys_whitelist =
484 appenlight.environ_keys_whitelist =
481
485
482 ## list of keywords that should be blanked from request object
486 ## list of keywords that should be blanked from request object
483 ## can be string with comma separated list of words in lowercase
487 ## can be string with comma separated list of words in lowercase
484 ## (by default client will always blank keys that contain following words
488 ## (by default client will always blank keys that contain following words
485 ## 'password', 'passwd', 'pwd', 'auth_tkt', 'secret', 'csrf'
489 ## 'password', 'passwd', 'pwd', 'auth_tkt', 'secret', 'csrf'
486 ## this list be extended with additional keywords set here
490 ## this list be extended with additional keywords set here
487 appenlight.request_keys_blacklist =
491 appenlight.request_keys_blacklist =
488
492
489 ## list of namespaces that should be ignores when gathering log entries
493 ## list of namespaces that should be ignores when gathering log entries
490 ## can be string with comma separated list of namespaces
494 ## can be string with comma separated list of namespaces
491 ## (by default the client ignores own entries: appenlight_client.client)
495 ## (by default the client ignores own entries: appenlight_client.client)
492 appenlight.log_namespace_blacklist =
496 appenlight.log_namespace_blacklist =
493
497
494
498
495 ################################################################################
499 ################################################################################
496 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
500 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
497 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
501 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
498 ## execute malicious code after an exception is raised. ##
502 ## execute malicious code after an exception is raised. ##
499 ################################################################################
503 ################################################################################
500 #set debug = false
504 #set debug = false
501
505
502
506
503 ##############
507 ##############
504 ## STYLING ##
508 ## STYLING ##
505 ##############
509 ##############
506 debug_style = true
510 debug_style = true
507
511
508 ###########################################
512 ###########################################
509 ### MAIN RHODECODE DATABASE CONFIG ###
513 ### MAIN RHODECODE DATABASE CONFIG ###
510 ###########################################
514 ###########################################
511 #sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db?timeout=30
515 #sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db?timeout=30
512 #sqlalchemy.db1.url = postgresql://postgres:qweqwe@localhost/rhodecode
516 #sqlalchemy.db1.url = postgresql://postgres:qweqwe@localhost/rhodecode
513 #sqlalchemy.db1.url = mysql://root:qweqwe@localhost/rhodecode
517 #sqlalchemy.db1.url = mysql://root:qweqwe@localhost/rhodecode
514 sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db?timeout=30
518 sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db?timeout=30
515
519
516 # see sqlalchemy docs for other advanced settings
520 # see sqlalchemy docs for other advanced settings
517
521
518 ## print the sql statements to output
522 ## print the sql statements to output
519 sqlalchemy.db1.echo = false
523 sqlalchemy.db1.echo = false
520 ## recycle the connections after this amount of seconds
524 ## recycle the connections after this amount of seconds
521 sqlalchemy.db1.pool_recycle = 3600
525 sqlalchemy.db1.pool_recycle = 3600
522 sqlalchemy.db1.convert_unicode = true
526 sqlalchemy.db1.convert_unicode = true
523
527
524 ## the number of connections to keep open inside the connection pool.
528 ## the number of connections to keep open inside the connection pool.
525 ## 0 indicates no limit
529 ## 0 indicates no limit
526 #sqlalchemy.db1.pool_size = 5
530 #sqlalchemy.db1.pool_size = 5
527
531
528 ## the number of connections to allow in connection pool "overflow", that is
532 ## the number of connections to allow in connection pool "overflow", that is
529 ## connections that can be opened above and beyond the pool_size setting,
533 ## connections that can be opened above and beyond the pool_size setting,
530 ## which defaults to five.
534 ## which defaults to five.
531 #sqlalchemy.db1.max_overflow = 10
535 #sqlalchemy.db1.max_overflow = 10
532
536
533
537
534 ##################
538 ##################
535 ### VCS CONFIG ###
539 ### VCS CONFIG ###
536 ##################
540 ##################
537 vcs.server.enable = true
541 vcs.server.enable = true
538 vcs.server = localhost:9900
542 vcs.server = localhost:9900
539
543
540 ## Web server connectivity protocol, responsible for web based VCS operatations
544 ## Web server connectivity protocol, responsible for web based VCS operatations
541 ## Available protocols are:
545 ## Available protocols are:
542 ## `http` - use http-rpc backend (default)
546 ## `http` - use http-rpc backend (default)
543 vcs.server.protocol = http
547 vcs.server.protocol = http
544
548
545 ## Push/Pull operations protocol, available options are:
549 ## Push/Pull operations protocol, available options are:
546 ## `http` - use http-rpc backend (default)
550 ## `http` - use http-rpc backend (default)
547 ##
551 ##
548 vcs.scm_app_implementation = http
552 vcs.scm_app_implementation = http
549
553
550 ## Push/Pull operations hooks protocol, available options are:
554 ## Push/Pull operations hooks protocol, available options are:
551 ## `http` - use http-rpc backend (default)
555 ## `http` - use http-rpc backend (default)
552 vcs.hooks.protocol = http
556 vcs.hooks.protocol = http
553
557
554 vcs.server.log_level = debug
558 vcs.server.log_level = debug
555 ## Start VCSServer with this instance as a subprocess, usefull for development
559 ## Start VCSServer with this instance as a subprocess, usefull for development
556 vcs.start_server = true
560 vcs.start_server = true
557
561
558 ## List of enabled VCS backends, available options are:
562 ## List of enabled VCS backends, available options are:
559 ## `hg` - mercurial
563 ## `hg` - mercurial
560 ## `git` - git
564 ## `git` - git
561 ## `svn` - subversion
565 ## `svn` - subversion
562 vcs.backends = hg, git, svn
566 vcs.backends = hg, git, svn
563
567
564 vcs.connection_timeout = 3600
568 vcs.connection_timeout = 3600
565 ## Compatibility version when creating SVN repositories. Defaults to newest version when commented out.
569 ## Compatibility version when creating SVN repositories. Defaults to newest version when commented out.
566 ## Available options are: pre-1.4-compatible, pre-1.5-compatible, pre-1.6-compatible, pre-1.8-compatible
570 ## Available options are: pre-1.4-compatible, pre-1.5-compatible, pre-1.6-compatible, pre-1.8-compatible
567 #vcs.svn.compatible_version = pre-1.8-compatible
571 #vcs.svn.compatible_version = pre-1.8-compatible
568
572
569
573
570 ############################################################
574 ############################################################
571 ### Subversion proxy support (mod_dav_svn) ###
575 ### Subversion proxy support (mod_dav_svn) ###
572 ### Maps RhodeCode repo groups into SVN paths for Apache ###
576 ### Maps RhodeCode repo groups into SVN paths for Apache ###
573 ############################################################
577 ############################################################
574 ## Enable or disable the config file generation.
578 ## Enable or disable the config file generation.
575 svn.proxy.generate_config = false
579 svn.proxy.generate_config = false
576 ## Generate config file with `SVNListParentPath` set to `On`.
580 ## Generate config file with `SVNListParentPath` set to `On`.
577 svn.proxy.list_parent_path = true
581 svn.proxy.list_parent_path = true
578 ## Set location and file name of generated config file.
582 ## Set location and file name of generated config file.
579 svn.proxy.config_file_path = %(here)s/mod_dav_svn.conf
583 svn.proxy.config_file_path = %(here)s/mod_dav_svn.conf
580 ## Used as a prefix to the `Location` block in the generated config file.
584 ## Used as a prefix to the `Location` block in the generated config file.
581 ## In most cases it should be set to `/`.
585 ## In most cases it should be set to `/`.
582 svn.proxy.location_root = /
586 svn.proxy.location_root = /
583 ## Command to reload the mod dav svn configuration on change.
587 ## Command to reload the mod dav svn configuration on change.
584 ## Example: `/etc/init.d/apache2 reload`
588 ## Example: `/etc/init.d/apache2 reload`
585 #svn.proxy.reload_cmd = /etc/init.d/apache2 reload
589 #svn.proxy.reload_cmd = /etc/init.d/apache2 reload
586 ## If the timeout expires before the reload command finishes, the command will
590 ## If the timeout expires before the reload command finishes, the command will
587 ## be killed. Setting it to zero means no timeout. Defaults to 10 seconds.
591 ## be killed. Setting it to zero means no timeout. Defaults to 10 seconds.
588 #svn.proxy.reload_timeout = 10
592 #svn.proxy.reload_timeout = 10
589
593
590 ############################################################
594 ############################################################
591 ### SSH Support Settings ###
595 ### SSH Support Settings ###
592 ############################################################
596 ############################################################
593
597
594 ## Defines if the authorized_keys file should be written on any change of
598 ## Defines if the authorized_keys file should be written on any change of
595 ## user ssh keys
599 ## user ssh keys
596 ssh.generate_authorized_keyfile = false
600 ssh.generate_authorized_keyfile = false
597
601
598 ## Options for ssh, default is `no-pty,no-port-forwarding,no-X11-forwarding,no-agent-forwarding`
602 ## Options for ssh, default is `no-pty,no-port-forwarding,no-X11-forwarding,no-agent-forwarding`
599 # ssh.authorized_keys_ssh_opts =
603 # ssh.authorized_keys_ssh_opts =
600
604
601 ## File to generate the authorized keys together with options
605 ## File to generate the authorized keys together with options
602 ssh.authorized_keys_file_path = /home/USER/.ssh/authorized_keys
606 ssh.authorized_keys_file_path = /home/USER/.ssh/authorized_keys
603
607
604 ## Command to execute as an SSH wrapper, available from
608 ## Command to execute as an SSH wrapper, available from
605 ## https://code.rhodecode.com/rhodecode-ssh
609 ## https://code.rhodecode.com/rhodecode-ssh
606 ssh.wrapper_cmd = /home/USER/rhodecode-ssh/sshwrapper.py
610 ssh.wrapper_cmd = /home/USER/rhodecode-ssh/sshwrapper.py
607
611
608 ## Allow shell when executing the command
612 ## Allow shell when executing the command
609 ssh.wrapper_cmd_allow_shell = false
613 ssh.wrapper_cmd_allow_shell = false
610
614
611 ## Dummy marker to add new entries after.
615 ## Dummy marker to add new entries after.
612 ## Add any custom entries below. Please don't remove.
616 ## Add any custom entries below. Please don't remove.
613 custom.conf = 1
617 custom.conf = 1
614
618
615
619
616 ################################
620 ################################
617 ### LOGGING CONFIGURATION ####
621 ### LOGGING CONFIGURATION ####
618 ################################
622 ################################
619 [loggers]
623 [loggers]
620 keys = root, routes, rhodecode, sqlalchemy, beaker, templates
624 keys = root, routes, rhodecode, sqlalchemy, beaker, templates
621
625
622 [handlers]
626 [handlers]
623 keys = console, console_sql
627 keys = console, console_sql
624
628
625 [formatters]
629 [formatters]
626 keys = generic, color_formatter, color_formatter_sql
630 keys = generic, color_formatter, color_formatter_sql
627
631
628 #############
632 #############
629 ## LOGGERS ##
633 ## LOGGERS ##
630 #############
634 #############
631 [logger_root]
635 [logger_root]
632 level = NOTSET
636 level = NOTSET
633 handlers = console
637 handlers = console
634
638
635 [logger_routes]
639 [logger_routes]
636 level = DEBUG
640 level = DEBUG
637 handlers =
641 handlers =
638 qualname = routes.middleware
642 qualname = routes.middleware
639 ## "level = DEBUG" logs the route matched and routing variables.
643 ## "level = DEBUG" logs the route matched and routing variables.
640 propagate = 1
644 propagate = 1
641
645
642 [logger_beaker]
646 [logger_beaker]
643 level = DEBUG
647 level = DEBUG
644 handlers =
648 handlers =
645 qualname = beaker.container
649 qualname = beaker.container
646 propagate = 1
650 propagate = 1
647
651
648 [logger_templates]
652 [logger_templates]
649 level = INFO
653 level = INFO
650 handlers =
654 handlers =
651 qualname = pylons.templating
655 qualname = pylons.templating
652 propagate = 1
656 propagate = 1
653
657
654 [logger_rhodecode]
658 [logger_rhodecode]
655 level = DEBUG
659 level = DEBUG
656 handlers =
660 handlers =
657 qualname = rhodecode
661 qualname = rhodecode
658 propagate = 1
662 propagate = 1
659
663
660 [logger_sqlalchemy]
664 [logger_sqlalchemy]
661 level = INFO
665 level = INFO
662 handlers = console_sql
666 handlers = console_sql
663 qualname = sqlalchemy.engine
667 qualname = sqlalchemy.engine
664 propagate = 0
668 propagate = 0
665
669
666 ##############
670 ##############
667 ## HANDLERS ##
671 ## HANDLERS ##
668 ##############
672 ##############
669
673
670 [handler_console]
674 [handler_console]
671 class = StreamHandler
675 class = StreamHandler
672 args = (sys.stderr, )
676 args = (sys.stderr, )
673 level = DEBUG
677 level = DEBUG
674 formatter = color_formatter
678 formatter = color_formatter
675
679
676 [handler_console_sql]
680 [handler_console_sql]
677 class = StreamHandler
681 class = StreamHandler
678 args = (sys.stderr, )
682 args = (sys.stderr, )
679 level = DEBUG
683 level = DEBUG
680 formatter = color_formatter_sql
684 formatter = color_formatter_sql
681
685
682 ################
686 ################
683 ## FORMATTERS ##
687 ## FORMATTERS ##
684 ################
688 ################
685
689
686 [formatter_generic]
690 [formatter_generic]
687 class = rhodecode.lib.logging_formatter.ExceptionAwareFormatter
691 class = rhodecode.lib.logging_formatter.ExceptionAwareFormatter
688 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
692 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
689 datefmt = %Y-%m-%d %H:%M:%S
693 datefmt = %Y-%m-%d %H:%M:%S
690
694
691 [formatter_color_formatter]
695 [formatter_color_formatter]
692 class = rhodecode.lib.logging_formatter.ColorFormatter
696 class = rhodecode.lib.logging_formatter.ColorFormatter
693 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
697 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
694 datefmt = %Y-%m-%d %H:%M:%S
698 datefmt = %Y-%m-%d %H:%M:%S
695
699
696 [formatter_color_formatter_sql]
700 [formatter_color_formatter_sql]
697 class = rhodecode.lib.logging_formatter.ColorFormatterSql
701 class = rhodecode.lib.logging_formatter.ColorFormatterSql
698 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
702 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
699 datefmt = %Y-%m-%d %H:%M:%S
703 datefmt = %Y-%m-%d %H:%M:%S
@@ -1,668 +1,672 b''
1
1
2
2
3 ################################################################################
3 ################################################################################
4 ## RHODECODE COMMUNITY EDITION CONFIGURATION ##
4 ## RHODECODE COMMUNITY EDITION CONFIGURATION ##
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
10
11 ################################################################################
11 ################################################################################
12 ## EMAIL CONFIGURATION ##
12 ## EMAIL CONFIGURATION ##
13 ## Uncomment and replace with the email address which should receive ##
13 ## Uncomment and replace with the email address which should receive ##
14 ## any error reports after an application crash ##
14 ## any error reports after an application crash ##
15 ## Additionally these settings will be used by the RhodeCode mailing system ##
15 ## Additionally these settings will be used by the RhodeCode mailing system ##
16 ################################################################################
16 ################################################################################
17
17
18 ## prefix all emails subjects with given prefix, helps filtering out emails
18 ## prefix all emails subjects with given prefix, helps filtering out emails
19 #email_prefix = [RhodeCode]
19 #email_prefix = [RhodeCode]
20
20
21 ## email FROM address all mails will be sent
21 ## email FROM address all mails will be sent
22 #app_email_from = rhodecode-noreply@localhost
22 #app_email_from = rhodecode-noreply@localhost
23
23
24 ## Uncomment and replace with the address which should receive any error report
24 ## Uncomment and replace with the address which should receive any error report
25 ## note: using appenlight for error handling doesn't need this to be uncommented
25 ## note: using appenlight for error handling doesn't need this to be uncommented
26 #email_to = admin@localhost
26 #email_to = admin@localhost
27
27
28 ## in case of Application errors, sent an error email form
28 ## in case of Application errors, sent an error email form
29 #error_email_from = rhodecode_error@localhost
29 #error_email_from = rhodecode_error@localhost
30
30
31 ## additional error message to be send in case of server crash
31 ## additional error message to be send in case of server crash
32 #error_message =
32 #error_message =
33
33
34
34
35 #smtp_server = mail.server.com
35 #smtp_server = mail.server.com
36 #smtp_username =
36 #smtp_username =
37 #smtp_password =
37 #smtp_password =
38 #smtp_port =
38 #smtp_port =
39 #smtp_use_tls = false
39 #smtp_use_tls = false
40 #smtp_use_ssl = true
40 #smtp_use_ssl = true
41 ## Specify available auth parameters here (e.g. LOGIN PLAIN CRAM-MD5, etc.)
41 ## Specify available auth parameters here (e.g. LOGIN PLAIN CRAM-MD5, etc.)
42 #smtp_auth =
42 #smtp_auth =
43
43
44 [server:main]
44 [server:main]
45 ## COMMON ##
45 ## COMMON ##
46 host = 127.0.0.1
46 host = 127.0.0.1
47 port = 5000
47 port = 5000
48
48
49 ##################################
49 ##################################
50 ## WAITRESS WSGI SERVER ##
50 ## WAITRESS WSGI SERVER ##
51 ## Recommended for Development ##
51 ## Recommended for Development ##
52 ##################################
52 ##################################
53
53
54 #use = egg:waitress#main
54 #use = egg:waitress#main
55 ## number of worker threads
55 ## number of worker threads
56 #threads = 5
56 #threads = 5
57 ## MAX BODY SIZE 100GB
57 ## MAX BODY SIZE 100GB
58 #max_request_body_size = 107374182400
58 #max_request_body_size = 107374182400
59 ## Use poll instead of select, fixes file descriptors limits problems.
59 ## Use poll instead of select, fixes file descriptors limits problems.
60 ## May not work on old windows systems.
60 ## May not work on old windows systems.
61 #asyncore_use_poll = true
61 #asyncore_use_poll = true
62
62
63
63
64 ##########################
64 ##########################
65 ## GUNICORN WSGI SERVER ##
65 ## GUNICORN WSGI SERVER ##
66 ##########################
66 ##########################
67 ## run with gunicorn --log-config rhodecode.ini --paste rhodecode.ini
67 ## run with gunicorn --log-config rhodecode.ini --paste rhodecode.ini
68
68
69 use = egg:gunicorn#main
69 use = egg:gunicorn#main
70 ## Sets the number of process workers. You must set `instance_id = *`
70 ## Sets the number of process workers. You must set `instance_id = *`
71 ## when this option is set to more than one worker, recommended
71 ## when this option is set to more than one worker, recommended
72 ## value is (2 * NUMBER_OF_CPUS + 1), eg 2CPU = 5 workers
72 ## value is (2 * NUMBER_OF_CPUS + 1), eg 2CPU = 5 workers
73 ## The `instance_id = *` must be set in the [app:main] section below
73 ## The `instance_id = *` must be set in the [app:main] section below
74 workers = 2
74 workers = 2
75 ## number of threads for each of the worker, must be set to 1 for gevent
75 ## number of threads for each of the worker, must be set to 1 for gevent
76 ## generally recommened to be at 1
76 ## generally recommened to be at 1
77 #threads = 1
77 #threads = 1
78 ## process name
78 ## process name
79 proc_name = rhodecode
79 proc_name = rhodecode
80 ## type of worker class, one of sync, gevent
80 ## type of worker class, one of sync, gevent
81 ## recommended for bigger setup is using of of other than sync one
81 ## recommended for bigger setup is using of of other than sync one
82 worker_class = sync
82 worker_class = sync
83 ## The maximum number of simultaneous clients. Valid only for Gevent
83 ## The maximum number of simultaneous clients. Valid only for Gevent
84 #worker_connections = 10
84 #worker_connections = 10
85 ## max number of requests that worker will handle before being gracefully
85 ## max number of requests that worker will handle before being gracefully
86 ## restarted, could prevent memory leaks
86 ## restarted, could prevent memory leaks
87 max_requests = 1000
87 max_requests = 1000
88 max_requests_jitter = 30
88 max_requests_jitter = 30
89 ## amount of time a worker can spend with handling a request before it
89 ## amount of time a worker can spend with handling a request before it
90 ## gets killed and restarted. Set to 6hrs
90 ## gets killed and restarted. Set to 6hrs
91 timeout = 21600
91 timeout = 21600
92
92
93
93
94 ## prefix middleware for RhodeCode.
94 ## prefix middleware for RhodeCode.
95 ## recommended when using proxy setup.
95 ## recommended when using proxy setup.
96 ## allows to set RhodeCode under a prefix in server.
96 ## allows to set RhodeCode under a prefix in server.
97 ## eg https://server.com/custom_prefix. Enable `filter-with =` option below as well.
97 ## eg https://server.com/custom_prefix. Enable `filter-with =` option below as well.
98 ## And set your prefix like: `prefix = /custom_prefix`
98 ## And set your prefix like: `prefix = /custom_prefix`
99 ## be sure to also set beaker.session.cookie_path = /custom_prefix if you need
99 ## be sure to also set beaker.session.cookie_path = /custom_prefix if you need
100 ## to make your cookies only work on prefix url
100 ## to make your cookies only work on prefix url
101 [filter:proxy-prefix]
101 [filter:proxy-prefix]
102 use = egg:PasteDeploy#prefix
102 use = egg:PasteDeploy#prefix
103 prefix = /
103 prefix = /
104
104
105 [app:main]
105 [app:main]
106 use = egg:rhodecode-enterprise-ce
106 use = egg:rhodecode-enterprise-ce
107
107
108 ## enable proxy prefix middleware, defined above
108 ## enable proxy prefix middleware, defined above
109 #filter-with = proxy-prefix
109 #filter-with = proxy-prefix
110
110
111 ## encryption key used to encrypt social plugin tokens,
111 ## encryption key used to encrypt social plugin tokens,
112 ## remote_urls with credentials etc, if not set it defaults to
112 ## remote_urls with credentials etc, if not set it defaults to
113 ## `beaker.session.secret`
113 ## `beaker.session.secret`
114 #rhodecode.encrypted_values.secret =
114 #rhodecode.encrypted_values.secret =
115
115
116 ## decryption strict mode (enabled by default). It controls if decryption raises
116 ## decryption strict mode (enabled by default). It controls if decryption raises
117 ## `SignatureVerificationError` in case of wrong key, or damaged encryption data.
117 ## `SignatureVerificationError` in case of wrong key, or damaged encryption data.
118 #rhodecode.encrypted_values.strict = false
118 #rhodecode.encrypted_values.strict = false
119
119
120 ## return gzipped responses from Rhodecode (static files/application)
120 ## return gzipped responses from Rhodecode (static files/application)
121 gzip_responses = false
121 gzip_responses = false
122
122
123 ## autogenerate javascript routes file on startup
123 ## autogenerate javascript routes file on startup
124 generate_js_files = false
124 generate_js_files = false
125
125
126 ## Optional Languages
126 ## Optional Languages
127 ## en(default), be, de, es, fr, it, ja, pl, pt, ru, zh
127 ## en(default), be, de, es, fr, it, ja, pl, pt, ru, zh
128 lang = en
128 lang = en
129
129
130 ## perform a full repository scan on each server start, this should be
130 ## perform a full repository scan on each server start, this should be
131 ## set to false after first startup, to allow faster server restarts.
131 ## set to false after first startup, to allow faster server restarts.
132 startup.import_repos = false
132 startup.import_repos = false
133
133
134 ## Uncomment and set this path to use archive download cache.
134 ## Uncomment and set this path to use archive download cache.
135 ## Once enabled, generated archives will be cached at this location
135 ## Once enabled, generated archives will be cached at this location
136 ## and served from the cache during subsequent requests for the same archive of
136 ## and served from the cache during subsequent requests for the same archive of
137 ## the repository.
137 ## the repository.
138 #archive_cache_dir = /tmp/tarballcache
138 #archive_cache_dir = /tmp/tarballcache
139
139
140 ## change this to unique ID for security
140 ## change this to unique ID for security
141 app_instance_uuid = rc-production
141 app_instance_uuid = rc-production
142
142
143 ## cut off limit for large diffs (size in bytes)
143 ## cut off limit for large diffs (size in bytes)
144 cut_off_limit_diff = 1024000
144 cut_off_limit_diff = 1024000
145 cut_off_limit_file = 256000
145 cut_off_limit_file = 256000
146
146
147 ## use cache version of scm repo everywhere
147 ## use cache version of scm repo everywhere
148 vcs_full_cache = true
148 vcs_full_cache = true
149
149
150 ## force https in RhodeCode, fixes https redirects, assumes it's always https
150 ## force https in RhodeCode, fixes https redirects, assumes it's always https
151 ## Normally this is controlled by proper http flags sent from http server
151 ## Normally this is controlled by proper http flags sent from http server
152 force_https = false
152 force_https = false
153
153
154 ## use Strict-Transport-Security headers
154 ## use Strict-Transport-Security headers
155 use_htsts = false
155 use_htsts = false
156
156
157 ## number of commits stats will parse on each iteration
157 ## number of commits stats will parse on each iteration
158 commit_parse_limit = 25
158 commit_parse_limit = 25
159
159
160 ## git rev filter option, --all is the default filter, if you need to
160 ## git rev filter option, --all is the default filter, if you need to
161 ## hide all refs in changelog switch this to --branches --tags
161 ## hide all refs in changelog switch this to --branches --tags
162 git_rev_filter = --branches --tags
162 git_rev_filter = --branches --tags
163
163
164 # Set to true if your repos are exposed using the dumb protocol
164 # Set to true if your repos are exposed using the dumb protocol
165 git_update_server_info = false
165 git_update_server_info = false
166
166
167 ## RSS/ATOM feed options
167 ## RSS/ATOM feed options
168 rss_cut_off_limit = 256000
168 rss_cut_off_limit = 256000
169 rss_items_per_page = 10
169 rss_items_per_page = 10
170 rss_include_diff = false
170 rss_include_diff = false
171
171
172 ## gist URL alias, used to create nicer urls for gist. This should be an
172 ## gist URL alias, used to create nicer urls for gist. This should be an
173 ## url that does rewrites to _admin/gists/{gistid}.
173 ## url that does rewrites to _admin/gists/{gistid}.
174 ## example: http://gist.rhodecode.org/{gistid}. Empty means use the internal
174 ## example: http://gist.rhodecode.org/{gistid}. Empty means use the internal
175 ## RhodeCode url, ie. http[s]://rhodecode.server/_admin/gists/{gistid}
175 ## RhodeCode url, ie. http[s]://rhodecode.server/_admin/gists/{gistid}
176 gist_alias_url =
176 gist_alias_url =
177
177
178 ## List of views (using glob pattern syntax) that AUTH TOKENS could be
178 ## List of views (using glob pattern syntax) that AUTH TOKENS could be
179 ## used for access.
179 ## used for access.
180 ## Adding ?auth_token=TOKEN_HASH to the url authenticates this request as if it
180 ## Adding ?auth_token=TOKEN_HASH to the url authenticates this request as if it
181 ## came from the the logged in user who own this authentication token.
181 ## came from the the logged in user who own this authentication token.
182 ## Additionally @TOKEN syntaxt can be used to bound the view to specific
183 ## authentication token. Such view would be only accessible when used together
184 ## with this authentication token
182 ##
185 ##
183 ## list of all views can be found under `_admin/permissions/auth_token_access`
186 ## list of all views can be found under `_admin/permissions/auth_token_access`
184 ## The list should be "," separated and on a single line.
187 ## The list should be "," separated and on a single line.
185 ##
188 ##
186 ## Most common views to enable:
189 ## Most common views to enable:
187 # RepoCommitsView:repo_commit_download
190 # RepoCommitsView:repo_commit_download
188 # RepoCommitsView:repo_commit_patch
191 # RepoCommitsView:repo_commit_patch
189 # RepoCommitsView:repo_commit_raw
192 # RepoCommitsView:repo_commit_raw
193 # RepoCommitsView:repo_commit_raw@TOKEN
190 # RepoFilesView:repo_files_diff
194 # RepoFilesView:repo_files_diff
191 # RepoFilesView:repo_archivefile
195 # RepoFilesView:repo_archivefile
192 # RepoFilesView:repo_file_raw
196 # RepoFilesView:repo_file_raw
193 # GistView:*
197 # GistView:*
194 api_access_controllers_whitelist =
198 api_access_controllers_whitelist =
195
199
196 ## default encoding used to convert from and to unicode
200 ## default encoding used to convert from and to unicode
197 ## can be also a comma separated list of encoding in case of mixed encodings
201 ## can be also a comma separated list of encoding in case of mixed encodings
198 default_encoding = UTF-8
202 default_encoding = UTF-8
199
203
200 ## instance-id prefix
204 ## instance-id prefix
201 ## a prefix key for this instance used for cache invalidation when running
205 ## a prefix key for this instance used for cache invalidation when running
202 ## multiple instances of rhodecode, make sure it's globally unique for
206 ## multiple instances of rhodecode, make sure it's globally unique for
203 ## all running rhodecode instances. Leave empty if you don't use it
207 ## all running rhodecode instances. Leave empty if you don't use it
204 instance_id =
208 instance_id =
205
209
206 ## Fallback authentication plugin. Set this to a plugin ID to force the usage
210 ## Fallback authentication plugin. Set this to a plugin ID to force the usage
207 ## of an authentication plugin also if it is disabled by it's settings.
211 ## of an authentication plugin also if it is disabled by it's settings.
208 ## This could be useful if you are unable to log in to the system due to broken
212 ## This could be useful if you are unable to log in to the system due to broken
209 ## authentication settings. Then you can enable e.g. the internal rhodecode auth
213 ## authentication settings. Then you can enable e.g. the internal rhodecode auth
210 ## module to log in again and fix the settings.
214 ## module to log in again and fix the settings.
211 ##
215 ##
212 ## Available builtin plugin IDs (hash is part of the ID):
216 ## Available builtin plugin IDs (hash is part of the ID):
213 ## egg:rhodecode-enterprise-ce#rhodecode
217 ## egg:rhodecode-enterprise-ce#rhodecode
214 ## egg:rhodecode-enterprise-ce#pam
218 ## egg:rhodecode-enterprise-ce#pam
215 ## egg:rhodecode-enterprise-ce#ldap
219 ## egg:rhodecode-enterprise-ce#ldap
216 ## egg:rhodecode-enterprise-ce#jasig_cas
220 ## egg:rhodecode-enterprise-ce#jasig_cas
217 ## egg:rhodecode-enterprise-ce#headers
221 ## egg:rhodecode-enterprise-ce#headers
218 ## egg:rhodecode-enterprise-ce#crowd
222 ## egg:rhodecode-enterprise-ce#crowd
219 #rhodecode.auth_plugin_fallback = egg:rhodecode-enterprise-ce#rhodecode
223 #rhodecode.auth_plugin_fallback = egg:rhodecode-enterprise-ce#rhodecode
220
224
221 ## alternative return HTTP header for failed authentication. Default HTTP
225 ## alternative return HTTP header for failed authentication. Default HTTP
222 ## response is 401 HTTPUnauthorized. Currently HG clients have troubles with
226 ## response is 401 HTTPUnauthorized. Currently HG clients have troubles with
223 ## handling that causing a series of failed authentication calls.
227 ## handling that causing a series of failed authentication calls.
224 ## Set this variable to 403 to return HTTPForbidden, or any other HTTP code
228 ## Set this variable to 403 to return HTTPForbidden, or any other HTTP code
225 ## This will be served instead of default 401 on bad authnetication
229 ## This will be served instead of default 401 on bad authnetication
226 auth_ret_code =
230 auth_ret_code =
227
231
228 ## use special detection method when serving auth_ret_code, instead of serving
232 ## use special detection method when serving auth_ret_code, instead of serving
229 ## ret_code directly, use 401 initially (Which triggers credentials prompt)
233 ## ret_code directly, use 401 initially (Which triggers credentials prompt)
230 ## and then serve auth_ret_code to clients
234 ## and then serve auth_ret_code to clients
231 auth_ret_code_detection = false
235 auth_ret_code_detection = false
232
236
233 ## locking return code. When repository is locked return this HTTP code. 2XX
237 ## locking return code. When repository is locked return this HTTP code. 2XX
234 ## codes don't break the transactions while 4XX codes do
238 ## codes don't break the transactions while 4XX codes do
235 lock_ret_code = 423
239 lock_ret_code = 423
236
240
237 ## allows to change the repository location in settings page
241 ## allows to change the repository location in settings page
238 allow_repo_location_change = true
242 allow_repo_location_change = true
239
243
240 ## allows to setup custom hooks in settings page
244 ## allows to setup custom hooks in settings page
241 allow_custom_hooks_settings = true
245 allow_custom_hooks_settings = true
242
246
243 ## generated license token, goto license page in RhodeCode settings to obtain
247 ## generated license token, goto license page in RhodeCode settings to obtain
244 ## new token
248 ## new token
245 license_token =
249 license_token =
246
250
247 ## supervisor connection uri, for managing supervisor and logs.
251 ## supervisor connection uri, for managing supervisor and logs.
248 supervisor.uri =
252 supervisor.uri =
249 ## supervisord group name/id we only want this RC instance to handle
253 ## supervisord group name/id we only want this RC instance to handle
250 supervisor.group_id = prod
254 supervisor.group_id = prod
251
255
252 ## Display extended labs settings
256 ## Display extended labs settings
253 labs_settings_active = true
257 labs_settings_active = true
254
258
255 ####################################
259 ####################################
256 ### CELERY CONFIG ####
260 ### CELERY CONFIG ####
257 ####################################
261 ####################################
258 use_celery = false
262 use_celery = false
259 broker.host = localhost
263 broker.host = localhost
260 broker.vhost = rabbitmqhost
264 broker.vhost = rabbitmqhost
261 broker.port = 5672
265 broker.port = 5672
262 broker.user = rabbitmq
266 broker.user = rabbitmq
263 broker.password = qweqwe
267 broker.password = qweqwe
264
268
265 celery.imports = rhodecode.lib.celerylib.tasks
269 celery.imports = rhodecode.lib.celerylib.tasks
266
270
267 celery.result.backend = amqp
271 celery.result.backend = amqp
268 celery.result.dburi = amqp://
272 celery.result.dburi = amqp://
269 celery.result.serialier = json
273 celery.result.serialier = json
270
274
271 #celery.send.task.error.emails = true
275 #celery.send.task.error.emails = true
272 #celery.amqp.task.result.expires = 18000
276 #celery.amqp.task.result.expires = 18000
273
277
274 celeryd.concurrency = 2
278 celeryd.concurrency = 2
275 #celeryd.log.file = celeryd.log
279 #celeryd.log.file = celeryd.log
276 celeryd.log.level = debug
280 celeryd.log.level = debug
277 celeryd.max.tasks.per.child = 1
281 celeryd.max.tasks.per.child = 1
278
282
279 ## tasks will never be sent to the queue, but executed locally instead.
283 ## tasks will never be sent to the queue, but executed locally instead.
280 celery.always.eager = false
284 celery.always.eager = false
281
285
282 ####################################
286 ####################################
283 ### BEAKER CACHE ####
287 ### BEAKER CACHE ####
284 ####################################
288 ####################################
285 # default cache dir for templates. Putting this into a ramdisk
289 # default cache dir for templates. Putting this into a ramdisk
286 ## can boost performance, eg. %(here)s/data_ramdisk
290 ## can boost performance, eg. %(here)s/data_ramdisk
287 cache_dir = %(here)s/data
291 cache_dir = %(here)s/data
288
292
289 ## locking and default file storage for Beaker. Putting this into a ramdisk
293 ## locking and default file storage for Beaker. Putting this into a ramdisk
290 ## can boost performance, eg. %(here)s/data_ramdisk/cache/beaker_data
294 ## can boost performance, eg. %(here)s/data_ramdisk/cache/beaker_data
291 beaker.cache.data_dir = %(here)s/data/cache/beaker_data
295 beaker.cache.data_dir = %(here)s/data/cache/beaker_data
292 beaker.cache.lock_dir = %(here)s/data/cache/beaker_lock
296 beaker.cache.lock_dir = %(here)s/data/cache/beaker_lock
293
297
294 beaker.cache.regions = super_short_term, short_term, long_term, sql_cache_short, auth_plugins, repo_cache_long
298 beaker.cache.regions = super_short_term, short_term, long_term, sql_cache_short, auth_plugins, repo_cache_long
295
299
296 beaker.cache.super_short_term.type = memory
300 beaker.cache.super_short_term.type = memory
297 beaker.cache.super_short_term.expire = 10
301 beaker.cache.super_short_term.expire = 10
298 beaker.cache.super_short_term.key_length = 256
302 beaker.cache.super_short_term.key_length = 256
299
303
300 beaker.cache.short_term.type = memory
304 beaker.cache.short_term.type = memory
301 beaker.cache.short_term.expire = 60
305 beaker.cache.short_term.expire = 60
302 beaker.cache.short_term.key_length = 256
306 beaker.cache.short_term.key_length = 256
303
307
304 beaker.cache.long_term.type = memory
308 beaker.cache.long_term.type = memory
305 beaker.cache.long_term.expire = 36000
309 beaker.cache.long_term.expire = 36000
306 beaker.cache.long_term.key_length = 256
310 beaker.cache.long_term.key_length = 256
307
311
308 beaker.cache.sql_cache_short.type = memory
312 beaker.cache.sql_cache_short.type = memory
309 beaker.cache.sql_cache_short.expire = 10
313 beaker.cache.sql_cache_short.expire = 10
310 beaker.cache.sql_cache_short.key_length = 256
314 beaker.cache.sql_cache_short.key_length = 256
311
315
312 ## default is memory cache, configure only if required
316 ## default is memory cache, configure only if required
313 ## using multi-node or multi-worker setup
317 ## using multi-node or multi-worker setup
314 #beaker.cache.auth_plugins.type = ext:database
318 #beaker.cache.auth_plugins.type = ext:database
315 #beaker.cache.auth_plugins.lock_dir = %(here)s/data/cache/auth_plugin_lock
319 #beaker.cache.auth_plugins.lock_dir = %(here)s/data/cache/auth_plugin_lock
316 #beaker.cache.auth_plugins.url = postgresql://postgres:secret@localhost/rhodecode
320 #beaker.cache.auth_plugins.url = postgresql://postgres:secret@localhost/rhodecode
317 #beaker.cache.auth_plugins.url = mysql://root:secret@127.0.0.1/rhodecode
321 #beaker.cache.auth_plugins.url = mysql://root:secret@127.0.0.1/rhodecode
318 #beaker.cache.auth_plugins.sa.pool_recycle = 3600
322 #beaker.cache.auth_plugins.sa.pool_recycle = 3600
319 #beaker.cache.auth_plugins.sa.pool_size = 10
323 #beaker.cache.auth_plugins.sa.pool_size = 10
320 #beaker.cache.auth_plugins.sa.max_overflow = 0
324 #beaker.cache.auth_plugins.sa.max_overflow = 0
321
325
322 beaker.cache.repo_cache_long.type = memorylru_base
326 beaker.cache.repo_cache_long.type = memorylru_base
323 beaker.cache.repo_cache_long.max_items = 4096
327 beaker.cache.repo_cache_long.max_items = 4096
324 beaker.cache.repo_cache_long.expire = 2592000
328 beaker.cache.repo_cache_long.expire = 2592000
325
329
326 ## default is memorylru_base cache, configure only if required
330 ## default is memorylru_base cache, configure only if required
327 ## using multi-node or multi-worker setup
331 ## using multi-node or multi-worker setup
328 #beaker.cache.repo_cache_long.type = ext:memcached
332 #beaker.cache.repo_cache_long.type = ext:memcached
329 #beaker.cache.repo_cache_long.url = localhost:11211
333 #beaker.cache.repo_cache_long.url = localhost:11211
330 #beaker.cache.repo_cache_long.expire = 1209600
334 #beaker.cache.repo_cache_long.expire = 1209600
331 #beaker.cache.repo_cache_long.key_length = 256
335 #beaker.cache.repo_cache_long.key_length = 256
332
336
333 ####################################
337 ####################################
334 ### BEAKER SESSION ####
338 ### BEAKER SESSION ####
335 ####################################
339 ####################################
336
340
337 ## .session.type is type of storage options for the session, current allowed
341 ## .session.type is type of storage options for the session, current allowed
338 ## types are file, ext:memcached, ext:database, and memory (default).
342 ## types are file, ext:memcached, ext:database, and memory (default).
339 beaker.session.type = file
343 beaker.session.type = file
340 beaker.session.data_dir = %(here)s/data/sessions/data
344 beaker.session.data_dir = %(here)s/data/sessions/data
341
345
342 ## db based session, fast, and allows easy management over logged in users
346 ## db based session, fast, and allows easy management over logged in users
343 #beaker.session.type = ext:database
347 #beaker.session.type = ext:database
344 #beaker.session.table_name = db_session
348 #beaker.session.table_name = db_session
345 #beaker.session.sa.url = postgresql://postgres:secret@localhost/rhodecode
349 #beaker.session.sa.url = postgresql://postgres:secret@localhost/rhodecode
346 #beaker.session.sa.url = mysql://root:secret@127.0.0.1/rhodecode
350 #beaker.session.sa.url = mysql://root:secret@127.0.0.1/rhodecode
347 #beaker.session.sa.pool_recycle = 3600
351 #beaker.session.sa.pool_recycle = 3600
348 #beaker.session.sa.echo = false
352 #beaker.session.sa.echo = false
349
353
350 beaker.session.key = rhodecode
354 beaker.session.key = rhodecode
351 beaker.session.secret = production-rc-uytcxaz
355 beaker.session.secret = production-rc-uytcxaz
352 beaker.session.lock_dir = %(here)s/data/sessions/lock
356 beaker.session.lock_dir = %(here)s/data/sessions/lock
353
357
354 ## Secure encrypted cookie. Requires AES and AES python libraries
358 ## Secure encrypted cookie. Requires AES and AES python libraries
355 ## you must disable beaker.session.secret to use this
359 ## you must disable beaker.session.secret to use this
356 #beaker.session.encrypt_key = key_for_encryption
360 #beaker.session.encrypt_key = key_for_encryption
357 #beaker.session.validate_key = validation_key
361 #beaker.session.validate_key = validation_key
358
362
359 ## sets session as invalid(also logging out user) if it haven not been
363 ## sets session as invalid(also logging out user) if it haven not been
360 ## accessed for given amount of time in seconds
364 ## accessed for given amount of time in seconds
361 beaker.session.timeout = 2592000
365 beaker.session.timeout = 2592000
362 beaker.session.httponly = true
366 beaker.session.httponly = true
363 ## Path to use for the cookie. Set to prefix if you use prefix middleware
367 ## Path to use for the cookie. Set to prefix if you use prefix middleware
364 #beaker.session.cookie_path = /custom_prefix
368 #beaker.session.cookie_path = /custom_prefix
365
369
366 ## uncomment for https secure cookie
370 ## uncomment for https secure cookie
367 beaker.session.secure = false
371 beaker.session.secure = false
368
372
369 ## auto save the session to not to use .save()
373 ## auto save the session to not to use .save()
370 beaker.session.auto = false
374 beaker.session.auto = false
371
375
372 ## default cookie expiration time in seconds, set to `true` to set expire
376 ## default cookie expiration time in seconds, set to `true` to set expire
373 ## at browser close
377 ## at browser close
374 #beaker.session.cookie_expires = 3600
378 #beaker.session.cookie_expires = 3600
375
379
376 ###################################
380 ###################################
377 ## SEARCH INDEXING CONFIGURATION ##
381 ## SEARCH INDEXING CONFIGURATION ##
378 ###################################
382 ###################################
379 ## Full text search indexer is available in rhodecode-tools under
383 ## Full text search indexer is available in rhodecode-tools under
380 ## `rhodecode-tools index` command
384 ## `rhodecode-tools index` command
381
385
382 ## WHOOSH Backend, doesn't require additional services to run
386 ## WHOOSH Backend, doesn't require additional services to run
383 ## it works good with few dozen repos
387 ## it works good with few dozen repos
384 search.module = rhodecode.lib.index.whoosh
388 search.module = rhodecode.lib.index.whoosh
385 search.location = %(here)s/data/index
389 search.location = %(here)s/data/index
386
390
387 ########################################
391 ########################################
388 ### CHANNELSTREAM CONFIG ####
392 ### CHANNELSTREAM CONFIG ####
389 ########################################
393 ########################################
390 ## channelstream enables persistent connections and live notification
394 ## channelstream enables persistent connections and live notification
391 ## in the system. It's also used by the chat system
395 ## in the system. It's also used by the chat system
392 channelstream.enabled = false
396 channelstream.enabled = false
393
397
394 ## server address for channelstream server on the backend
398 ## server address for channelstream server on the backend
395 channelstream.server = 127.0.0.1:9800
399 channelstream.server = 127.0.0.1:9800
396
400
397 ## location of the channelstream server from outside world
401 ## location of the channelstream server from outside world
398 ## use ws:// for http or wss:// for https. This address needs to be handled
402 ## use ws:// for http or wss:// for https. This address needs to be handled
399 ## by external HTTP server such as Nginx or Apache
403 ## by external HTTP server such as Nginx or Apache
400 ## see nginx/apache configuration examples in our docs
404 ## see nginx/apache configuration examples in our docs
401 channelstream.ws_url = ws://rhodecode.yourserver.com/_channelstream
405 channelstream.ws_url = ws://rhodecode.yourserver.com/_channelstream
402 channelstream.secret = secret
406 channelstream.secret = secret
403 channelstream.history.location = %(here)s/channelstream_history
407 channelstream.history.location = %(here)s/channelstream_history
404
408
405 ## Internal application path that Javascript uses to connect into.
409 ## Internal application path that Javascript uses to connect into.
406 ## If you use proxy-prefix the prefix should be added before /_channelstream
410 ## If you use proxy-prefix the prefix should be added before /_channelstream
407 channelstream.proxy_path = /_channelstream
411 channelstream.proxy_path = /_channelstream
408
412
409
413
410 ###################################
414 ###################################
411 ## APPENLIGHT CONFIG ##
415 ## APPENLIGHT CONFIG ##
412 ###################################
416 ###################################
413
417
414 ## Appenlight is tailored to work with RhodeCode, see
418 ## Appenlight is tailored to work with RhodeCode, see
415 ## http://appenlight.com for details how to obtain an account
419 ## http://appenlight.com for details how to obtain an account
416
420
417 ## appenlight integration enabled
421 ## appenlight integration enabled
418 appenlight = false
422 appenlight = false
419
423
420 appenlight.server_url = https://api.appenlight.com
424 appenlight.server_url = https://api.appenlight.com
421 appenlight.api_key = YOUR_API_KEY
425 appenlight.api_key = YOUR_API_KEY
422 #appenlight.transport_config = https://api.appenlight.com?threaded=1&timeout=5
426 #appenlight.transport_config = https://api.appenlight.com?threaded=1&timeout=5
423
427
424 # used for JS client
428 # used for JS client
425 appenlight.api_public_key = YOUR_API_PUBLIC_KEY
429 appenlight.api_public_key = YOUR_API_PUBLIC_KEY
426
430
427 ## TWEAK AMOUNT OF INFO SENT HERE
431 ## TWEAK AMOUNT OF INFO SENT HERE
428
432
429 ## enables 404 error logging (default False)
433 ## enables 404 error logging (default False)
430 appenlight.report_404 = false
434 appenlight.report_404 = false
431
435
432 ## time in seconds after request is considered being slow (default 1)
436 ## time in seconds after request is considered being slow (default 1)
433 appenlight.slow_request_time = 1
437 appenlight.slow_request_time = 1
434
438
435 ## record slow requests in application
439 ## record slow requests in application
436 ## (needs to be enabled for slow datastore recording and time tracking)
440 ## (needs to be enabled for slow datastore recording and time tracking)
437 appenlight.slow_requests = true
441 appenlight.slow_requests = true
438
442
439 ## enable hooking to application loggers
443 ## enable hooking to application loggers
440 appenlight.logging = true
444 appenlight.logging = true
441
445
442 ## minimum log level for log capture
446 ## minimum log level for log capture
443 appenlight.logging.level = WARNING
447 appenlight.logging.level = WARNING
444
448
445 ## send logs only from erroneous/slow requests
449 ## send logs only from erroneous/slow requests
446 ## (saves API quota for intensive logging)
450 ## (saves API quota for intensive logging)
447 appenlight.logging_on_error = false
451 appenlight.logging_on_error = false
448
452
449 ## list of additonal keywords that should be grabbed from environ object
453 ## list of additonal keywords that should be grabbed from environ object
450 ## can be string with comma separated list of words in lowercase
454 ## can be string with comma separated list of words in lowercase
451 ## (by default client will always send following info:
455 ## (by default client will always send following info:
452 ## 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that
456 ## 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that
453 ## start with HTTP* this list be extended with additional keywords here
457 ## start with HTTP* this list be extended with additional keywords here
454 appenlight.environ_keys_whitelist =
458 appenlight.environ_keys_whitelist =
455
459
456 ## list of keywords that should be blanked from request object
460 ## list of keywords that should be blanked from request object
457 ## can be string with comma separated list of words in lowercase
461 ## can be string with comma separated list of words in lowercase
458 ## (by default client will always blank keys that contain following words
462 ## (by default client will always blank keys that contain following words
459 ## 'password', 'passwd', 'pwd', 'auth_tkt', 'secret', 'csrf'
463 ## 'password', 'passwd', 'pwd', 'auth_tkt', 'secret', 'csrf'
460 ## this list be extended with additional keywords set here
464 ## this list be extended with additional keywords set here
461 appenlight.request_keys_blacklist =
465 appenlight.request_keys_blacklist =
462
466
463 ## list of namespaces that should be ignores when gathering log entries
467 ## list of namespaces that should be ignores when gathering log entries
464 ## can be string with comma separated list of namespaces
468 ## can be string with comma separated list of namespaces
465 ## (by default the client ignores own entries: appenlight_client.client)
469 ## (by default the client ignores own entries: appenlight_client.client)
466 appenlight.log_namespace_blacklist =
470 appenlight.log_namespace_blacklist =
467
471
468
472
469 ################################################################################
473 ################################################################################
470 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
474 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
471 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
475 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
472 ## execute malicious code after an exception is raised. ##
476 ## execute malicious code after an exception is raised. ##
473 ################################################################################
477 ################################################################################
474 set debug = false
478 set debug = false
475
479
476
480
477 ###########################################
481 ###########################################
478 ### MAIN RHODECODE DATABASE CONFIG ###
482 ### MAIN RHODECODE DATABASE CONFIG ###
479 ###########################################
483 ###########################################
480 #sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db?timeout=30
484 #sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db?timeout=30
481 #sqlalchemy.db1.url = postgresql://postgres:qweqwe@localhost/rhodecode
485 #sqlalchemy.db1.url = postgresql://postgres:qweqwe@localhost/rhodecode
482 #sqlalchemy.db1.url = mysql://root:qweqwe@localhost/rhodecode
486 #sqlalchemy.db1.url = mysql://root:qweqwe@localhost/rhodecode
483 sqlalchemy.db1.url = postgresql://postgres:qweqwe@localhost/rhodecode
487 sqlalchemy.db1.url = postgresql://postgres:qweqwe@localhost/rhodecode
484
488
485 # see sqlalchemy docs for other advanced settings
489 # see sqlalchemy docs for other advanced settings
486
490
487 ## print the sql statements to output
491 ## print the sql statements to output
488 sqlalchemy.db1.echo = false
492 sqlalchemy.db1.echo = false
489 ## recycle the connections after this amount of seconds
493 ## recycle the connections after this amount of seconds
490 sqlalchemy.db1.pool_recycle = 3600
494 sqlalchemy.db1.pool_recycle = 3600
491 sqlalchemy.db1.convert_unicode = true
495 sqlalchemy.db1.convert_unicode = true
492
496
493 ## the number of connections to keep open inside the connection pool.
497 ## the number of connections to keep open inside the connection pool.
494 ## 0 indicates no limit
498 ## 0 indicates no limit
495 #sqlalchemy.db1.pool_size = 5
499 #sqlalchemy.db1.pool_size = 5
496
500
497 ## the number of connections to allow in connection pool "overflow", that is
501 ## the number of connections to allow in connection pool "overflow", that is
498 ## connections that can be opened above and beyond the pool_size setting,
502 ## connections that can be opened above and beyond the pool_size setting,
499 ## which defaults to five.
503 ## which defaults to five.
500 #sqlalchemy.db1.max_overflow = 10
504 #sqlalchemy.db1.max_overflow = 10
501
505
502
506
503 ##################
507 ##################
504 ### VCS CONFIG ###
508 ### VCS CONFIG ###
505 ##################
509 ##################
506 vcs.server.enable = true
510 vcs.server.enable = true
507 vcs.server = localhost:9900
511 vcs.server = localhost:9900
508
512
509 ## Web server connectivity protocol, responsible for web based VCS operatations
513 ## Web server connectivity protocol, responsible for web based VCS operatations
510 ## Available protocols are:
514 ## Available protocols are:
511 ## `http` - use http-rpc backend (default)
515 ## `http` - use http-rpc backend (default)
512 vcs.server.protocol = http
516 vcs.server.protocol = http
513
517
514 ## Push/Pull operations protocol, available options are:
518 ## Push/Pull operations protocol, available options are:
515 ## `http` - use http-rpc backend (default)
519 ## `http` - use http-rpc backend (default)
516 ##
520 ##
517 vcs.scm_app_implementation = http
521 vcs.scm_app_implementation = http
518
522
519 ## Push/Pull operations hooks protocol, available options are:
523 ## Push/Pull operations hooks protocol, available options are:
520 ## `http` - use http-rpc backend (default)
524 ## `http` - use http-rpc backend (default)
521 vcs.hooks.protocol = http
525 vcs.hooks.protocol = http
522
526
523 vcs.server.log_level = info
527 vcs.server.log_level = info
524 ## Start VCSServer with this instance as a subprocess, usefull for development
528 ## Start VCSServer with this instance as a subprocess, usefull for development
525 vcs.start_server = false
529 vcs.start_server = false
526
530
527 ## List of enabled VCS backends, available options are:
531 ## List of enabled VCS backends, available options are:
528 ## `hg` - mercurial
532 ## `hg` - mercurial
529 ## `git` - git
533 ## `git` - git
530 ## `svn` - subversion
534 ## `svn` - subversion
531 vcs.backends = hg, git, svn
535 vcs.backends = hg, git, svn
532
536
533 vcs.connection_timeout = 3600
537 vcs.connection_timeout = 3600
534 ## Compatibility version when creating SVN repositories. Defaults to newest version when commented out.
538 ## Compatibility version when creating SVN repositories. Defaults to newest version when commented out.
535 ## Available options are: pre-1.4-compatible, pre-1.5-compatible, pre-1.6-compatible, pre-1.8-compatible
539 ## Available options are: pre-1.4-compatible, pre-1.5-compatible, pre-1.6-compatible, pre-1.8-compatible
536 #vcs.svn.compatible_version = pre-1.8-compatible
540 #vcs.svn.compatible_version = pre-1.8-compatible
537
541
538
542
539 ############################################################
543 ############################################################
540 ### Subversion proxy support (mod_dav_svn) ###
544 ### Subversion proxy support (mod_dav_svn) ###
541 ### Maps RhodeCode repo groups into SVN paths for Apache ###
545 ### Maps RhodeCode repo groups into SVN paths for Apache ###
542 ############################################################
546 ############################################################
543 ## Enable or disable the config file generation.
547 ## Enable or disable the config file generation.
544 svn.proxy.generate_config = false
548 svn.proxy.generate_config = false
545 ## Generate config file with `SVNListParentPath` set to `On`.
549 ## Generate config file with `SVNListParentPath` set to `On`.
546 svn.proxy.list_parent_path = true
550 svn.proxy.list_parent_path = true
547 ## Set location and file name of generated config file.
551 ## Set location and file name of generated config file.
548 svn.proxy.config_file_path = %(here)s/mod_dav_svn.conf
552 svn.proxy.config_file_path = %(here)s/mod_dav_svn.conf
549 ## Used as a prefix to the `Location` block in the generated config file.
553 ## Used as a prefix to the `Location` block in the generated config file.
550 ## In most cases it should be set to `/`.
554 ## In most cases it should be set to `/`.
551 svn.proxy.location_root = /
555 svn.proxy.location_root = /
552 ## Command to reload the mod dav svn configuration on change.
556 ## Command to reload the mod dav svn configuration on change.
553 ## Example: `/etc/init.d/apache2 reload`
557 ## Example: `/etc/init.d/apache2 reload`
554 #svn.proxy.reload_cmd = /etc/init.d/apache2 reload
558 #svn.proxy.reload_cmd = /etc/init.d/apache2 reload
555 ## If the timeout expires before the reload command finishes, the command will
559 ## If the timeout expires before the reload command finishes, the command will
556 ## be killed. Setting it to zero means no timeout. Defaults to 10 seconds.
560 ## be killed. Setting it to zero means no timeout. Defaults to 10 seconds.
557 #svn.proxy.reload_timeout = 10
561 #svn.proxy.reload_timeout = 10
558
562
559 ############################################################
563 ############################################################
560 ### SSH Support Settings ###
564 ### SSH Support Settings ###
561 ############################################################
565 ############################################################
562
566
563 ## Defines if the authorized_keys file should be written on any change of
567 ## Defines if the authorized_keys file should be written on any change of
564 ## user ssh keys
568 ## user ssh keys
565 ssh.generate_authorized_keyfile = false
569 ssh.generate_authorized_keyfile = false
566
570
567 ## Options for ssh, default is `no-pty,no-port-forwarding,no-X11-forwarding,no-agent-forwarding`
571 ## Options for ssh, default is `no-pty,no-port-forwarding,no-X11-forwarding,no-agent-forwarding`
568 # ssh.authorized_keys_ssh_opts =
572 # ssh.authorized_keys_ssh_opts =
569
573
570 ## File to generate the authorized keys together with options
574 ## File to generate the authorized keys together with options
571 ssh.authorized_keys_file_path = /home/USER/.ssh/authorized_keys
575 ssh.authorized_keys_file_path = /home/USER/.ssh/authorized_keys
572
576
573 ## Command to execute as an SSH wrapper, available from
577 ## Command to execute as an SSH wrapper, available from
574 ## https://code.rhodecode.com/rhodecode-ssh
578 ## https://code.rhodecode.com/rhodecode-ssh
575 ssh.wrapper_cmd = /home/USER/rhodecode-ssh/sshwrapper.py
579 ssh.wrapper_cmd = /home/USER/rhodecode-ssh/sshwrapper.py
576
580
577 ## Allow shell when executing the command
581 ## Allow shell when executing the command
578 ssh.wrapper_cmd_allow_shell = false
582 ssh.wrapper_cmd_allow_shell = false
579
583
580 ## Dummy marker to add new entries after.
584 ## Dummy marker to add new entries after.
581 ## Add any custom entries below. Please don't remove.
585 ## Add any custom entries below. Please don't remove.
582 custom.conf = 1
586 custom.conf = 1
583
587
584
588
585 ################################
589 ################################
586 ### LOGGING CONFIGURATION ####
590 ### LOGGING CONFIGURATION ####
587 ################################
591 ################################
588 [loggers]
592 [loggers]
589 keys = root, routes, rhodecode, sqlalchemy, beaker, templates
593 keys = root, routes, rhodecode, sqlalchemy, beaker, templates
590
594
591 [handlers]
595 [handlers]
592 keys = console, console_sql
596 keys = console, console_sql
593
597
594 [formatters]
598 [formatters]
595 keys = generic, color_formatter, color_formatter_sql
599 keys = generic, color_formatter, color_formatter_sql
596
600
597 #############
601 #############
598 ## LOGGERS ##
602 ## LOGGERS ##
599 #############
603 #############
600 [logger_root]
604 [logger_root]
601 level = NOTSET
605 level = NOTSET
602 handlers = console
606 handlers = console
603
607
604 [logger_routes]
608 [logger_routes]
605 level = DEBUG
609 level = DEBUG
606 handlers =
610 handlers =
607 qualname = routes.middleware
611 qualname = routes.middleware
608 ## "level = DEBUG" logs the route matched and routing variables.
612 ## "level = DEBUG" logs the route matched and routing variables.
609 propagate = 1
613 propagate = 1
610
614
611 [logger_beaker]
615 [logger_beaker]
612 level = DEBUG
616 level = DEBUG
613 handlers =
617 handlers =
614 qualname = beaker.container
618 qualname = beaker.container
615 propagate = 1
619 propagate = 1
616
620
617 [logger_templates]
621 [logger_templates]
618 level = INFO
622 level = INFO
619 handlers =
623 handlers =
620 qualname = pylons.templating
624 qualname = pylons.templating
621 propagate = 1
625 propagate = 1
622
626
623 [logger_rhodecode]
627 [logger_rhodecode]
624 level = DEBUG
628 level = DEBUG
625 handlers =
629 handlers =
626 qualname = rhodecode
630 qualname = rhodecode
627 propagate = 1
631 propagate = 1
628
632
629 [logger_sqlalchemy]
633 [logger_sqlalchemy]
630 level = INFO
634 level = INFO
631 handlers = console_sql
635 handlers = console_sql
632 qualname = sqlalchemy.engine
636 qualname = sqlalchemy.engine
633 propagate = 0
637 propagate = 0
634
638
635 ##############
639 ##############
636 ## HANDLERS ##
640 ## HANDLERS ##
637 ##############
641 ##############
638
642
639 [handler_console]
643 [handler_console]
640 class = StreamHandler
644 class = StreamHandler
641 args = (sys.stderr, )
645 args = (sys.stderr, )
642 level = INFO
646 level = INFO
643 formatter = generic
647 formatter = generic
644
648
645 [handler_console_sql]
649 [handler_console_sql]
646 class = StreamHandler
650 class = StreamHandler
647 args = (sys.stderr, )
651 args = (sys.stderr, )
648 level = WARN
652 level = WARN
649 formatter = generic
653 formatter = generic
650
654
651 ################
655 ################
652 ## FORMATTERS ##
656 ## FORMATTERS ##
653 ################
657 ################
654
658
655 [formatter_generic]
659 [formatter_generic]
656 class = rhodecode.lib.logging_formatter.ExceptionAwareFormatter
660 class = rhodecode.lib.logging_formatter.ExceptionAwareFormatter
657 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
661 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
658 datefmt = %Y-%m-%d %H:%M:%S
662 datefmt = %Y-%m-%d %H:%M:%S
659
663
660 [formatter_color_formatter]
664 [formatter_color_formatter]
661 class = rhodecode.lib.logging_formatter.ColorFormatter
665 class = rhodecode.lib.logging_formatter.ColorFormatter
662 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
666 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
663 datefmt = %Y-%m-%d %H:%M:%S
667 datefmt = %Y-%m-%d %H:%M:%S
664
668
665 [formatter_color_formatter_sql]
669 [formatter_color_formatter_sql]
666 class = rhodecode.lib.logging_formatter.ColorFormatterSql
670 class = rhodecode.lib.logging_formatter.ColorFormatterSql
667 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
671 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
668 datefmt = %Y-%m-%d %H:%M:%S
672 datefmt = %Y-%m-%d %H:%M:%S
General Comments 0
You need to be logged in to leave comments. Login now