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