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