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