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