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