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