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