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