##// END OF EJS Templates
config: update .ini file to latest installer defaults.
marcink -
r2506:41a55b98 default
parent child Browse files
Show More
@@ -1,717 +1,722 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 recommended to be at 1
76 ## generally recommended 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 = gevent
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.lib.middleware.request_wrapper
114 rhodecode.lib.middleware.request_wrapper
115
115
116 pyramid.reload_templates = true
116 pyramid.reload_templates = true
117
117
118 debugtoolbar.hosts = 0.0.0.0/0
118 debugtoolbar.hosts = 0.0.0.0/0
119 debugtoolbar.exclude_prefixes =
119 debugtoolbar.exclude_prefixes =
120 /css
120 /css
121 /fonts
121 /fonts
122 /images
122 /images
123 /js
123 /js
124
124
125 ## RHODECODE PLUGINS ##
125 ## RHODECODE PLUGINS ##
126 rhodecode.includes =
126 rhodecode.includes =
127 rhodecode.api
127 rhodecode.api
128
128
129
129
130 # api prefix url
130 # api prefix url
131 rhodecode.api.url = /_admin/api
131 rhodecode.api.url = /_admin/api
132
132
133
133
134 ## END RHODECODE PLUGINS ##
134 ## END RHODECODE PLUGINS ##
135
135
136 ## encryption key used to encrypt social plugin tokens,
136 ## encryption key used to encrypt social plugin tokens,
137 ## remote_urls with credentials etc, if not set it defaults to
137 ## remote_urls with credentials etc, if not set it defaults to
138 ## `beaker.session.secret`
138 ## `beaker.session.secret`
139 #rhodecode.encrypted_values.secret =
139 #rhodecode.encrypted_values.secret =
140
140
141 ## decryption strict mode (enabled by default). It controls if decryption raises
141 ## decryption strict mode (enabled by default). It controls if decryption raises
142 ## `SignatureVerificationError` in case of wrong key, or damaged encryption data.
142 ## `SignatureVerificationError` in case of wrong key, or damaged encryption data.
143 #rhodecode.encrypted_values.strict = false
143 #rhodecode.encrypted_values.strict = false
144
144
145 ## return gzipped responses from Rhodecode (static files/application)
145 ## return gzipped responses from Rhodecode (static files/application)
146 gzip_responses = false
146 gzip_responses = false
147
147
148 ## autogenerate javascript routes file on startup
148 ## autogenerate javascript routes file on startup
149 generate_js_files = false
149 generate_js_files = false
150
150
151 ## Optional Languages
151 ## Optional Languages
152 ## en(default), be, de, es, fr, it, ja, pl, pt, ru, zh
152 ## en(default), be, de, es, fr, it, ja, pl, pt, ru, zh
153 lang = en
153 lang = en
154
154
155 ## perform a full repository scan on each server start, this should be
155 ## perform a full repository scan on each server start, this should be
156 ## set to false after first startup, to allow faster server restarts.
156 ## set to false after first startup, to allow faster server restarts.
157 startup.import_repos = false
157 startup.import_repos = false
158
158
159 ## Uncomment and set this path to use archive download cache.
159 ## Uncomment and set this path to use archive download cache.
160 ## Once enabled, generated archives will be cached at this location
160 ## Once enabled, generated archives will be cached at this location
161 ## and served from the cache during subsequent requests for the same archive of
161 ## and served from the cache during subsequent requests for the same archive of
162 ## the repository.
162 ## the repository.
163 #archive_cache_dir = /tmp/tarballcache
163 #archive_cache_dir = /tmp/tarballcache
164
164
165 ## URL at which the application is running. This is used for bootstraping
165 ## URL at which the application is running. This is used for bootstraping
166 ## requests in context when no web request is available. Used in ishell, or
166 ## requests in context when no web request is available. Used in ishell, or
167 ## SSH calls. Set this for events to receive proper url for SSH calls.
167 ## SSH calls. Set this for events to receive proper url for SSH calls.
168 app.base_url = http://rhodecode.local
168 app.base_url = http://rhodecode.local
169
169
170 ## change this to unique ID for security
170 ## change this to unique ID for security
171 app_instance_uuid = rc-production
171 app_instance_uuid = rc-production
172
172
173 ## cut off limit for large diffs (size in bytes). If overall diff size on
173 ## cut off limit for large diffs (size in bytes). If overall diff size on
174 ## commit, or pull request exceeds this limit this diff will be displayed
174 ## commit, or pull request exceeds this limit this diff will be displayed
175 ## partially. E.g 512000 == 512Kb
175 ## partially. E.g 512000 == 512Kb
176 cut_off_limit_diff = 512000
176 cut_off_limit_diff = 512000
177
177
178 ## cut off limit for large files inside diffs (size in bytes). Each individual
178 ## cut off limit for large files inside diffs (size in bytes). Each individual
179 ## file inside diff which exceeds this limit will be displayed partially.
179 ## file inside diff which exceeds this limit will be displayed partially.
180 ## E.g 128000 == 128Kb
180 ## E.g 128000 == 128Kb
181 cut_off_limit_file = 128000
181 cut_off_limit_file = 128000
182
182
183 ## use cache version of scm repo everywhere
183 ## use cache version of scm repo everywhere
184 vcs_full_cache = true
184 vcs_full_cache = true
185
185
186 ## force https in RhodeCode, fixes https redirects, assumes it's always https
186 ## force https in RhodeCode, fixes https redirects, assumes it's always https
187 ## Normally this is controlled by proper http flags sent from http server
187 ## Normally this is controlled by proper http flags sent from http server
188 force_https = false
188 force_https = false
189
189
190 ## use Strict-Transport-Security headers
190 ## use Strict-Transport-Security headers
191 use_htsts = false
191 use_htsts = false
192
192
193 ## number of commits stats will parse on each iteration
193 ## number of commits stats will parse on each iteration
194 commit_parse_limit = 25
194 commit_parse_limit = 25
195
195
196 ## git rev filter option, --all is the default filter, if you need to
196 ## git rev filter option, --all is the default filter, if you need to
197 ## hide all refs in changelog switch this to --branches --tags
197 ## hide all refs in changelog switch this to --branches --tags
198 git_rev_filter = --branches --tags
198 git_rev_filter = --branches --tags
199
199
200 # Set to true if your repos are exposed using the dumb protocol
200 # Set to true if your repos are exposed using the dumb protocol
201 git_update_server_info = false
201 git_update_server_info = false
202
202
203 ## RSS/ATOM feed options
203 ## RSS/ATOM feed options
204 rss_cut_off_limit = 256000
204 rss_cut_off_limit = 256000
205 rss_items_per_page = 10
205 rss_items_per_page = 10
206 rss_include_diff = false
206 rss_include_diff = false
207
207
208 ## gist URL alias, used to create nicer urls for gist. This should be an
208 ## gist URL alias, used to create nicer urls for gist. This should be an
209 ## url that does rewrites to _admin/gists/{gistid}.
209 ## url that does rewrites to _admin/gists/{gistid}.
210 ## example: http://gist.rhodecode.org/{gistid}. Empty means use the internal
210 ## example: http://gist.rhodecode.org/{gistid}. Empty means use the internal
211 ## RhodeCode url, ie. http[s]://rhodecode.server/_admin/gists/{gistid}
211 ## RhodeCode url, ie. http[s]://rhodecode.server/_admin/gists/{gistid}
212 gist_alias_url =
212 gist_alias_url =
213
213
214 ## List of views (using glob pattern syntax) that AUTH TOKENS could be
214 ## List of views (using glob pattern syntax) that AUTH TOKENS could be
215 ## used for access.
215 ## used for access.
216 ## Adding ?auth_token=TOKEN_HASH to the url authenticates this request as if it
216 ## Adding ?auth_token=TOKEN_HASH to the url authenticates this request as if it
217 ## came from the the logged in user who own this authentication token.
217 ## came from the the logged in user who own this authentication token.
218 ## Additionally @TOKEN syntaxt can be used to bound the view to specific
218 ## Additionally @TOKEN syntaxt can be used to bound the view to specific
219 ## authentication token. Such view would be only accessible when used together
219 ## authentication token. Such view would be only accessible when used together
220 ## with this authentication token
220 ## with this authentication token
221 ##
221 ##
222 ## list of all views can be found under `/_admin/permissions/auth_token_access`
222 ## list of all views can be found under `/_admin/permissions/auth_token_access`
223 ## The list should be "," separated and on a single line.
223 ## The list should be "," separated and on a single line.
224 ##
224 ##
225 ## Most common views to enable:
225 ## Most common views to enable:
226 # RepoCommitsView:repo_commit_download
226 # RepoCommitsView:repo_commit_download
227 # RepoCommitsView:repo_commit_patch
227 # RepoCommitsView:repo_commit_patch
228 # RepoCommitsView:repo_commit_raw
228 # RepoCommitsView:repo_commit_raw
229 # RepoCommitsView:repo_commit_raw@TOKEN
229 # RepoCommitsView:repo_commit_raw@TOKEN
230 # RepoFilesView:repo_files_diff
230 # RepoFilesView:repo_files_diff
231 # RepoFilesView:repo_archivefile
231 # RepoFilesView:repo_archivefile
232 # RepoFilesView:repo_file_raw
232 # RepoFilesView:repo_file_raw
233 # GistView:*
233 # GistView:*
234 api_access_controllers_whitelist =
234 api_access_controllers_whitelist =
235
235
236 ## default encoding used to convert from and to unicode
236 ## default encoding used to convert from and to unicode
237 ## can be also a comma separated list of encoding in case of mixed encodings
237 ## can be also a comma separated list of encoding in case of mixed encodings
238 default_encoding = UTF-8
238 default_encoding = UTF-8
239
239
240 ## instance-id prefix
240 ## instance-id prefix
241 ## a prefix key for this instance used for cache invalidation when running
241 ## a prefix key for this instance used for cache invalidation when running
242 ## multiple instances of rhodecode, make sure it's globally unique for
242 ## multiple instances of rhodecode, make sure it's globally unique for
243 ## all running rhodecode instances. Leave empty if you don't use it
243 ## all running rhodecode instances. Leave empty if you don't use it
244 instance_id =
244 instance_id =
245
245
246 ## Fallback authentication plugin. Set this to a plugin ID to force the usage
246 ## Fallback authentication plugin. Set this to a plugin ID to force the usage
247 ## of an authentication plugin also if it is disabled by it's settings.
247 ## of an authentication plugin also if it is disabled by it's settings.
248 ## This could be useful if you are unable to log in to the system due to broken
248 ## This could be useful if you are unable to log in to the system due to broken
249 ## authentication settings. Then you can enable e.g. the internal rhodecode auth
249 ## authentication settings. Then you can enable e.g. the internal rhodecode auth
250 ## module to log in again and fix the settings.
250 ## module to log in again and fix the settings.
251 ##
251 ##
252 ## Available builtin plugin IDs (hash is part of the ID):
252 ## Available builtin plugin IDs (hash is part of the ID):
253 ## egg:rhodecode-enterprise-ce#rhodecode
253 ## egg:rhodecode-enterprise-ce#rhodecode
254 ## egg:rhodecode-enterprise-ce#pam
254 ## egg:rhodecode-enterprise-ce#pam
255 ## egg:rhodecode-enterprise-ce#ldap
255 ## egg:rhodecode-enterprise-ce#ldap
256 ## egg:rhodecode-enterprise-ce#jasig_cas
256 ## egg:rhodecode-enterprise-ce#jasig_cas
257 ## egg:rhodecode-enterprise-ce#headers
257 ## egg:rhodecode-enterprise-ce#headers
258 ## egg:rhodecode-enterprise-ce#crowd
258 ## egg:rhodecode-enterprise-ce#crowd
259 #rhodecode.auth_plugin_fallback = egg:rhodecode-enterprise-ce#rhodecode
259 #rhodecode.auth_plugin_fallback = egg:rhodecode-enterprise-ce#rhodecode
260
260
261 ## alternative return HTTP header for failed authentication. Default HTTP
261 ## alternative return HTTP header for failed authentication. Default HTTP
262 ## response is 401 HTTPUnauthorized. Currently HG clients have troubles with
262 ## response is 401 HTTPUnauthorized. Currently HG clients have troubles with
263 ## handling that causing a series of failed authentication calls.
263 ## handling that causing a series of failed authentication calls.
264 ## Set this variable to 403 to return HTTPForbidden, or any other HTTP code
264 ## Set this variable to 403 to return HTTPForbidden, or any other HTTP code
265 ## This will be served instead of default 401 on bad authnetication
265 ## This will be served instead of default 401 on bad authnetication
266 auth_ret_code =
266 auth_ret_code =
267
267
268 ## use special detection method when serving auth_ret_code, instead of serving
268 ## use special detection method when serving auth_ret_code, instead of serving
269 ## ret_code directly, use 401 initially (Which triggers credentials prompt)
269 ## ret_code directly, use 401 initially (Which triggers credentials prompt)
270 ## and then serve auth_ret_code to clients
270 ## and then serve auth_ret_code to clients
271 auth_ret_code_detection = false
271 auth_ret_code_detection = false
272
272
273 ## locking return code. When repository is locked return this HTTP code. 2XX
273 ## locking return code. When repository is locked return this HTTP code. 2XX
274 ## codes don't break the transactions while 4XX codes do
274 ## codes don't break the transactions while 4XX codes do
275 lock_ret_code = 423
275 lock_ret_code = 423
276
276
277 ## allows to change the repository location in settings page
277 ## allows to change the repository location in settings page
278 allow_repo_location_change = true
278 allow_repo_location_change = true
279
279
280 ## allows to setup custom hooks in settings page
280 ## allows to setup custom hooks in settings page
281 allow_custom_hooks_settings = true
281 allow_custom_hooks_settings = true
282
282
283 ## generated license token, goto license page in RhodeCode settings to obtain
283 ## generated license token, goto license page in RhodeCode settings to obtain
284 ## new token
284 ## new token
285 license_token =
285 license_token =
286
286
287 ## supervisor connection uri, for managing supervisor and logs.
287 ## supervisor connection uri, for managing supervisor and logs.
288 supervisor.uri =
288 supervisor.uri =
289 ## supervisord group name/id we only want this RC instance to handle
289 ## supervisord group name/id we only want this RC instance to handle
290 supervisor.group_id = dev
290 supervisor.group_id = dev
291
291
292 ## Display extended labs settings
292 ## Display extended labs settings
293 labs_settings_active = true
293 labs_settings_active = true
294
294
295 ####################################
295 ####################################
296 ### CELERY CONFIG ####
296 ### CELERY CONFIG ####
297 ####################################
297 ####################################
298 ## run: /path/to/celery worker \
299 ## -E --beat --app rhodecode.lib.celerylib.loader \
300 ## --scheduler rhodecode.lib.celerylib.scheduler.RcScheduler \
301 ## --loglevel DEBUG --ini /path/to/rhodecode.ini
302
298 use_celery = false
303 use_celery = false
299
304
300 # connection url to the message broker (default rabbitmq)
305 ## connection url to the message broker (default rabbitmq)
301 celery.broker_url = amqp://rabbitmq:qweqwe@localhost:5672/rabbitmqhost
306 celery.broker_url = amqp://rabbitmq:qweqwe@localhost:5672/rabbitmqhost
302
307
303 # maximum tasks to execute before worker restart
308 ## maximum tasks to execute before worker restart
304 celery.max_tasks_per_child = 100
309 celery.max_tasks_per_child = 100
305
310
306 ## tasks will never be sent to the queue, but executed locally instead.
311 ## tasks will never be sent to the queue, but executed locally instead.
307 celery.task_always_eager = false
312 celery.task_always_eager = false
308
313
309 ####################################
314 ####################################
310 ### BEAKER CACHE ####
315 ### BEAKER CACHE ####
311 ####################################
316 ####################################
312 # default cache dir for templates. Putting this into a ramdisk
317 # default cache dir for templates. Putting this into a ramdisk
313 ## can boost performance, eg. %(here)s/data_ramdisk
318 ## can boost performance, eg. %(here)s/data_ramdisk
314 cache_dir = %(here)s/data
319 cache_dir = %(here)s/data
315
320
316 ## locking and default file storage for Beaker. Putting this into a ramdisk
321 ## locking and default file storage for Beaker. Putting this into a ramdisk
317 ## can boost performance, eg. %(here)s/data_ramdisk/cache/beaker_data
322 ## can boost performance, eg. %(here)s/data_ramdisk/cache/beaker_data
318 beaker.cache.data_dir = %(here)s/data/cache/beaker_data
323 beaker.cache.data_dir = %(here)s/data/cache/beaker_data
319 beaker.cache.lock_dir = %(here)s/data/cache/beaker_lock
324 beaker.cache.lock_dir = %(here)s/data/cache/beaker_lock
320
325
321 beaker.cache.regions = super_short_term, short_term, long_term, sql_cache_short, auth_plugins, repo_cache_long
326 beaker.cache.regions = super_short_term, short_term, long_term, sql_cache_short, auth_plugins, repo_cache_long
322
327
323 beaker.cache.super_short_term.type = memory
328 beaker.cache.super_short_term.type = memory
324 beaker.cache.super_short_term.expire = 10
329 beaker.cache.super_short_term.expire = 10
325 beaker.cache.super_short_term.key_length = 256
330 beaker.cache.super_short_term.key_length = 256
326
331
327 beaker.cache.short_term.type = memory
332 beaker.cache.short_term.type = memory
328 beaker.cache.short_term.expire = 60
333 beaker.cache.short_term.expire = 60
329 beaker.cache.short_term.key_length = 256
334 beaker.cache.short_term.key_length = 256
330
335
331 beaker.cache.long_term.type = memory
336 beaker.cache.long_term.type = memory
332 beaker.cache.long_term.expire = 36000
337 beaker.cache.long_term.expire = 36000
333 beaker.cache.long_term.key_length = 256
338 beaker.cache.long_term.key_length = 256
334
339
335 beaker.cache.sql_cache_short.type = memory
340 beaker.cache.sql_cache_short.type = memory
336 beaker.cache.sql_cache_short.expire = 10
341 beaker.cache.sql_cache_short.expire = 10
337 beaker.cache.sql_cache_short.key_length = 256
342 beaker.cache.sql_cache_short.key_length = 256
338
343
339 ## default is memory cache, configure only if required
344 ## default is memory cache, configure only if required
340 ## using multi-node or multi-worker setup
345 ## using multi-node or multi-worker setup
341 #beaker.cache.auth_plugins.type = ext:database
346 #beaker.cache.auth_plugins.type = ext:database
342 #beaker.cache.auth_plugins.lock_dir = %(here)s/data/cache/auth_plugin_lock
347 #beaker.cache.auth_plugins.lock_dir = %(here)s/data/cache/auth_plugin_lock
343 #beaker.cache.auth_plugins.url = postgresql://postgres:secret@localhost/rhodecode
348 #beaker.cache.auth_plugins.url = postgresql://postgres:secret@localhost/rhodecode
344 #beaker.cache.auth_plugins.url = mysql://root:secret@127.0.0.1/rhodecode
349 #beaker.cache.auth_plugins.url = mysql://root:secret@127.0.0.1/rhodecode
345 #beaker.cache.auth_plugins.sa.pool_recycle = 3600
350 #beaker.cache.auth_plugins.sa.pool_recycle = 3600
346 #beaker.cache.auth_plugins.sa.pool_size = 10
351 #beaker.cache.auth_plugins.sa.pool_size = 10
347 #beaker.cache.auth_plugins.sa.max_overflow = 0
352 #beaker.cache.auth_plugins.sa.max_overflow = 0
348
353
349 beaker.cache.repo_cache_long.type = memorylru_base
354 beaker.cache.repo_cache_long.type = memorylru_base
350 beaker.cache.repo_cache_long.max_items = 4096
355 beaker.cache.repo_cache_long.max_items = 4096
351 beaker.cache.repo_cache_long.expire = 2592000
356 beaker.cache.repo_cache_long.expire = 2592000
352
357
353 ## default is memorylru_base cache, configure only if required
358 ## default is memorylru_base cache, configure only if required
354 ## using multi-node or multi-worker setup
359 ## using multi-node or multi-worker setup
355 #beaker.cache.repo_cache_long.type = ext:memcached
360 #beaker.cache.repo_cache_long.type = ext:memcached
356 #beaker.cache.repo_cache_long.url = localhost:11211
361 #beaker.cache.repo_cache_long.url = localhost:11211
357 #beaker.cache.repo_cache_long.expire = 1209600
362 #beaker.cache.repo_cache_long.expire = 1209600
358 #beaker.cache.repo_cache_long.key_length = 256
363 #beaker.cache.repo_cache_long.key_length = 256
359
364
360 ####################################
365 ####################################
361 ### BEAKER SESSION ####
366 ### BEAKER SESSION ####
362 ####################################
367 ####################################
363
368
364 ## .session.type is type of storage options for the session, current allowed
369 ## .session.type is type of storage options for the session, current allowed
365 ## types are file, ext:memcached, ext:database, and memory (default).
370 ## types are file, ext:memcached, ext:database, and memory (default).
366 beaker.session.type = file
371 beaker.session.type = file
367 beaker.session.data_dir = %(here)s/data/sessions/data
372 beaker.session.data_dir = %(here)s/data/sessions/data
368
373
369 ## db based session, fast, and allows easy management over logged in users
374 ## db based session, fast, and allows easy management over logged in users
370 #beaker.session.type = ext:database
375 #beaker.session.type = ext:database
371 #beaker.session.table_name = db_session
376 #beaker.session.table_name = db_session
372 #beaker.session.sa.url = postgresql://postgres:secret@localhost/rhodecode
377 #beaker.session.sa.url = postgresql://postgres:secret@localhost/rhodecode
373 #beaker.session.sa.url = mysql://root:secret@127.0.0.1/rhodecode
378 #beaker.session.sa.url = mysql://root:secret@127.0.0.1/rhodecode
374 #beaker.session.sa.pool_recycle = 3600
379 #beaker.session.sa.pool_recycle = 3600
375 #beaker.session.sa.echo = false
380 #beaker.session.sa.echo = false
376
381
377 beaker.session.key = rhodecode
382 beaker.session.key = rhodecode
378 beaker.session.secret = develop-rc-uytcxaz
383 beaker.session.secret = develop-rc-uytcxaz
379 beaker.session.lock_dir = %(here)s/data/sessions/lock
384 beaker.session.lock_dir = %(here)s/data/sessions/lock
380
385
381 ## Secure encrypted cookie. Requires AES and AES python libraries
386 ## Secure encrypted cookie. Requires AES and AES python libraries
382 ## you must disable beaker.session.secret to use this
387 ## you must disable beaker.session.secret to use this
383 #beaker.session.encrypt_key = key_for_encryption
388 #beaker.session.encrypt_key = key_for_encryption
384 #beaker.session.validate_key = validation_key
389 #beaker.session.validate_key = validation_key
385
390
386 ## sets session as invalid(also logging out user) if it haven not been
391 ## sets session as invalid(also logging out user) if it haven not been
387 ## accessed for given amount of time in seconds
392 ## accessed for given amount of time in seconds
388 beaker.session.timeout = 2592000
393 beaker.session.timeout = 2592000
389 beaker.session.httponly = true
394 beaker.session.httponly = true
390 ## Path to use for the cookie. Set to prefix if you use prefix middleware
395 ## Path to use for the cookie. Set to prefix if you use prefix middleware
391 #beaker.session.cookie_path = /custom_prefix
396 #beaker.session.cookie_path = /custom_prefix
392
397
393 ## uncomment for https secure cookie
398 ## uncomment for https secure cookie
394 beaker.session.secure = false
399 beaker.session.secure = false
395
400
396 ## auto save the session to not to use .save()
401 ## auto save the session to not to use .save()
397 beaker.session.auto = false
402 beaker.session.auto = false
398
403
399 ## default cookie expiration time in seconds, set to `true` to set expire
404 ## default cookie expiration time in seconds, set to `true` to set expire
400 ## at browser close
405 ## at browser close
401 #beaker.session.cookie_expires = 3600
406 #beaker.session.cookie_expires = 3600
402
407
403 ###################################
408 ###################################
404 ## SEARCH INDEXING CONFIGURATION ##
409 ## SEARCH INDEXING CONFIGURATION ##
405 ###################################
410 ###################################
406 ## Full text search indexer is available in rhodecode-tools under
411 ## Full text search indexer is available in rhodecode-tools under
407 ## `rhodecode-tools index` command
412 ## `rhodecode-tools index` command
408
413
409 ## WHOOSH Backend, doesn't require additional services to run
414 ## WHOOSH Backend, doesn't require additional services to run
410 ## it works good with few dozen repos
415 ## it works good with few dozen repos
411 search.module = rhodecode.lib.index.whoosh
416 search.module = rhodecode.lib.index.whoosh
412 search.location = %(here)s/data/index
417 search.location = %(here)s/data/index
413
418
414 ########################################
419 ########################################
415 ### CHANNELSTREAM CONFIG ####
420 ### CHANNELSTREAM CONFIG ####
416 ########################################
421 ########################################
417 ## channelstream enables persistent connections and live notification
422 ## channelstream enables persistent connections and live notification
418 ## in the system. It's also used by the chat system
423 ## in the system. It's also used by the chat system
419 channelstream.enabled = false
424 channelstream.enabled = false
420
425
421 ## server address for channelstream server on the backend
426 ## server address for channelstream server on the backend
422 channelstream.server = 127.0.0.1:9800
427 channelstream.server = 127.0.0.1:9800
423
428
424 ## location of the channelstream server from outside world
429 ## location of the channelstream server from outside world
425 ## use ws:// for http or wss:// for https. This address needs to be handled
430 ## use ws:// for http or wss:// for https. This address needs to be handled
426 ## by external HTTP server such as Nginx or Apache
431 ## by external HTTP server such as Nginx or Apache
427 ## see nginx/apache configuration examples in our docs
432 ## see nginx/apache configuration examples in our docs
428 channelstream.ws_url = ws://rhodecode.yourserver.com/_channelstream
433 channelstream.ws_url = ws://rhodecode.yourserver.com/_channelstream
429 channelstream.secret = secret
434 channelstream.secret = secret
430 channelstream.history.location = %(here)s/channelstream_history
435 channelstream.history.location = %(here)s/channelstream_history
431
436
432 ## Internal application path that Javascript uses to connect into.
437 ## Internal application path that Javascript uses to connect into.
433 ## If you use proxy-prefix the prefix should be added before /_channelstream
438 ## If you use proxy-prefix the prefix should be added before /_channelstream
434 channelstream.proxy_path = /_channelstream
439 channelstream.proxy_path = /_channelstream
435
440
436
441
437 ###################################
442 ###################################
438 ## APPENLIGHT CONFIG ##
443 ## APPENLIGHT CONFIG ##
439 ###################################
444 ###################################
440
445
441 ## Appenlight is tailored to work with RhodeCode, see
446 ## Appenlight is tailored to work with RhodeCode, see
442 ## http://appenlight.com for details how to obtain an account
447 ## http://appenlight.com for details how to obtain an account
443
448
444 ## appenlight integration enabled
449 ## appenlight integration enabled
445 appenlight = false
450 appenlight = false
446
451
447 appenlight.server_url = https://api.appenlight.com
452 appenlight.server_url = https://api.appenlight.com
448 appenlight.api_key = YOUR_API_KEY
453 appenlight.api_key = YOUR_API_KEY
449 #appenlight.transport_config = https://api.appenlight.com?threaded=1&timeout=5
454 #appenlight.transport_config = https://api.appenlight.com?threaded=1&timeout=5
450
455
451 # used for JS client
456 # used for JS client
452 appenlight.api_public_key = YOUR_API_PUBLIC_KEY
457 appenlight.api_public_key = YOUR_API_PUBLIC_KEY
453
458
454 ## TWEAK AMOUNT OF INFO SENT HERE
459 ## TWEAK AMOUNT OF INFO SENT HERE
455
460
456 ## enables 404 error logging (default False)
461 ## enables 404 error logging (default False)
457 appenlight.report_404 = false
462 appenlight.report_404 = false
458
463
459 ## time in seconds after request is considered being slow (default 1)
464 ## time in seconds after request is considered being slow (default 1)
460 appenlight.slow_request_time = 1
465 appenlight.slow_request_time = 1
461
466
462 ## record slow requests in application
467 ## record slow requests in application
463 ## (needs to be enabled for slow datastore recording and time tracking)
468 ## (needs to be enabled for slow datastore recording and time tracking)
464 appenlight.slow_requests = true
469 appenlight.slow_requests = true
465
470
466 ## enable hooking to application loggers
471 ## enable hooking to application loggers
467 appenlight.logging = true
472 appenlight.logging = true
468
473
469 ## minimum log level for log capture
474 ## minimum log level for log capture
470 appenlight.logging.level = WARNING
475 appenlight.logging.level = WARNING
471
476
472 ## send logs only from erroneous/slow requests
477 ## send logs only from erroneous/slow requests
473 ## (saves API quota for intensive logging)
478 ## (saves API quota for intensive logging)
474 appenlight.logging_on_error = false
479 appenlight.logging_on_error = false
475
480
476 ## list of additonal keywords that should be grabbed from environ object
481 ## list of additonal keywords that should be grabbed from environ object
477 ## can be string with comma separated list of words in lowercase
482 ## can be string with comma separated list of words in lowercase
478 ## (by default client will always send following info:
483 ## (by default client will always send following info:
479 ## 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that
484 ## 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that
480 ## start with HTTP* this list be extended with additional keywords here
485 ## start with HTTP* this list be extended with additional keywords here
481 appenlight.environ_keys_whitelist =
486 appenlight.environ_keys_whitelist =
482
487
483 ## list of keywords that should be blanked from request object
488 ## list of keywords that should be blanked from request object
484 ## can be string with comma separated list of words in lowercase
489 ## can be string with comma separated list of words in lowercase
485 ## (by default client will always blank keys that contain following words
490 ## (by default client will always blank keys that contain following words
486 ## 'password', 'passwd', 'pwd', 'auth_tkt', 'secret', 'csrf'
491 ## 'password', 'passwd', 'pwd', 'auth_tkt', 'secret', 'csrf'
487 ## this list be extended with additional keywords set here
492 ## this list be extended with additional keywords set here
488 appenlight.request_keys_blacklist =
493 appenlight.request_keys_blacklist =
489
494
490 ## list of namespaces that should be ignores when gathering log entries
495 ## list of namespaces that should be ignores when gathering log entries
491 ## can be string with comma separated list of namespaces
496 ## can be string with comma separated list of namespaces
492 ## (by default the client ignores own entries: appenlight_client.client)
497 ## (by default the client ignores own entries: appenlight_client.client)
493 appenlight.log_namespace_blacklist =
498 appenlight.log_namespace_blacklist =
494
499
495
500
496 ################################################################################
501 ################################################################################
497 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
502 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
498 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
503 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
499 ## execute malicious code after an exception is raised. ##
504 ## execute malicious code after an exception is raised. ##
500 ################################################################################
505 ################################################################################
501 #set debug = false
506 #set debug = false
502
507
503
508
504 ##############
509 ##############
505 ## STYLING ##
510 ## STYLING ##
506 ##############
511 ##############
507 debug_style = true
512 debug_style = true
508
513
509 ###########################################
514 ###########################################
510 ### MAIN RHODECODE DATABASE CONFIG ###
515 ### MAIN RHODECODE DATABASE CONFIG ###
511 ###########################################
516 ###########################################
512 #sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db?timeout=30
517 #sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db?timeout=30
513 #sqlalchemy.db1.url = postgresql://postgres:qweqwe@localhost/rhodecode
518 #sqlalchemy.db1.url = postgresql://postgres:qweqwe@localhost/rhodecode
514 #sqlalchemy.db1.url = mysql://root:qweqwe@localhost/rhodecode
519 #sqlalchemy.db1.url = mysql://root:qweqwe@localhost/rhodecode
515 sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db?timeout=30
520 sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db?timeout=30
516
521
517 # see sqlalchemy docs for other advanced settings
522 # see sqlalchemy docs for other advanced settings
518
523
519 ## print the sql statements to output
524 ## print the sql statements to output
520 sqlalchemy.db1.echo = false
525 sqlalchemy.db1.echo = false
521 ## recycle the connections after this amount of seconds
526 ## recycle the connections after this amount of seconds
522 sqlalchemy.db1.pool_recycle = 3600
527 sqlalchemy.db1.pool_recycle = 3600
523 sqlalchemy.db1.convert_unicode = true
528 sqlalchemy.db1.convert_unicode = true
524
529
525 ## the number of connections to keep open inside the connection pool.
530 ## the number of connections to keep open inside the connection pool.
526 ## 0 indicates no limit
531 ## 0 indicates no limit
527 #sqlalchemy.db1.pool_size = 5
532 #sqlalchemy.db1.pool_size = 5
528
533
529 ## the number of connections to allow in connection pool "overflow", that is
534 ## the number of connections to allow in connection pool "overflow", that is
530 ## connections that can be opened above and beyond the pool_size setting,
535 ## connections that can be opened above and beyond the pool_size setting,
531 ## which defaults to five.
536 ## which defaults to five.
532 #sqlalchemy.db1.max_overflow = 10
537 #sqlalchemy.db1.max_overflow = 10
533
538
534
539
535 ##################
540 ##################
536 ### VCS CONFIG ###
541 ### VCS CONFIG ###
537 ##################
542 ##################
538 vcs.server.enable = true
543 vcs.server.enable = true
539 vcs.server = localhost:9900
544 vcs.server = localhost:9900
540
545
541 ## Web server connectivity protocol, responsible for web based VCS operatations
546 ## Web server connectivity protocol, responsible for web based VCS operatations
542 ## Available protocols are:
547 ## Available protocols are:
543 ## `http` - use http-rpc backend (default)
548 ## `http` - use http-rpc backend (default)
544 vcs.server.protocol = http
549 vcs.server.protocol = http
545
550
546 ## Push/Pull operations protocol, available options are:
551 ## Push/Pull operations protocol, available options are:
547 ## `http` - use http-rpc backend (default)
552 ## `http` - use http-rpc backend (default)
548 ##
553 ##
549 vcs.scm_app_implementation = http
554 vcs.scm_app_implementation = http
550
555
551 ## Push/Pull operations hooks protocol, available options are:
556 ## Push/Pull operations hooks protocol, available options are:
552 ## `http` - use http-rpc backend (default)
557 ## `http` - use http-rpc backend (default)
553 vcs.hooks.protocol = http
558 vcs.hooks.protocol = http
554
559
555 vcs.server.log_level = debug
560 vcs.server.log_level = debug
556 ## Start VCSServer with this instance as a subprocess, usefull for development
561 ## Start VCSServer with this instance as a subprocess, usefull for development
557 vcs.start_server = true
562 vcs.start_server = false
558
563
559 ## List of enabled VCS backends, available options are:
564 ## List of enabled VCS backends, available options are:
560 ## `hg` - mercurial
565 ## `hg` - mercurial
561 ## `git` - git
566 ## `git` - git
562 ## `svn` - subversion
567 ## `svn` - subversion
563 vcs.backends = hg, git, svn
568 vcs.backends = hg, git, svn
564
569
565 vcs.connection_timeout = 3600
570 vcs.connection_timeout = 3600
566 ## Compatibility version when creating SVN repositories. Defaults to newest version when commented out.
571 ## Compatibility version when creating SVN repositories. Defaults to newest version when commented out.
567 ## Available options are: pre-1.4-compatible, pre-1.5-compatible, pre-1.6-compatible, pre-1.8-compatible, pre-1.9-compatible
572 ## Available options are: pre-1.4-compatible, pre-1.5-compatible, pre-1.6-compatible, pre-1.8-compatible, pre-1.9-compatible
568 #vcs.svn.compatible_version = pre-1.8-compatible
573 #vcs.svn.compatible_version = pre-1.8-compatible
569
574
570
575
571 ############################################################
576 ############################################################
572 ### Subversion proxy support (mod_dav_svn) ###
577 ### Subversion proxy support (mod_dav_svn) ###
573 ### Maps RhodeCode repo groups into SVN paths for Apache ###
578 ### Maps RhodeCode repo groups into SVN paths for Apache ###
574 ############################################################
579 ############################################################
575 ## Enable or disable the config file generation.
580 ## Enable or disable the config file generation.
576 svn.proxy.generate_config = false
581 svn.proxy.generate_config = false
577 ## Generate config file with `SVNListParentPath` set to `On`.
582 ## Generate config file with `SVNListParentPath` set to `On`.
578 svn.proxy.list_parent_path = true
583 svn.proxy.list_parent_path = true
579 ## Set location and file name of generated config file.
584 ## Set location and file name of generated config file.
580 svn.proxy.config_file_path = %(here)s/mod_dav_svn.conf
585 svn.proxy.config_file_path = %(here)s/mod_dav_svn.conf
581 ## alternative mod_dav config template. This needs to be a mako template
586 ## alternative mod_dav config template. This needs to be a mako template
582 #svn.proxy.config_template = ~/.rccontrol/enterprise-1/custom_svn_conf.mako
587 #svn.proxy.config_template = ~/.rccontrol/enterprise-1/custom_svn_conf.mako
583 ## Used as a prefix to the `Location` block in the generated config file.
588 ## Used as a prefix to the `Location` block in the generated config file.
584 ## In most cases it should be set to `/`.
589 ## In most cases it should be set to `/`.
585 svn.proxy.location_root = /
590 svn.proxy.location_root = /
586 ## Command to reload the mod dav svn configuration on change.
591 ## Command to reload the mod dav svn configuration on change.
587 ## Example: `/etc/init.d/apache2 reload`
592 ## Example: `/etc/init.d/apache2 reload`
588 #svn.proxy.reload_cmd = /etc/init.d/apache2 reload
593 #svn.proxy.reload_cmd = /etc/init.d/apache2 reload
589 ## If the timeout expires before the reload command finishes, the command will
594 ## If the timeout expires before the reload command finishes, the command will
590 ## be killed. Setting it to zero means no timeout. Defaults to 10 seconds.
595 ## be killed. Setting it to zero means no timeout. Defaults to 10 seconds.
591 #svn.proxy.reload_timeout = 10
596 #svn.proxy.reload_timeout = 10
592
597
593 ############################################################
598 ############################################################
594 ### SSH Support Settings ###
599 ### SSH Support Settings ###
595 ############################################################
600 ############################################################
596
601
597 ## Defines if a custom authorized_keys file should be created and written on
602 ## Defines if a custom authorized_keys file should be created and written on
598 ## any change user ssh keys. Setting this to false also disables posibility
603 ## any change user ssh keys. Setting this to false also disables posibility
599 ## of adding SSH keys by users from web interface. Super admins can still
604 ## of adding SSH keys by users from web interface. Super admins can still
600 ## manage SSH Keys.
605 ## manage SSH Keys.
601 ssh.generate_authorized_keyfile = false
606 ssh.generate_authorized_keyfile = false
602
607
603 ## Options for ssh, default is `no-pty,no-port-forwarding,no-X11-forwarding,no-agent-forwarding`
608 ## Options for ssh, default is `no-pty,no-port-forwarding,no-X11-forwarding,no-agent-forwarding`
604 # ssh.authorized_keys_ssh_opts =
609 # ssh.authorized_keys_ssh_opts =
605
610
606 ## Path to the authrozied_keys file where the generate entries are placed.
611 ## Path to the authrozied_keys file where the generate entries are placed.
607 ## It is possible to have multiple key files specified in `sshd_config` e.g.
612 ## It is possible to have multiple key files specified in `sshd_config` e.g.
608 ## AuthorizedKeysFile %h/.ssh/authorized_keys %h/.ssh/authorized_keys_rhodecode
613 ## AuthorizedKeysFile %h/.ssh/authorized_keys %h/.ssh/authorized_keys_rhodecode
609 ssh.authorized_keys_file_path = ~/.ssh/authorized_keys_rhodecode
614 ssh.authorized_keys_file_path = ~/.ssh/authorized_keys_rhodecode
610
615
611 ## Command to execute the SSH wrapper. The binary is available in the
616 ## Command to execute the SSH wrapper. The binary is available in the
612 ## rhodecode installation directory.
617 ## rhodecode installation directory.
613 ## e.g ~/.rccontrol/community-1/profile/bin/rc-ssh-wrapper
618 ## e.g ~/.rccontrol/community-1/profile/bin/rc-ssh-wrapper
614 ssh.wrapper_cmd = ~/.rccontrol/community-1/rc-ssh-wrapper
619 ssh.wrapper_cmd = ~/.rccontrol/community-1/rc-ssh-wrapper
615
620
616 ## Allow shell when executing the ssh-wrapper command
621 ## Allow shell when executing the ssh-wrapper command
617 ssh.wrapper_cmd_allow_shell = false
622 ssh.wrapper_cmd_allow_shell = false
618
623
619 ## Enables logging, and detailed output send back to the client during SSH
624 ## Enables logging, and detailed output send back to the client during SSH
620 ## operations. Usefull for debugging, shouldn't be used in production.
625 ## operations. Usefull for debugging, shouldn't be used in production.
621 ssh.enable_debug_logging = true
626 ssh.enable_debug_logging = true
622
627
623 ## Paths to binary executable, by default they are the names, but we can
628 ## Paths to binary executable, by default they are the names, but we can
624 ## override them if we want to use a custom one
629 ## override them if we want to use a custom one
625 ssh.executable.hg = ~/.rccontrol/vcsserver-1/profile/bin/hg
630 ssh.executable.hg = ~/.rccontrol/vcsserver-1/profile/bin/hg
626 ssh.executable.git = ~/.rccontrol/vcsserver-1/profile/bin/git
631 ssh.executable.git = ~/.rccontrol/vcsserver-1/profile/bin/git
627 ssh.executable.svn = ~/.rccontrol/vcsserver-1/profile/bin/svnserve
632 ssh.executable.svn = ~/.rccontrol/vcsserver-1/profile/bin/svnserve
628
633
629
634
630 ## Dummy marker to add new entries after.
635 ## Dummy marker to add new entries after.
631 ## Add any custom entries below. Please don't remove.
636 ## Add any custom entries below. Please don't remove.
632 custom.conf = 1
637 custom.conf = 1
633
638
634
639
635 ################################
640 ################################
636 ### LOGGING CONFIGURATION ####
641 ### LOGGING CONFIGURATION ####
637 ################################
642 ################################
638 [loggers]
643 [loggers]
639 keys = root, sqlalchemy, beaker, rhodecode, ssh_wrapper, celery
644 keys = root, sqlalchemy, beaker, rhodecode, ssh_wrapper, celery
640
645
641 [handlers]
646 [handlers]
642 keys = console, console_sql
647 keys = console, console_sql
643
648
644 [formatters]
649 [formatters]
645 keys = generic, color_formatter, color_formatter_sql
650 keys = generic, color_formatter, color_formatter_sql
646
651
647 #############
652 #############
648 ## LOGGERS ##
653 ## LOGGERS ##
649 #############
654 #############
650 [logger_root]
655 [logger_root]
651 level = NOTSET
656 level = NOTSET
652 handlers = console
657 handlers = console
653
658
654 [logger_sqlalchemy]
659 [logger_sqlalchemy]
655 level = INFO
660 level = INFO
656 handlers = console_sql
661 handlers = console_sql
657 qualname = sqlalchemy.engine
662 qualname = sqlalchemy.engine
658 propagate = 0
663 propagate = 0
659
664
660 [logger_beaker]
665 [logger_beaker]
661 level = DEBUG
666 level = DEBUG
662 handlers =
667 handlers =
663 qualname = beaker.container
668 qualname = beaker.container
664 propagate = 1
669 propagate = 1
665
670
666 [logger_rhodecode]
671 [logger_rhodecode]
667 level = DEBUG
672 level = DEBUG
668 handlers =
673 handlers =
669 qualname = rhodecode
674 qualname = rhodecode
670 propagate = 1
675 propagate = 1
671
676
672 [logger_ssh_wrapper]
677 [logger_ssh_wrapper]
673 level = DEBUG
678 level = DEBUG
674 handlers =
679 handlers =
675 qualname = ssh_wrapper
680 qualname = ssh_wrapper
676 propagate = 1
681 propagate = 1
677
682
678 [logger_celery]
683 [logger_celery]
679 level = DEBUG
684 level = DEBUG
680 handlers =
685 handlers =
681 qualname = celery
686 qualname = celery
682
687
683
688
684 ##############
689 ##############
685 ## HANDLERS ##
690 ## HANDLERS ##
686 ##############
691 ##############
687
692
688 [handler_console]
693 [handler_console]
689 class = StreamHandler
694 class = StreamHandler
690 args = (sys.stderr, )
695 args = (sys.stderr, )
691 level = DEBUG
696 level = DEBUG
692 formatter = color_formatter
697 formatter = color_formatter
693
698
694 [handler_console_sql]
699 [handler_console_sql]
695 class = StreamHandler
700 class = StreamHandler
696 args = (sys.stderr, )
701 args = (sys.stderr, )
697 level = DEBUG
702 level = DEBUG
698 formatter = color_formatter_sql
703 formatter = color_formatter_sql
699
704
700 ################
705 ################
701 ## FORMATTERS ##
706 ## FORMATTERS ##
702 ################
707 ################
703
708
704 [formatter_generic]
709 [formatter_generic]
705 class = rhodecode.lib.logging_formatter.ExceptionAwareFormatter
710 class = rhodecode.lib.logging_formatter.ExceptionAwareFormatter
706 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
711 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
707 datefmt = %Y-%m-%d %H:%M:%S
712 datefmt = %Y-%m-%d %H:%M:%S
708
713
709 [formatter_color_formatter]
714 [formatter_color_formatter]
710 class = rhodecode.lib.logging_formatter.ColorFormatter
715 class = rhodecode.lib.logging_formatter.ColorFormatter
711 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
716 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
712 datefmt = %Y-%m-%d %H:%M:%S
717 datefmt = %Y-%m-%d %H:%M:%S
713
718
714 [formatter_color_formatter_sql]
719 [formatter_color_formatter_sql]
715 class = rhodecode.lib.logging_formatter.ColorFormatterSql
720 class = rhodecode.lib.logging_formatter.ColorFormatterSql
716 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
721 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
717 datefmt = %Y-%m-%d %H:%M:%S
722 datefmt = %Y-%m-%d %H:%M:%S
@@ -1,687 +1,692 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 recommended to be at 1
76 ## generally recommended 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 = gevent
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 ## URL at which the application is running. This is used for bootstraping
140 ## URL at which the application is running. This is used for bootstraping
141 ## requests in context when no web request is available. Used in ishell, or
141 ## requests in context when no web request is available. Used in ishell, or
142 ## SSH calls. Set this for events to receive proper url for SSH calls.
142 ## SSH calls. Set this for events to receive proper url for SSH calls.
143 app.base_url = http://rhodecode.local
143 app.base_url = http://rhodecode.local
144
144
145 ## change this to unique ID for security
145 ## change this to unique ID for security
146 app_instance_uuid = rc-production
146 app_instance_uuid = rc-production
147
147
148 ## cut off limit for large diffs (size in bytes). If overall diff size on
148 ## cut off limit for large diffs (size in bytes). If overall diff size on
149 ## commit, or pull request exceeds this limit this diff will be displayed
149 ## commit, or pull request exceeds this limit this diff will be displayed
150 ## partially. E.g 512000 == 512Kb
150 ## partially. E.g 512000 == 512Kb
151 cut_off_limit_diff = 512000
151 cut_off_limit_diff = 512000
152
152
153 ## cut off limit for large files inside diffs (size in bytes). Each individual
153 ## cut off limit for large files inside diffs (size in bytes). Each individual
154 ## file inside diff which exceeds this limit will be displayed partially.
154 ## file inside diff which exceeds this limit will be displayed partially.
155 ## E.g 128000 == 128Kb
155 ## E.g 128000 == 128Kb
156 cut_off_limit_file = 128000
156 cut_off_limit_file = 128000
157
157
158 ## use cache version of scm repo everywhere
158 ## use cache version of scm repo everywhere
159 vcs_full_cache = true
159 vcs_full_cache = true
160
160
161 ## force https in RhodeCode, fixes https redirects, assumes it's always https
161 ## force https in RhodeCode, fixes https redirects, assumes it's always https
162 ## Normally this is controlled by proper http flags sent from http server
162 ## Normally this is controlled by proper http flags sent from http server
163 force_https = false
163 force_https = false
164
164
165 ## use Strict-Transport-Security headers
165 ## use Strict-Transport-Security headers
166 use_htsts = false
166 use_htsts = false
167
167
168 ## number of commits stats will parse on each iteration
168 ## number of commits stats will parse on each iteration
169 commit_parse_limit = 25
169 commit_parse_limit = 25
170
170
171 ## git rev filter option, --all is the default filter, if you need to
171 ## git rev filter option, --all is the default filter, if you need to
172 ## hide all refs in changelog switch this to --branches --tags
172 ## hide all refs in changelog switch this to --branches --tags
173 git_rev_filter = --branches --tags
173 git_rev_filter = --branches --tags
174
174
175 # Set to true if your repos are exposed using the dumb protocol
175 # Set to true if your repos are exposed using the dumb protocol
176 git_update_server_info = false
176 git_update_server_info = false
177
177
178 ## RSS/ATOM feed options
178 ## RSS/ATOM feed options
179 rss_cut_off_limit = 256000
179 rss_cut_off_limit = 256000
180 rss_items_per_page = 10
180 rss_items_per_page = 10
181 rss_include_diff = false
181 rss_include_diff = false
182
182
183 ## gist URL alias, used to create nicer urls for gist. This should be an
183 ## gist URL alias, used to create nicer urls for gist. This should be an
184 ## url that does rewrites to _admin/gists/{gistid}.
184 ## url that does rewrites to _admin/gists/{gistid}.
185 ## example: http://gist.rhodecode.org/{gistid}. Empty means use the internal
185 ## example: http://gist.rhodecode.org/{gistid}. Empty means use the internal
186 ## RhodeCode url, ie. http[s]://rhodecode.server/_admin/gists/{gistid}
186 ## RhodeCode url, ie. http[s]://rhodecode.server/_admin/gists/{gistid}
187 gist_alias_url =
187 gist_alias_url =
188
188
189 ## List of views (using glob pattern syntax) that AUTH TOKENS could be
189 ## List of views (using glob pattern syntax) that AUTH TOKENS could be
190 ## used for access.
190 ## used for access.
191 ## Adding ?auth_token=TOKEN_HASH to the url authenticates this request as if it
191 ## Adding ?auth_token=TOKEN_HASH to the url authenticates this request as if it
192 ## came from the the logged in user who own this authentication token.
192 ## came from the the logged in user who own this authentication token.
193 ## Additionally @TOKEN syntaxt can be used to bound the view to specific
193 ## Additionally @TOKEN syntaxt can be used to bound the view to specific
194 ## authentication token. Such view would be only accessible when used together
194 ## authentication token. Such view would be only accessible when used together
195 ## with this authentication token
195 ## with this authentication token
196 ##
196 ##
197 ## list of all views can be found under `/_admin/permissions/auth_token_access`
197 ## list of all views can be found under `/_admin/permissions/auth_token_access`
198 ## The list should be "," separated and on a single line.
198 ## The list should be "," separated and on a single line.
199 ##
199 ##
200 ## Most common views to enable:
200 ## Most common views to enable:
201 # RepoCommitsView:repo_commit_download
201 # RepoCommitsView:repo_commit_download
202 # RepoCommitsView:repo_commit_patch
202 # RepoCommitsView:repo_commit_patch
203 # RepoCommitsView:repo_commit_raw
203 # RepoCommitsView:repo_commit_raw
204 # RepoCommitsView:repo_commit_raw@TOKEN
204 # RepoCommitsView:repo_commit_raw@TOKEN
205 # RepoFilesView:repo_files_diff
205 # RepoFilesView:repo_files_diff
206 # RepoFilesView:repo_archivefile
206 # RepoFilesView:repo_archivefile
207 # RepoFilesView:repo_file_raw
207 # RepoFilesView:repo_file_raw
208 # GistView:*
208 # GistView:*
209 api_access_controllers_whitelist =
209 api_access_controllers_whitelist =
210
210
211 ## default encoding used to convert from and to unicode
211 ## default encoding used to convert from and to unicode
212 ## can be also a comma separated list of encoding in case of mixed encodings
212 ## can be also a comma separated list of encoding in case of mixed encodings
213 default_encoding = UTF-8
213 default_encoding = UTF-8
214
214
215 ## instance-id prefix
215 ## instance-id prefix
216 ## a prefix key for this instance used for cache invalidation when running
216 ## a prefix key for this instance used for cache invalidation when running
217 ## multiple instances of rhodecode, make sure it's globally unique for
217 ## multiple instances of rhodecode, make sure it's globally unique for
218 ## all running rhodecode instances. Leave empty if you don't use it
218 ## all running rhodecode instances. Leave empty if you don't use it
219 instance_id =
219 instance_id =
220
220
221 ## Fallback authentication plugin. Set this to a plugin ID to force the usage
221 ## Fallback authentication plugin. Set this to a plugin ID to force the usage
222 ## of an authentication plugin also if it is disabled by it's settings.
222 ## of an authentication plugin also if it is disabled by it's settings.
223 ## This could be useful if you are unable to log in to the system due to broken
223 ## This could be useful if you are unable to log in to the system due to broken
224 ## authentication settings. Then you can enable e.g. the internal rhodecode auth
224 ## authentication settings. Then you can enable e.g. the internal rhodecode auth
225 ## module to log in again and fix the settings.
225 ## module to log in again and fix the settings.
226 ##
226 ##
227 ## Available builtin plugin IDs (hash is part of the ID):
227 ## Available builtin plugin IDs (hash is part of the ID):
228 ## egg:rhodecode-enterprise-ce#rhodecode
228 ## egg:rhodecode-enterprise-ce#rhodecode
229 ## egg:rhodecode-enterprise-ce#pam
229 ## egg:rhodecode-enterprise-ce#pam
230 ## egg:rhodecode-enterprise-ce#ldap
230 ## egg:rhodecode-enterprise-ce#ldap
231 ## egg:rhodecode-enterprise-ce#jasig_cas
231 ## egg:rhodecode-enterprise-ce#jasig_cas
232 ## egg:rhodecode-enterprise-ce#headers
232 ## egg:rhodecode-enterprise-ce#headers
233 ## egg:rhodecode-enterprise-ce#crowd
233 ## egg:rhodecode-enterprise-ce#crowd
234 #rhodecode.auth_plugin_fallback = egg:rhodecode-enterprise-ce#rhodecode
234 #rhodecode.auth_plugin_fallback = egg:rhodecode-enterprise-ce#rhodecode
235
235
236 ## alternative return HTTP header for failed authentication. Default HTTP
236 ## alternative return HTTP header for failed authentication. Default HTTP
237 ## response is 401 HTTPUnauthorized. Currently HG clients have troubles with
237 ## response is 401 HTTPUnauthorized. Currently HG clients have troubles with
238 ## handling that causing a series of failed authentication calls.
238 ## handling that causing a series of failed authentication calls.
239 ## Set this variable to 403 to return HTTPForbidden, or any other HTTP code
239 ## Set this variable to 403 to return HTTPForbidden, or any other HTTP code
240 ## This will be served instead of default 401 on bad authnetication
240 ## This will be served instead of default 401 on bad authnetication
241 auth_ret_code =
241 auth_ret_code =
242
242
243 ## use special detection method when serving auth_ret_code, instead of serving
243 ## use special detection method when serving auth_ret_code, instead of serving
244 ## ret_code directly, use 401 initially (Which triggers credentials prompt)
244 ## ret_code directly, use 401 initially (Which triggers credentials prompt)
245 ## and then serve auth_ret_code to clients
245 ## and then serve auth_ret_code to clients
246 auth_ret_code_detection = false
246 auth_ret_code_detection = false
247
247
248 ## locking return code. When repository is locked return this HTTP code. 2XX
248 ## locking return code. When repository is locked return this HTTP code. 2XX
249 ## codes don't break the transactions while 4XX codes do
249 ## codes don't break the transactions while 4XX codes do
250 lock_ret_code = 423
250 lock_ret_code = 423
251
251
252 ## allows to change the repository location in settings page
252 ## allows to change the repository location in settings page
253 allow_repo_location_change = true
253 allow_repo_location_change = true
254
254
255 ## allows to setup custom hooks in settings page
255 ## allows to setup custom hooks in settings page
256 allow_custom_hooks_settings = true
256 allow_custom_hooks_settings = true
257
257
258 ## generated license token, goto license page in RhodeCode settings to obtain
258 ## generated license token, goto license page in RhodeCode settings to obtain
259 ## new token
259 ## new token
260 license_token =
260 license_token =
261
261
262 ## supervisor connection uri, for managing supervisor and logs.
262 ## supervisor connection uri, for managing supervisor and logs.
263 supervisor.uri =
263 supervisor.uri =
264 ## supervisord group name/id we only want this RC instance to handle
264 ## supervisord group name/id we only want this RC instance to handle
265 supervisor.group_id = prod
265 supervisor.group_id = prod
266
266
267 ## Display extended labs settings
267 ## Display extended labs settings
268 labs_settings_active = true
268 labs_settings_active = true
269
269
270 ####################################
270 ####################################
271 ### CELERY CONFIG ####
271 ### CELERY CONFIG ####
272 ####################################
272 ####################################
273 ## run: /path/to/celery worker \
274 ## -E --beat --app rhodecode.lib.celerylib.loader \
275 ## --scheduler rhodecode.lib.celerylib.scheduler.RcScheduler \
276 ## --loglevel DEBUG --ini /path/to/rhodecode.ini
277
273 use_celery = false
278 use_celery = false
274
279
275 # connection url to the message broker (default rabbitmq)
280 ## connection url to the message broker (default rabbitmq)
276 celery.broker_url = amqp://rabbitmq:qweqwe@localhost:5672/rabbitmqhost
281 celery.broker_url = amqp://rabbitmq:qweqwe@localhost:5672/rabbitmqhost
277
282
278 # maximum tasks to execute before worker restart
283 ## maximum tasks to execute before worker restart
279 celery.max_tasks_per_child = 100
284 celery.max_tasks_per_child = 100
280
285
281 ## tasks will never be sent to the queue, but executed locally instead.
286 ## tasks will never be sent to the queue, but executed locally instead.
282 celery.task_always_eager = false
287 celery.task_always_eager = false
283
288
284 ####################################
289 ####################################
285 ### BEAKER CACHE ####
290 ### BEAKER CACHE ####
286 ####################################
291 ####################################
287 # default cache dir for templates. Putting this into a ramdisk
292 # default cache dir for templates. Putting this into a ramdisk
288 ## can boost performance, eg. %(here)s/data_ramdisk
293 ## can boost performance, eg. %(here)s/data_ramdisk
289 cache_dir = %(here)s/data
294 cache_dir = %(here)s/data
290
295
291 ## locking and default file storage for Beaker. Putting this into a ramdisk
296 ## locking and default file storage for Beaker. Putting this into a ramdisk
292 ## can boost performance, eg. %(here)s/data_ramdisk/cache/beaker_data
297 ## can boost performance, eg. %(here)s/data_ramdisk/cache/beaker_data
293 beaker.cache.data_dir = %(here)s/data/cache/beaker_data
298 beaker.cache.data_dir = %(here)s/data/cache/beaker_data
294 beaker.cache.lock_dir = %(here)s/data/cache/beaker_lock
299 beaker.cache.lock_dir = %(here)s/data/cache/beaker_lock
295
300
296 beaker.cache.regions = super_short_term, short_term, long_term, sql_cache_short, auth_plugins, repo_cache_long
301 beaker.cache.regions = super_short_term, short_term, long_term, sql_cache_short, auth_plugins, repo_cache_long
297
302
298 beaker.cache.super_short_term.type = memory
303 beaker.cache.super_short_term.type = memory
299 beaker.cache.super_short_term.expire = 10
304 beaker.cache.super_short_term.expire = 10
300 beaker.cache.super_short_term.key_length = 256
305 beaker.cache.super_short_term.key_length = 256
301
306
302 beaker.cache.short_term.type = memory
307 beaker.cache.short_term.type = memory
303 beaker.cache.short_term.expire = 60
308 beaker.cache.short_term.expire = 60
304 beaker.cache.short_term.key_length = 256
309 beaker.cache.short_term.key_length = 256
305
310
306 beaker.cache.long_term.type = memory
311 beaker.cache.long_term.type = memory
307 beaker.cache.long_term.expire = 36000
312 beaker.cache.long_term.expire = 36000
308 beaker.cache.long_term.key_length = 256
313 beaker.cache.long_term.key_length = 256
309
314
310 beaker.cache.sql_cache_short.type = memory
315 beaker.cache.sql_cache_short.type = memory
311 beaker.cache.sql_cache_short.expire = 10
316 beaker.cache.sql_cache_short.expire = 10
312 beaker.cache.sql_cache_short.key_length = 256
317 beaker.cache.sql_cache_short.key_length = 256
313
318
314 ## default is memory cache, configure only if required
319 ## default is memory cache, configure only if required
315 ## using multi-node or multi-worker setup
320 ## using multi-node or multi-worker setup
316 #beaker.cache.auth_plugins.type = ext:database
321 #beaker.cache.auth_plugins.type = ext:database
317 #beaker.cache.auth_plugins.lock_dir = %(here)s/data/cache/auth_plugin_lock
322 #beaker.cache.auth_plugins.lock_dir = %(here)s/data/cache/auth_plugin_lock
318 #beaker.cache.auth_plugins.url = postgresql://postgres:secret@localhost/rhodecode
323 #beaker.cache.auth_plugins.url = postgresql://postgres:secret@localhost/rhodecode
319 #beaker.cache.auth_plugins.url = mysql://root:secret@127.0.0.1/rhodecode
324 #beaker.cache.auth_plugins.url = mysql://root:secret@127.0.0.1/rhodecode
320 #beaker.cache.auth_plugins.sa.pool_recycle = 3600
325 #beaker.cache.auth_plugins.sa.pool_recycle = 3600
321 #beaker.cache.auth_plugins.sa.pool_size = 10
326 #beaker.cache.auth_plugins.sa.pool_size = 10
322 #beaker.cache.auth_plugins.sa.max_overflow = 0
327 #beaker.cache.auth_plugins.sa.max_overflow = 0
323
328
324 beaker.cache.repo_cache_long.type = memorylru_base
329 beaker.cache.repo_cache_long.type = memorylru_base
325 beaker.cache.repo_cache_long.max_items = 4096
330 beaker.cache.repo_cache_long.max_items = 4096
326 beaker.cache.repo_cache_long.expire = 2592000
331 beaker.cache.repo_cache_long.expire = 2592000
327
332
328 ## default is memorylru_base cache, configure only if required
333 ## default is memorylru_base cache, configure only if required
329 ## using multi-node or multi-worker setup
334 ## using multi-node or multi-worker setup
330 #beaker.cache.repo_cache_long.type = ext:memcached
335 #beaker.cache.repo_cache_long.type = ext:memcached
331 #beaker.cache.repo_cache_long.url = localhost:11211
336 #beaker.cache.repo_cache_long.url = localhost:11211
332 #beaker.cache.repo_cache_long.expire = 1209600
337 #beaker.cache.repo_cache_long.expire = 1209600
333 #beaker.cache.repo_cache_long.key_length = 256
338 #beaker.cache.repo_cache_long.key_length = 256
334
339
335 ####################################
340 ####################################
336 ### BEAKER SESSION ####
341 ### BEAKER SESSION ####
337 ####################################
342 ####################################
338
343
339 ## .session.type is type of storage options for the session, current allowed
344 ## .session.type is type of storage options for the session, current allowed
340 ## types are file, ext:memcached, ext:database, and memory (default).
345 ## types are file, ext:memcached, ext:database, and memory (default).
341 beaker.session.type = file
346 beaker.session.type = file
342 beaker.session.data_dir = %(here)s/data/sessions/data
347 beaker.session.data_dir = %(here)s/data/sessions/data
343
348
344 ## db based session, fast, and allows easy management over logged in users
349 ## db based session, fast, and allows easy management over logged in users
345 #beaker.session.type = ext:database
350 #beaker.session.type = ext:database
346 #beaker.session.table_name = db_session
351 #beaker.session.table_name = db_session
347 #beaker.session.sa.url = postgresql://postgres:secret@localhost/rhodecode
352 #beaker.session.sa.url = postgresql://postgres:secret@localhost/rhodecode
348 #beaker.session.sa.url = mysql://root:secret@127.0.0.1/rhodecode
353 #beaker.session.sa.url = mysql://root:secret@127.0.0.1/rhodecode
349 #beaker.session.sa.pool_recycle = 3600
354 #beaker.session.sa.pool_recycle = 3600
350 #beaker.session.sa.echo = false
355 #beaker.session.sa.echo = false
351
356
352 beaker.session.key = rhodecode
357 beaker.session.key = rhodecode
353 beaker.session.secret = production-rc-uytcxaz
358 beaker.session.secret = production-rc-uytcxaz
354 beaker.session.lock_dir = %(here)s/data/sessions/lock
359 beaker.session.lock_dir = %(here)s/data/sessions/lock
355
360
356 ## Secure encrypted cookie. Requires AES and AES python libraries
361 ## Secure encrypted cookie. Requires AES and AES python libraries
357 ## you must disable beaker.session.secret to use this
362 ## you must disable beaker.session.secret to use this
358 #beaker.session.encrypt_key = key_for_encryption
363 #beaker.session.encrypt_key = key_for_encryption
359 #beaker.session.validate_key = validation_key
364 #beaker.session.validate_key = validation_key
360
365
361 ## sets session as invalid(also logging out user) if it haven not been
366 ## sets session as invalid(also logging out user) if it haven not been
362 ## accessed for given amount of time in seconds
367 ## accessed for given amount of time in seconds
363 beaker.session.timeout = 2592000
368 beaker.session.timeout = 2592000
364 beaker.session.httponly = true
369 beaker.session.httponly = true
365 ## Path to use for the cookie. Set to prefix if you use prefix middleware
370 ## Path to use for the cookie. Set to prefix if you use prefix middleware
366 #beaker.session.cookie_path = /custom_prefix
371 #beaker.session.cookie_path = /custom_prefix
367
372
368 ## uncomment for https secure cookie
373 ## uncomment for https secure cookie
369 beaker.session.secure = false
374 beaker.session.secure = false
370
375
371 ## auto save the session to not to use .save()
376 ## auto save the session to not to use .save()
372 beaker.session.auto = false
377 beaker.session.auto = false
373
378
374 ## default cookie expiration time in seconds, set to `true` to set expire
379 ## default cookie expiration time in seconds, set to `true` to set expire
375 ## at browser close
380 ## at browser close
376 #beaker.session.cookie_expires = 3600
381 #beaker.session.cookie_expires = 3600
377
382
378 ###################################
383 ###################################
379 ## SEARCH INDEXING CONFIGURATION ##
384 ## SEARCH INDEXING CONFIGURATION ##
380 ###################################
385 ###################################
381 ## Full text search indexer is available in rhodecode-tools under
386 ## Full text search indexer is available in rhodecode-tools under
382 ## `rhodecode-tools index` command
387 ## `rhodecode-tools index` command
383
388
384 ## WHOOSH Backend, doesn't require additional services to run
389 ## WHOOSH Backend, doesn't require additional services to run
385 ## it works good with few dozen repos
390 ## it works good with few dozen repos
386 search.module = rhodecode.lib.index.whoosh
391 search.module = rhodecode.lib.index.whoosh
387 search.location = %(here)s/data/index
392 search.location = %(here)s/data/index
388
393
389 ########################################
394 ########################################
390 ### CHANNELSTREAM CONFIG ####
395 ### CHANNELSTREAM CONFIG ####
391 ########################################
396 ########################################
392 ## channelstream enables persistent connections and live notification
397 ## channelstream enables persistent connections and live notification
393 ## in the system. It's also used by the chat system
398 ## in the system. It's also used by the chat system
394 channelstream.enabled = false
399 channelstream.enabled = false
395
400
396 ## server address for channelstream server on the backend
401 ## server address for channelstream server on the backend
397 channelstream.server = 127.0.0.1:9800
402 channelstream.server = 127.0.0.1:9800
398
403
399 ## location of the channelstream server from outside world
404 ## location of the channelstream server from outside world
400 ## use ws:// for http or wss:// for https. This address needs to be handled
405 ## use ws:// for http or wss:// for https. This address needs to be handled
401 ## by external HTTP server such as Nginx or Apache
406 ## by external HTTP server such as Nginx or Apache
402 ## see nginx/apache configuration examples in our docs
407 ## see nginx/apache configuration examples in our docs
403 channelstream.ws_url = ws://rhodecode.yourserver.com/_channelstream
408 channelstream.ws_url = ws://rhodecode.yourserver.com/_channelstream
404 channelstream.secret = secret
409 channelstream.secret = secret
405 channelstream.history.location = %(here)s/channelstream_history
410 channelstream.history.location = %(here)s/channelstream_history
406
411
407 ## Internal application path that Javascript uses to connect into.
412 ## Internal application path that Javascript uses to connect into.
408 ## If you use proxy-prefix the prefix should be added before /_channelstream
413 ## If you use proxy-prefix the prefix should be added before /_channelstream
409 channelstream.proxy_path = /_channelstream
414 channelstream.proxy_path = /_channelstream
410
415
411
416
412 ###################################
417 ###################################
413 ## APPENLIGHT CONFIG ##
418 ## APPENLIGHT CONFIG ##
414 ###################################
419 ###################################
415
420
416 ## Appenlight is tailored to work with RhodeCode, see
421 ## Appenlight is tailored to work with RhodeCode, see
417 ## http://appenlight.com for details how to obtain an account
422 ## http://appenlight.com for details how to obtain an account
418
423
419 ## appenlight integration enabled
424 ## appenlight integration enabled
420 appenlight = false
425 appenlight = false
421
426
422 appenlight.server_url = https://api.appenlight.com
427 appenlight.server_url = https://api.appenlight.com
423 appenlight.api_key = YOUR_API_KEY
428 appenlight.api_key = YOUR_API_KEY
424 #appenlight.transport_config = https://api.appenlight.com?threaded=1&timeout=5
429 #appenlight.transport_config = https://api.appenlight.com?threaded=1&timeout=5
425
430
426 # used for JS client
431 # used for JS client
427 appenlight.api_public_key = YOUR_API_PUBLIC_KEY
432 appenlight.api_public_key = YOUR_API_PUBLIC_KEY
428
433
429 ## TWEAK AMOUNT OF INFO SENT HERE
434 ## TWEAK AMOUNT OF INFO SENT HERE
430
435
431 ## enables 404 error logging (default False)
436 ## enables 404 error logging (default False)
432 appenlight.report_404 = false
437 appenlight.report_404 = false
433
438
434 ## time in seconds after request is considered being slow (default 1)
439 ## time in seconds after request is considered being slow (default 1)
435 appenlight.slow_request_time = 1
440 appenlight.slow_request_time = 1
436
441
437 ## record slow requests in application
442 ## record slow requests in application
438 ## (needs to be enabled for slow datastore recording and time tracking)
443 ## (needs to be enabled for slow datastore recording and time tracking)
439 appenlight.slow_requests = true
444 appenlight.slow_requests = true
440
445
441 ## enable hooking to application loggers
446 ## enable hooking to application loggers
442 appenlight.logging = true
447 appenlight.logging = true
443
448
444 ## minimum log level for log capture
449 ## minimum log level for log capture
445 appenlight.logging.level = WARNING
450 appenlight.logging.level = WARNING
446
451
447 ## send logs only from erroneous/slow requests
452 ## send logs only from erroneous/slow requests
448 ## (saves API quota for intensive logging)
453 ## (saves API quota for intensive logging)
449 appenlight.logging_on_error = false
454 appenlight.logging_on_error = false
450
455
451 ## list of additonal keywords that should be grabbed from environ object
456 ## list of additonal keywords that should be grabbed from environ object
452 ## can be string with comma separated list of words in lowercase
457 ## can be string with comma separated list of words in lowercase
453 ## (by default client will always send following info:
458 ## (by default client will always send following info:
454 ## 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that
459 ## 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that
455 ## start with HTTP* this list be extended with additional keywords here
460 ## start with HTTP* this list be extended with additional keywords here
456 appenlight.environ_keys_whitelist =
461 appenlight.environ_keys_whitelist =
457
462
458 ## list of keywords that should be blanked from request object
463 ## list of keywords that should be blanked from request object
459 ## can be string with comma separated list of words in lowercase
464 ## can be string with comma separated list of words in lowercase
460 ## (by default client will always blank keys that contain following words
465 ## (by default client will always blank keys that contain following words
461 ## 'password', 'passwd', 'pwd', 'auth_tkt', 'secret', 'csrf'
466 ## 'password', 'passwd', 'pwd', 'auth_tkt', 'secret', 'csrf'
462 ## this list be extended with additional keywords set here
467 ## this list be extended with additional keywords set here
463 appenlight.request_keys_blacklist =
468 appenlight.request_keys_blacklist =
464
469
465 ## list of namespaces that should be ignores when gathering log entries
470 ## list of namespaces that should be ignores when gathering log entries
466 ## can be string with comma separated list of namespaces
471 ## can be string with comma separated list of namespaces
467 ## (by default the client ignores own entries: appenlight_client.client)
472 ## (by default the client ignores own entries: appenlight_client.client)
468 appenlight.log_namespace_blacklist =
473 appenlight.log_namespace_blacklist =
469
474
470
475
471 ################################################################################
476 ################################################################################
472 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
477 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
473 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
478 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
474 ## execute malicious code after an exception is raised. ##
479 ## execute malicious code after an exception is raised. ##
475 ################################################################################
480 ################################################################################
476 set debug = false
481 set debug = false
477
482
478
483
479 ###########################################
484 ###########################################
480 ### MAIN RHODECODE DATABASE CONFIG ###
485 ### MAIN RHODECODE DATABASE CONFIG ###
481 ###########################################
486 ###########################################
482 #sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db?timeout=30
487 #sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db?timeout=30
483 #sqlalchemy.db1.url = postgresql://postgres:qweqwe@localhost/rhodecode
488 #sqlalchemy.db1.url = postgresql://postgres:qweqwe@localhost/rhodecode
484 #sqlalchemy.db1.url = mysql://root:qweqwe@localhost/rhodecode
489 #sqlalchemy.db1.url = mysql://root:qweqwe@localhost/rhodecode
485 sqlalchemy.db1.url = postgresql://postgres:qweqwe@localhost/rhodecode
490 sqlalchemy.db1.url = postgresql://postgres:qweqwe@localhost/rhodecode
486
491
487 # see sqlalchemy docs for other advanced settings
492 # see sqlalchemy docs for other advanced settings
488
493
489 ## print the sql statements to output
494 ## print the sql statements to output
490 sqlalchemy.db1.echo = false
495 sqlalchemy.db1.echo = false
491 ## recycle the connections after this amount of seconds
496 ## recycle the connections after this amount of seconds
492 sqlalchemy.db1.pool_recycle = 3600
497 sqlalchemy.db1.pool_recycle = 3600
493 sqlalchemy.db1.convert_unicode = true
498 sqlalchemy.db1.convert_unicode = true
494
499
495 ## the number of connections to keep open inside the connection pool.
500 ## the number of connections to keep open inside the connection pool.
496 ## 0 indicates no limit
501 ## 0 indicates no limit
497 #sqlalchemy.db1.pool_size = 5
502 #sqlalchemy.db1.pool_size = 5
498
503
499 ## the number of connections to allow in connection pool "overflow", that is
504 ## the number of connections to allow in connection pool "overflow", that is
500 ## connections that can be opened above and beyond the pool_size setting,
505 ## connections that can be opened above and beyond the pool_size setting,
501 ## which defaults to five.
506 ## which defaults to five.
502 #sqlalchemy.db1.max_overflow = 10
507 #sqlalchemy.db1.max_overflow = 10
503
508
504
509
505 ##################
510 ##################
506 ### VCS CONFIG ###
511 ### VCS CONFIG ###
507 ##################
512 ##################
508 vcs.server.enable = true
513 vcs.server.enable = true
509 vcs.server = localhost:9900
514 vcs.server = localhost:9900
510
515
511 ## Web server connectivity protocol, responsible for web based VCS operatations
516 ## Web server connectivity protocol, responsible for web based VCS operatations
512 ## Available protocols are:
517 ## Available protocols are:
513 ## `http` - use http-rpc backend (default)
518 ## `http` - use http-rpc backend (default)
514 vcs.server.protocol = http
519 vcs.server.protocol = http
515
520
516 ## Push/Pull operations protocol, available options are:
521 ## Push/Pull operations protocol, available options are:
517 ## `http` - use http-rpc backend (default)
522 ## `http` - use http-rpc backend (default)
518 ##
523 ##
519 vcs.scm_app_implementation = http
524 vcs.scm_app_implementation = http
520
525
521 ## Push/Pull operations hooks protocol, available options are:
526 ## Push/Pull operations hooks protocol, available options are:
522 ## `http` - use http-rpc backend (default)
527 ## `http` - use http-rpc backend (default)
523 vcs.hooks.protocol = http
528 vcs.hooks.protocol = http
524
529
525 vcs.server.log_level = info
530 vcs.server.log_level = info
526 ## Start VCSServer with this instance as a subprocess, usefull for development
531 ## Start VCSServer with this instance as a subprocess, usefull for development
527 vcs.start_server = false
532 vcs.start_server = false
528
533
529 ## List of enabled VCS backends, available options are:
534 ## List of enabled VCS backends, available options are:
530 ## `hg` - mercurial
535 ## `hg` - mercurial
531 ## `git` - git
536 ## `git` - git
532 ## `svn` - subversion
537 ## `svn` - subversion
533 vcs.backends = hg, git, svn
538 vcs.backends = hg, git, svn
534
539
535 vcs.connection_timeout = 3600
540 vcs.connection_timeout = 3600
536 ## Compatibility version when creating SVN repositories. Defaults to newest version when commented out.
541 ## Compatibility version when creating SVN repositories. Defaults to newest version when commented out.
537 ## Available options are: pre-1.4-compatible, pre-1.5-compatible, pre-1.6-compatible, pre-1.8-compatible, pre-1.9-compatible
542 ## Available options are: pre-1.4-compatible, pre-1.5-compatible, pre-1.6-compatible, pre-1.8-compatible, pre-1.9-compatible
538 #vcs.svn.compatible_version = pre-1.8-compatible
543 #vcs.svn.compatible_version = pre-1.8-compatible
539
544
540
545
541 ############################################################
546 ############################################################
542 ### Subversion proxy support (mod_dav_svn) ###
547 ### Subversion proxy support (mod_dav_svn) ###
543 ### Maps RhodeCode repo groups into SVN paths for Apache ###
548 ### Maps RhodeCode repo groups into SVN paths for Apache ###
544 ############################################################
549 ############################################################
545 ## Enable or disable the config file generation.
550 ## Enable or disable the config file generation.
546 svn.proxy.generate_config = false
551 svn.proxy.generate_config = false
547 ## Generate config file with `SVNListParentPath` set to `On`.
552 ## Generate config file with `SVNListParentPath` set to `On`.
548 svn.proxy.list_parent_path = true
553 svn.proxy.list_parent_path = true
549 ## Set location and file name of generated config file.
554 ## Set location and file name of generated config file.
550 svn.proxy.config_file_path = %(here)s/mod_dav_svn.conf
555 svn.proxy.config_file_path = %(here)s/mod_dav_svn.conf
551 ## alternative mod_dav config template. This needs to be a mako template
556 ## alternative mod_dav config template. This needs to be a mako template
552 #svn.proxy.config_template = ~/.rccontrol/enterprise-1/custom_svn_conf.mako
557 #svn.proxy.config_template = ~/.rccontrol/enterprise-1/custom_svn_conf.mako
553 ## Used as a prefix to the `Location` block in the generated config file.
558 ## Used as a prefix to the `Location` block in the generated config file.
554 ## In most cases it should be set to `/`.
559 ## In most cases it should be set to `/`.
555 svn.proxy.location_root = /
560 svn.proxy.location_root = /
556 ## Command to reload the mod dav svn configuration on change.
561 ## Command to reload the mod dav svn configuration on change.
557 ## Example: `/etc/init.d/apache2 reload`
562 ## Example: `/etc/init.d/apache2 reload`
558 #svn.proxy.reload_cmd = /etc/init.d/apache2 reload
563 #svn.proxy.reload_cmd = /etc/init.d/apache2 reload
559 ## If the timeout expires before the reload command finishes, the command will
564 ## 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.
565 ## be killed. Setting it to zero means no timeout. Defaults to 10 seconds.
561 #svn.proxy.reload_timeout = 10
566 #svn.proxy.reload_timeout = 10
562
567
563 ############################################################
568 ############################################################
564 ### SSH Support Settings ###
569 ### SSH Support Settings ###
565 ############################################################
570 ############################################################
566
571
567 ## Defines if a custom authorized_keys file should be created and written on
572 ## Defines if a custom authorized_keys file should be created and written on
568 ## any change user ssh keys. Setting this to false also disables posibility
573 ## any change user ssh keys. Setting this to false also disables posibility
569 ## of adding SSH keys by users from web interface. Super admins can still
574 ## of adding SSH keys by users from web interface. Super admins can still
570 ## manage SSH Keys.
575 ## manage SSH Keys.
571 ssh.generate_authorized_keyfile = false
576 ssh.generate_authorized_keyfile = false
572
577
573 ## Options for ssh, default is `no-pty,no-port-forwarding,no-X11-forwarding,no-agent-forwarding`
578 ## Options for ssh, default is `no-pty,no-port-forwarding,no-X11-forwarding,no-agent-forwarding`
574 # ssh.authorized_keys_ssh_opts =
579 # ssh.authorized_keys_ssh_opts =
575
580
576 ## Path to the authrozied_keys file where the generate entries are placed.
581 ## Path to the authrozied_keys file where the generate entries are placed.
577 ## It is possible to have multiple key files specified in `sshd_config` e.g.
582 ## It is possible to have multiple key files specified in `sshd_config` e.g.
578 ## AuthorizedKeysFile %h/.ssh/authorized_keys %h/.ssh/authorized_keys_rhodecode
583 ## AuthorizedKeysFile %h/.ssh/authorized_keys %h/.ssh/authorized_keys_rhodecode
579 ssh.authorized_keys_file_path = ~/.ssh/authorized_keys_rhodecode
584 ssh.authorized_keys_file_path = ~/.ssh/authorized_keys_rhodecode
580
585
581 ## Command to execute the SSH wrapper. The binary is available in the
586 ## Command to execute the SSH wrapper. The binary is available in the
582 ## rhodecode installation directory.
587 ## rhodecode installation directory.
583 ## e.g ~/.rccontrol/community-1/profile/bin/rc-ssh-wrapper
588 ## e.g ~/.rccontrol/community-1/profile/bin/rc-ssh-wrapper
584 ssh.wrapper_cmd = ~/.rccontrol/community-1/rc-ssh-wrapper
589 ssh.wrapper_cmd = ~/.rccontrol/community-1/rc-ssh-wrapper
585
590
586 ## Allow shell when executing the ssh-wrapper command
591 ## Allow shell when executing the ssh-wrapper command
587 ssh.wrapper_cmd_allow_shell = false
592 ssh.wrapper_cmd_allow_shell = false
588
593
589 ## Enables logging, and detailed output send back to the client during SSH
594 ## Enables logging, and detailed output send back to the client during SSH
590 ## operations. Usefull for debugging, shouldn't be used in production.
595 ## operations. Usefull for debugging, shouldn't be used in production.
591 ssh.enable_debug_logging = false
596 ssh.enable_debug_logging = false
592
597
593 ## Paths to binary executable, by default they are the names, but we can
598 ## Paths to binary executable, by default they are the names, but we can
594 ## override them if we want to use a custom one
599 ## override them if we want to use a custom one
595 ssh.executable.hg = ~/.rccontrol/vcsserver-1/profile/bin/hg
600 ssh.executable.hg = ~/.rccontrol/vcsserver-1/profile/bin/hg
596 ssh.executable.git = ~/.rccontrol/vcsserver-1/profile/bin/git
601 ssh.executable.git = ~/.rccontrol/vcsserver-1/profile/bin/git
597 ssh.executable.svn = ~/.rccontrol/vcsserver-1/profile/bin/svnserve
602 ssh.executable.svn = ~/.rccontrol/vcsserver-1/profile/bin/svnserve
598
603
599
604
600 ## Dummy marker to add new entries after.
605 ## Dummy marker to add new entries after.
601 ## Add any custom entries below. Please don't remove.
606 ## Add any custom entries below. Please don't remove.
602 custom.conf = 1
607 custom.conf = 1
603
608
604
609
605 ################################
610 ################################
606 ### LOGGING CONFIGURATION ####
611 ### LOGGING CONFIGURATION ####
607 ################################
612 ################################
608 [loggers]
613 [loggers]
609 keys = root, sqlalchemy, beaker, rhodecode, ssh_wrapper, celery
614 keys = root, sqlalchemy, beaker, rhodecode, ssh_wrapper, celery
610
615
611 [handlers]
616 [handlers]
612 keys = console, console_sql
617 keys = console, console_sql
613
618
614 [formatters]
619 [formatters]
615 keys = generic, color_formatter, color_formatter_sql
620 keys = generic, color_formatter, color_formatter_sql
616
621
617 #############
622 #############
618 ## LOGGERS ##
623 ## LOGGERS ##
619 #############
624 #############
620 [logger_root]
625 [logger_root]
621 level = NOTSET
626 level = NOTSET
622 handlers = console
627 handlers = console
623
628
624 [logger_sqlalchemy]
629 [logger_sqlalchemy]
625 level = INFO
630 level = INFO
626 handlers = console_sql
631 handlers = console_sql
627 qualname = sqlalchemy.engine
632 qualname = sqlalchemy.engine
628 propagate = 0
633 propagate = 0
629
634
630 [logger_beaker]
635 [logger_beaker]
631 level = DEBUG
636 level = DEBUG
632 handlers =
637 handlers =
633 qualname = beaker.container
638 qualname = beaker.container
634 propagate = 1
639 propagate = 1
635
640
636 [logger_rhodecode]
641 [logger_rhodecode]
637 level = DEBUG
642 level = DEBUG
638 handlers =
643 handlers =
639 qualname = rhodecode
644 qualname = rhodecode
640 propagate = 1
645 propagate = 1
641
646
642 [logger_ssh_wrapper]
647 [logger_ssh_wrapper]
643 level = DEBUG
648 level = DEBUG
644 handlers =
649 handlers =
645 qualname = ssh_wrapper
650 qualname = ssh_wrapper
646 propagate = 1
651 propagate = 1
647
652
648 [logger_celery]
653 [logger_celery]
649 level = DEBUG
654 level = DEBUG
650 handlers =
655 handlers =
651 qualname = celery
656 qualname = celery
652
657
653
658
654 ##############
659 ##############
655 ## HANDLERS ##
660 ## HANDLERS ##
656 ##############
661 ##############
657
662
658 [handler_console]
663 [handler_console]
659 class = StreamHandler
664 class = StreamHandler
660 args = (sys.stderr, )
665 args = (sys.stderr, )
661 level = INFO
666 level = INFO
662 formatter = generic
667 formatter = generic
663
668
664 [handler_console_sql]
669 [handler_console_sql]
665 class = StreamHandler
670 class = StreamHandler
666 args = (sys.stderr, )
671 args = (sys.stderr, )
667 level = WARN
672 level = WARN
668 formatter = generic
673 formatter = generic
669
674
670 ################
675 ################
671 ## FORMATTERS ##
676 ## FORMATTERS ##
672 ################
677 ################
673
678
674 [formatter_generic]
679 [formatter_generic]
675 class = rhodecode.lib.logging_formatter.ExceptionAwareFormatter
680 class = rhodecode.lib.logging_formatter.ExceptionAwareFormatter
676 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
681 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
677 datefmt = %Y-%m-%d %H:%M:%S
682 datefmt = %Y-%m-%d %H:%M:%S
678
683
679 [formatter_color_formatter]
684 [formatter_color_formatter]
680 class = rhodecode.lib.logging_formatter.ColorFormatter
685 class = rhodecode.lib.logging_formatter.ColorFormatter
681 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
686 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
682 datefmt = %Y-%m-%d %H:%M:%S
687 datefmt = %Y-%m-%d %H:%M:%S
683
688
684 [formatter_color_formatter_sql]
689 [formatter_color_formatter_sql]
685 class = rhodecode.lib.logging_formatter.ColorFormatterSql
690 class = rhodecode.lib.logging_formatter.ColorFormatterSql
686 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
687 datefmt = %Y-%m-%d %H:%M:%S
692 datefmt = %Y-%m-%d %H:%M:%S
General Comments 0
You need to be logged in to leave comments. Login now