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