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