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