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