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