##// END OF EJS Templates
configs: updated configs for VCSServer connectivty options
marcink -
r113:8a2ef1e2 default
parent child Browse files
Show More
@@ -1,592 +1,602 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
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.
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
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
205 ## authentication settings. Then you can enable e.g. the internal rhodecode auth
206 ## module to log in again and fix the settings.
206 ## module to log in again and fix the settings.
207 ##
207 ##
208 ## Available builtin plugin IDs (hash is part of the ID):
208 ## Available builtin plugin IDs (hash is part of the ID):
209 ## egg:rhodecode-enterprise-ce#rhodecode
209 ## egg:rhodecode-enterprise-ce#rhodecode
210 ## egg:rhodecode-enterprise-ce#pam
210 ## egg:rhodecode-enterprise-ce#pam
211 ## egg:rhodecode-enterprise-ce#ldap
211 ## egg:rhodecode-enterprise-ce#ldap
212 ## egg:rhodecode-enterprise-ce#jasig_cas
212 ## egg:rhodecode-enterprise-ce#jasig_cas
213 ## egg:rhodecode-enterprise-ce#headers
213 ## egg:rhodecode-enterprise-ce#headers
214 ## egg:rhodecode-enterprise-ce#crowd
214 ## egg:rhodecode-enterprise-ce#crowd
215 #rhodecode.auth_plugin_fallback = egg:rhodecode-enterprise-ce#rhodecode
215 #rhodecode.auth_plugin_fallback = egg:rhodecode-enterprise-ce#rhodecode
216
216
217 ## alternative return HTTP header for failed authentication. Default HTTP
217 ## alternative return HTTP header for failed authentication. Default HTTP
218 ## response is 401 HTTPUnauthorized. Currently HG clients have troubles with
218 ## response is 401 HTTPUnauthorized. Currently HG clients have troubles with
219 ## handling that causing a series of failed authentication calls.
219 ## handling that causing a series of failed authentication calls.
220 ## 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
221 ## This will be served instead of default 401 on bad authnetication
221 ## This will be served instead of default 401 on bad authnetication
222 auth_ret_code =
222 auth_ret_code =
223
223
224 ## 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
225 ## ret_code directly, use 401 initially (Which triggers credentials prompt)
225 ## ret_code directly, use 401 initially (Which triggers credentials prompt)
226 ## and then serve auth_ret_code to clients
226 ## and then serve auth_ret_code to clients
227 auth_ret_code_detection = false
227 auth_ret_code_detection = false
228
228
229 ## 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
230 ## codes don't break the transactions while 4XX codes do
230 ## codes don't break the transactions while 4XX codes do
231 lock_ret_code = 423
231 lock_ret_code = 423
232
232
233 ## allows to change the repository location in settings page
233 ## allows to change the repository location in settings page
234 allow_repo_location_change = true
234 allow_repo_location_change = true
235
235
236 ## allows to setup custom hooks in settings page
236 ## allows to setup custom hooks in settings page
237 allow_custom_hooks_settings = true
237 allow_custom_hooks_settings = true
238
238
239 ## generated license token, goto license page in RhodeCode settings to obtain
239 ## generated license token, goto license page in RhodeCode settings to obtain
240 ## new token
240 ## new token
241 license_token =
241 license_token =
242
242
243 ## supervisor connection uri, for managing supervisor and logs.
243 ## supervisor connection uri, for managing supervisor and logs.
244 supervisor.uri =
244 supervisor.uri =
245 ## 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
246 supervisor.group_id = dev
246 supervisor.group_id = dev
247
247
248 ## Display extended labs settings
248 ## Display extended labs settings
249 labs_settings_active = true
249 labs_settings_active = true
250
250
251 ####################################
251 ####################################
252 ### CELERY CONFIG ####
252 ### CELERY CONFIG ####
253 ####################################
253 ####################################
254 use_celery = false
254 use_celery = false
255 broker.host = localhost
255 broker.host = localhost
256 broker.vhost = rabbitmqhost
256 broker.vhost = rabbitmqhost
257 broker.port = 5672
257 broker.port = 5672
258 broker.user = rabbitmq
258 broker.user = rabbitmq
259 broker.password = qweqwe
259 broker.password = qweqwe
260
260
261 celery.imports = rhodecode.lib.celerylib.tasks
261 celery.imports = rhodecode.lib.celerylib.tasks
262
262
263 celery.result.backend = amqp
263 celery.result.backend = amqp
264 celery.result.dburi = amqp://
264 celery.result.dburi = amqp://
265 celery.result.serialier = json
265 celery.result.serialier = json
266
266
267 #celery.send.task.error.emails = true
267 #celery.send.task.error.emails = true
268 #celery.amqp.task.result.expires = 18000
268 #celery.amqp.task.result.expires = 18000
269
269
270 celeryd.concurrency = 2
270 celeryd.concurrency = 2
271 #celeryd.log.file = celeryd.log
271 #celeryd.log.file = celeryd.log
272 celeryd.log.level = debug
272 celeryd.log.level = debug
273 celeryd.max.tasks.per.child = 1
273 celeryd.max.tasks.per.child = 1
274
274
275 ## 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.
276 celery.always.eager = false
276 celery.always.eager = false
277
277
278 ####################################
278 ####################################
279 ### BEAKER CACHE ####
279 ### BEAKER CACHE ####
280 ####################################
280 ####################################
281 # default cache dir for templates. Putting this into a ramdisk
281 # default cache dir for templates. Putting this into a ramdisk
282 ## can boost performance, eg. %(here)s/data_ramdisk
282 ## can boost performance, eg. %(here)s/data_ramdisk
283 cache_dir = %(here)s/data
283 cache_dir = %(here)s/data
284
284
285 ## 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
286 ## can boost performance, eg. %(here)s/data_ramdisk/cache/beaker_data
286 ## can boost performance, eg. %(here)s/data_ramdisk/cache/beaker_data
287 beaker.cache.data_dir = %(here)s/data/cache/beaker_data
287 beaker.cache.data_dir = %(here)s/data/cache/beaker_data
288 beaker.cache.lock_dir = %(here)s/data/cache/beaker_lock
288 beaker.cache.lock_dir = %(here)s/data/cache/beaker_lock
289
289
290 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
291
291
292 beaker.cache.super_short_term.type = memory
292 beaker.cache.super_short_term.type = memory
293 beaker.cache.super_short_term.expire = 10
293 beaker.cache.super_short_term.expire = 10
294 beaker.cache.super_short_term.key_length = 256
294 beaker.cache.super_short_term.key_length = 256
295
295
296 beaker.cache.short_term.type = memory
296 beaker.cache.short_term.type = memory
297 beaker.cache.short_term.expire = 60
297 beaker.cache.short_term.expire = 60
298 beaker.cache.short_term.key_length = 256
298 beaker.cache.short_term.key_length = 256
299
299
300 beaker.cache.long_term.type = memory
300 beaker.cache.long_term.type = memory
301 beaker.cache.long_term.expire = 36000
301 beaker.cache.long_term.expire = 36000
302 beaker.cache.long_term.key_length = 256
302 beaker.cache.long_term.key_length = 256
303
303
304 beaker.cache.sql_cache_short.type = memory
304 beaker.cache.sql_cache_short.type = memory
305 beaker.cache.sql_cache_short.expire = 10
305 beaker.cache.sql_cache_short.expire = 10
306 beaker.cache.sql_cache_short.key_length = 256
306 beaker.cache.sql_cache_short.key_length = 256
307
307
308 # default is memory cache, configure only if required
308 # default is memory cache, configure only if required
309 # using multi-node or multi-worker setup
309 # using multi-node or multi-worker setup
310 #beaker.cache.auth_plugins.type = ext:database
310 #beaker.cache.auth_plugins.type = ext:database
311 #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
312 #beaker.cache.auth_plugins.url = postgresql://postgres:secret@localhost/rhodecode
312 #beaker.cache.auth_plugins.url = postgresql://postgres:secret@localhost/rhodecode
313 #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
314 #beaker.cache.auth_plugins.sa.pool_recycle = 3600
314 #beaker.cache.auth_plugins.sa.pool_recycle = 3600
315 #beaker.cache.auth_plugins.sa.pool_size = 10
315 #beaker.cache.auth_plugins.sa.pool_size = 10
316 #beaker.cache.auth_plugins.sa.max_overflow = 0
316 #beaker.cache.auth_plugins.sa.max_overflow = 0
317
317
318 beaker.cache.repo_cache_long.type = memorylru_base
318 beaker.cache.repo_cache_long.type = memorylru_base
319 beaker.cache.repo_cache_long.max_items = 4096
319 beaker.cache.repo_cache_long.max_items = 4096
320 beaker.cache.repo_cache_long.expire = 2592000
320 beaker.cache.repo_cache_long.expire = 2592000
321
321
322 # default is memorylru_base cache, configure only if required
322 # default is memorylru_base cache, configure only if required
323 # using multi-node or multi-worker setup
323 # using multi-node or multi-worker setup
324 #beaker.cache.repo_cache_long.type = ext:memcached
324 #beaker.cache.repo_cache_long.type = ext:memcached
325 #beaker.cache.repo_cache_long.url = localhost:11211
325 #beaker.cache.repo_cache_long.url = localhost:11211
326 #beaker.cache.repo_cache_long.expire = 1209600
326 #beaker.cache.repo_cache_long.expire = 1209600
327 #beaker.cache.repo_cache_long.key_length = 256
327 #beaker.cache.repo_cache_long.key_length = 256
328
328
329 ####################################
329 ####################################
330 ### BEAKER SESSION ####
330 ### BEAKER SESSION ####
331 ####################################
331 ####################################
332
332
333 ## .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
334 ## types are file, ext:memcached, ext:database, and memory (default).
334 ## types are file, ext:memcached, ext:database, and memory (default).
335 beaker.session.type = file
335 beaker.session.type = file
336 beaker.session.data_dir = %(here)s/data/sessions/data
336 beaker.session.data_dir = %(here)s/data/sessions/data
337
337
338 ## 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 ##
339 #beaker.session.type = ext:database
339 #beaker.session.type = ext:database
340 #beaker.session.table_name = db_session
340 #beaker.session.table_name = db_session
341 #beaker.session.sa.url = postgresql://postgres:secret@localhost/rhodecode
341 #beaker.session.sa.url = postgresql://postgres:secret@localhost/rhodecode
342 #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
343 #beaker.session.sa.pool_recycle = 3600
343 #beaker.session.sa.pool_recycle = 3600
344 #beaker.session.sa.echo = false
344 #beaker.session.sa.echo = false
345
345
346 beaker.session.key = rhodecode
346 beaker.session.key = rhodecode
347 beaker.session.secret = develop-rc-uytcxaz
347 beaker.session.secret = develop-rc-uytcxaz
348 beaker.session.lock_dir = %(here)s/data/sessions/lock
348 beaker.session.lock_dir = %(here)s/data/sessions/lock
349
349
350 ## Secure encrypted cookie. Requires AES and AES python libraries
350 ## Secure encrypted cookie. Requires AES and AES python libraries
351 ## you must disable beaker.session.secret to use this
351 ## you must disable beaker.session.secret to use this
352 #beaker.session.encrypt_key = <key_for_encryption>
352 #beaker.session.encrypt_key = <key_for_encryption>
353 #beaker.session.validate_key = <validation_key>
353 #beaker.session.validate_key = <validation_key>
354
354
355 ## 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
356 ## accessed for given amount of time in seconds
356 ## accessed for given amount of time in seconds
357 beaker.session.timeout = 2592000
357 beaker.session.timeout = 2592000
358 beaker.session.httponly = true
358 beaker.session.httponly = true
359 #beaker.session.cookie_path = /<your-prefix>
359 #beaker.session.cookie_path = /<your-prefix>
360
360
361 ## uncomment for https secure cookie
361 ## uncomment for https secure cookie
362 beaker.session.secure = false
362 beaker.session.secure = false
363
363
364 ## auto save the session to not to use .save()
364 ## auto save the session to not to use .save()
365 beaker.session.auto = false
365 beaker.session.auto = false
366
366
367 ## 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
368 ## at browser close
368 ## at browser close
369 #beaker.session.cookie_expires = 3600
369 #beaker.session.cookie_expires = 3600
370
370
371 ###################################
371 ###################################
372 ## SEARCH INDEXING CONFIGURATION ##
372 ## SEARCH INDEXING CONFIGURATION ##
373 ###################################
373 ###################################
374
374
375 search.module = rhodecode.lib.index.whoosh
375 search.module = rhodecode.lib.index.whoosh
376 search.location = %(here)s/data/index
376 search.location = %(here)s/data/index
377
377
378 ###################################
378 ###################################
379 ## ERROR AND LOG HANDLING SYSTEM ##
379 ## ERROR AND LOG HANDLING SYSTEM ##
380 ###################################
380 ###################################
381
381
382 ## Appenlight is tailored to work with RhodeCode, see
382 ## Appenlight is tailored to work with RhodeCode, see
383 ## http://appenlight.com for details how to obtain an account
383 ## http://appenlight.com for details how to obtain an account
384
384
385 ## appenlight integration enabled
385 ## appenlight integration enabled
386 appenlight = false
386 appenlight = false
387
387
388 appenlight.server_url = https://api.appenlight.com
388 appenlight.server_url = https://api.appenlight.com
389 appenlight.api_key = YOUR_API_KEY
389 appenlight.api_key = YOUR_API_KEY
390 #appenlight.transport_config = https://api.appenlight.com?threaded=1&timeout=5
390 #appenlight.transport_config = https://api.appenlight.com?threaded=1&timeout=5
391
391
392 # used for JS client
392 # used for JS client
393 appenlight.api_public_key = YOUR_API_PUBLIC_KEY
393 appenlight.api_public_key = YOUR_API_PUBLIC_KEY
394
394
395 ## TWEAK AMOUNT OF INFO SENT HERE
395 ## TWEAK AMOUNT OF INFO SENT HERE
396
396
397 ## enables 404 error logging (default False)
397 ## enables 404 error logging (default False)
398 appenlight.report_404 = false
398 appenlight.report_404 = false
399
399
400 ## time in seconds after request is considered being slow (default 1)
400 ## time in seconds after request is considered being slow (default 1)
401 appenlight.slow_request_time = 1
401 appenlight.slow_request_time = 1
402
402
403 ## record slow requests in application
403 ## record slow requests in application
404 ## (needs to be enabled for slow datastore recording and time tracking)
404 ## (needs to be enabled for slow datastore recording and time tracking)
405 appenlight.slow_requests = true
405 appenlight.slow_requests = true
406
406
407 ## enable hooking to application loggers
407 ## enable hooking to application loggers
408 appenlight.logging = true
408 appenlight.logging = true
409
409
410 ## minimum log level for log capture
410 ## minimum log level for log capture
411 appenlight.logging.level = WARNING
411 appenlight.logging.level = WARNING
412
412
413 ## send logs only from erroneous/slow requests
413 ## send logs only from erroneous/slow requests
414 ## (saves API quota for intensive logging)
414 ## (saves API quota for intensive logging)
415 appenlight.logging_on_error = false
415 appenlight.logging_on_error = false
416
416
417 ## list of additonal keywords that should be grabbed from environ object
417 ## list of additonal keywords that should be grabbed from environ object
418 ## can be string with comma separated list of words in lowercase
418 ## can be string with comma separated list of words in lowercase
419 ## (by default client will always send following info:
419 ## (by default client will always send following info:
420 ## 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that
420 ## 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that
421 ## start with HTTP* this list be extended with additional keywords here
421 ## start with HTTP* this list be extended with additional keywords here
422 appenlight.environ_keys_whitelist =
422 appenlight.environ_keys_whitelist =
423
423
424 ## list of keywords that should be blanked from request object
424 ## list of keywords that should be blanked from request object
425 ## can be string with comma separated list of words in lowercase
425 ## can be string with comma separated list of words in lowercase
426 ## (by default client will always blank keys that contain following words
426 ## (by default client will always blank keys that contain following words
427 ## 'password', 'passwd', 'pwd', 'auth_tkt', 'secret', 'csrf'
427 ## 'password', 'passwd', 'pwd', 'auth_tkt', 'secret', 'csrf'
428 ## this list be extended with additional keywords set here
428 ## this list be extended with additional keywords set here
429 appenlight.request_keys_blacklist =
429 appenlight.request_keys_blacklist =
430
430
431 ## list of namespaces that should be ignores when gathering log entries
431 ## list of namespaces that should be ignores when gathering log entries
432 ## can be string with comma separated list of namespaces
432 ## can be string with comma separated list of namespaces
433 ## (by default the client ignores own entries: appenlight_client.client)
433 ## (by default the client ignores own entries: appenlight_client.client)
434 appenlight.log_namespace_blacklist =
434 appenlight.log_namespace_blacklist =
435
435
436
436
437 ################################################################################
437 ################################################################################
438 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
438 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
439 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
439 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
440 ## execute malicious code after an exception is raised. ##
440 ## execute malicious code after an exception is raised. ##
441 ################################################################################
441 ################################################################################
442 #set debug = false
442 #set debug = false
443
443
444
444
445 ##############
445 ##############
446 ## STYLING ##
446 ## STYLING ##
447 ##############
447 ##############
448 debug_style = true
448 debug_style = true
449
449
450 #########################################################
450 #########################################################
451 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###
451 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###
452 #########################################################
452 #########################################################
453 sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db?timeout=30
453 sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db?timeout=30
454 #sqlalchemy.db1.url = postgresql://postgres:qweqwe@localhost/rhodecode
454 #sqlalchemy.db1.url = postgresql://postgres:qweqwe@localhost/rhodecode
455 #sqlalchemy.db1.url = mysql://root:qweqwe@localhost/rhodecode
455 #sqlalchemy.db1.url = mysql://root:qweqwe@localhost/rhodecode
456
456
457 # see sqlalchemy docs for other advanced settings
457 # see sqlalchemy docs for other advanced settings
458
458
459 ## print the sql statements to output
459 ## print the sql statements to output
460 sqlalchemy.db1.echo = false
460 sqlalchemy.db1.echo = false
461 ## recycle the connections after this ammount of seconds
461 ## recycle the connections after this ammount of seconds
462 sqlalchemy.db1.pool_recycle = 3600
462 sqlalchemy.db1.pool_recycle = 3600
463 sqlalchemy.db1.convert_unicode = true
463 sqlalchemy.db1.convert_unicode = true
464
464
465 ## the number of connections to keep open inside the connection pool.
465 ## the number of connections to keep open inside the connection pool.
466 ## 0 indicates no limit
466 ## 0 indicates no limit
467 #sqlalchemy.db1.pool_size = 5
467 #sqlalchemy.db1.pool_size = 5
468
468
469 ## 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
470 ## 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,
471 ## which defaults to five.
471 ## which defaults to five.
472 #sqlalchemy.db1.max_overflow = 10
472 #sqlalchemy.db1.max_overflow = 10
473
473
474
474
475 ##################
475 ##################
476 ### VCS CONFIG ###
476 ### VCS CONFIG ###
477 ##################
477 ##################
478 vcs.server.enable = true
478 vcs.server.enable = true
479 vcs.server = localhost:9900
479 vcs.server = localhost:9900
480 # Available protocols: pyro4, http
481 vcs.server.protocol = pyro4
482
480
483 ## available backends are:
481 ## Web server connectivity protocol, responsible for web based VCS operatations
484 ## `rhodecode.lib.middleware.utils.scm_app_http` (Http based, recommended)
482 ## Available protocols are:
485 ## `vcsserver.scm_app` (EE only)
483 ## `pyro4` - using pyro4 server
486 ## `pyro4`
484 ## `http` - using http-rpc backend
485 #vcs.server.protocol = http
486
487 ## Push/Pull operations protocol, available options are:
488 ## `pyro4` - using pyro4 server
489 ## `rhodecode.lib.middleware.utils.scm_app_http` - Http based, recommended
490 ## `vcsserver.scm_app` - internal app (EE only)
487 #vcs.scm_app_implementation = rhodecode.lib.middleware.utils.scm_app_http
491 #vcs.scm_app_implementation = rhodecode.lib.middleware.utils.scm_app_http
488
492
493 ## Push/Pull operations hooks protocol, available options are:
494 ## `pyro4` - using pyro4 server
495 ## `http` - using http-rpc backend
496 #vcs.hooks.protocol = http
497
489 vcs.server.log_level = debug
498 vcs.server.log_level = debug
499 ## Start VCSServer with this instance as a subprocess, usefull for development
490 vcs.start_server = true
500 vcs.start_server = true
491 vcs.backends = hg, git, svn
501 vcs.backends = hg, git, svn
492 vcs.connection_timeout = 3600
502 vcs.connection_timeout = 3600
493 ## Compatibility version when creating SVN repositories. Defaults to newest version when commented out.
503 ## Compatibility version when creating SVN repositories. Defaults to newest version when commented out.
494 ## Available options are: pre-1.4-compatible, pre-1.5-compatible, pre-1.6-compatible, pre-1.8-compatible
504 ## Available options are: pre-1.4-compatible, pre-1.5-compatible, pre-1.6-compatible, pre-1.8-compatible
495 #vcs.svn.compatible_version = pre-1.8-compatible
505 #vcs.svn.compatible_version = pre-1.8-compatible
496
506
497 ################################
507 ################################
498 ### LOGGING CONFIGURATION ####
508 ### LOGGING CONFIGURATION ####
499 ################################
509 ################################
500 [loggers]
510 [loggers]
501 keys = root, routes, rhodecode, sqlalchemy, beaker, pyro4, templates, whoosh_indexer
511 keys = root, routes, rhodecode, sqlalchemy, beaker, pyro4, templates, whoosh_indexer
502
512
503 [handlers]
513 [handlers]
504 keys = console, console_sql
514 keys = console, console_sql
505
515
506 [formatters]
516 [formatters]
507 keys = generic, color_formatter, color_formatter_sql
517 keys = generic, color_formatter, color_formatter_sql
508
518
509 #############
519 #############
510 ## LOGGERS ##
520 ## LOGGERS ##
511 #############
521 #############
512 [logger_root]
522 [logger_root]
513 level = NOTSET
523 level = NOTSET
514 handlers = console
524 handlers = console
515
525
516 [logger_routes]
526 [logger_routes]
517 level = DEBUG
527 level = DEBUG
518 handlers =
528 handlers =
519 qualname = routes.middleware
529 qualname = routes.middleware
520 ## "level = DEBUG" logs the route matched and routing variables.
530 ## "level = DEBUG" logs the route matched and routing variables.
521 propagate = 1
531 propagate = 1
522
532
523 [logger_beaker]
533 [logger_beaker]
524 level = DEBUG
534 level = DEBUG
525 handlers =
535 handlers =
526 qualname = beaker.container
536 qualname = beaker.container
527 propagate = 1
537 propagate = 1
528
538
529 [logger_pyro4]
539 [logger_pyro4]
530 level = DEBUG
540 level = DEBUG
531 handlers =
541 handlers =
532 qualname = Pyro4
542 qualname = Pyro4
533 propagate = 1
543 propagate = 1
534
544
535 [logger_templates]
545 [logger_templates]
536 level = INFO
546 level = INFO
537 handlers =
547 handlers =
538 qualname = pylons.templating
548 qualname = pylons.templating
539 propagate = 1
549 propagate = 1
540
550
541 [logger_rhodecode]
551 [logger_rhodecode]
542 level = DEBUG
552 level = DEBUG
543 handlers =
553 handlers =
544 qualname = rhodecode
554 qualname = rhodecode
545 propagate = 1
555 propagate = 1
546
556
547 [logger_sqlalchemy]
557 [logger_sqlalchemy]
548 level = INFO
558 level = INFO
549 handlers = console_sql
559 handlers = console_sql
550 qualname = sqlalchemy.engine
560 qualname = sqlalchemy.engine
551 propagate = 0
561 propagate = 0
552
562
553 [logger_whoosh_indexer]
563 [logger_whoosh_indexer]
554 level = DEBUG
564 level = DEBUG
555 handlers =
565 handlers =
556 qualname = whoosh_indexer
566 qualname = whoosh_indexer
557 propagate = 1
567 propagate = 1
558
568
559 ##############
569 ##############
560 ## HANDLERS ##
570 ## HANDLERS ##
561 ##############
571 ##############
562
572
563 [handler_console]
573 [handler_console]
564 class = StreamHandler
574 class = StreamHandler
565 args = (sys.stderr,)
575 args = (sys.stderr,)
566 level = DEBUG
576 level = DEBUG
567 formatter = color_formatter
577 formatter = color_formatter
568
578
569 [handler_console_sql]
579 [handler_console_sql]
570 class = StreamHandler
580 class = StreamHandler
571 args = (sys.stderr,)
581 args = (sys.stderr,)
572 level = DEBUG
582 level = DEBUG
573 formatter = color_formatter_sql
583 formatter = color_formatter_sql
574
584
575 ################
585 ################
576 ## FORMATTERS ##
586 ## FORMATTERS ##
577 ################
587 ################
578
588
579 [formatter_generic]
589 [formatter_generic]
580 class = rhodecode.lib.logging_formatter.Pyro4AwareFormatter
590 class = rhodecode.lib.logging_formatter.Pyro4AwareFormatter
581 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
582 datefmt = %Y-%m-%d %H:%M:%S
592 datefmt = %Y-%m-%d %H:%M:%S
583
593
584 [formatter_color_formatter]
594 [formatter_color_formatter]
585 class = rhodecode.lib.logging_formatter.ColorFormatter
595 class = rhodecode.lib.logging_formatter.ColorFormatter
586 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
596 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
587 datefmt = %Y-%m-%d %H:%M:%S
597 datefmt = %Y-%m-%d %H:%M:%S
588
598
589 [formatter_color_formatter_sql]
599 [formatter_color_formatter_sql]
590 class = rhodecode.lib.logging_formatter.ColorFormatterSql
600 class = rhodecode.lib.logging_formatter.ColorFormatterSql
591 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
601 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
592 datefmt = %Y-%m-%d %H:%M:%S
602 datefmt = %Y-%m-%d %H:%M:%S
@@ -1,566 +1,576 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
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.
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
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
179 ## authentication settings. Then you can enable e.g. the internal rhodecode auth
180 ## module to log in again and fix the settings.
180 ## module to log in again and fix the settings.
181 ##
181 ##
182 ## Available builtin plugin IDs (hash is part of the ID):
182 ## Available builtin plugin IDs (hash is part of the ID):
183 ## egg:rhodecode-enterprise-ce#rhodecode
183 ## egg:rhodecode-enterprise-ce#rhodecode
184 ## egg:rhodecode-enterprise-ce#pam
184 ## egg:rhodecode-enterprise-ce#pam
185 ## egg:rhodecode-enterprise-ce#ldap
185 ## egg:rhodecode-enterprise-ce#ldap
186 ## egg:rhodecode-enterprise-ce#jasig_cas
186 ## egg:rhodecode-enterprise-ce#jasig_cas
187 ## egg:rhodecode-enterprise-ce#headers
187 ## egg:rhodecode-enterprise-ce#headers
188 ## egg:rhodecode-enterprise-ce#crowd
188 ## egg:rhodecode-enterprise-ce#crowd
189 #rhodecode.auth_plugin_fallback = egg:rhodecode-enterprise-ce#rhodecode
189 #rhodecode.auth_plugin_fallback = egg:rhodecode-enterprise-ce#rhodecode
190
190
191 ## alternative return HTTP header for failed authentication. Default HTTP
191 ## alternative return HTTP header for failed authentication. Default HTTP
192 ## response is 401 HTTPUnauthorized. Currently HG clients have troubles with
192 ## response is 401 HTTPUnauthorized. Currently HG clients have troubles with
193 ## handling that causing a series of failed authentication calls.
193 ## handling that causing a series of failed authentication calls.
194 ## 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
195 ## This will be served instead of default 401 on bad authnetication
195 ## This will be served instead of default 401 on bad authnetication
196 auth_ret_code =
196 auth_ret_code =
197
197
198 ## 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
199 ## ret_code directly, use 401 initially (Which triggers credentials prompt)
199 ## ret_code directly, use 401 initially (Which triggers credentials prompt)
200 ## and then serve auth_ret_code to clients
200 ## and then serve auth_ret_code to clients
201 auth_ret_code_detection = false
201 auth_ret_code_detection = false
202
202
203 ## 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
204 ## codes don't break the transactions while 4XX codes do
204 ## codes don't break the transactions while 4XX codes do
205 lock_ret_code = 423
205 lock_ret_code = 423
206
206
207 ## allows to change the repository location in settings page
207 ## allows to change the repository location in settings page
208 allow_repo_location_change = true
208 allow_repo_location_change = true
209
209
210 ## allows to setup custom hooks in settings page
210 ## allows to setup custom hooks in settings page
211 allow_custom_hooks_settings = true
211 allow_custom_hooks_settings = true
212
212
213 ## generated license token, goto license page in RhodeCode settings to obtain
213 ## generated license token, goto license page in RhodeCode settings to obtain
214 ## new token
214 ## new token
215 license_token =
215 license_token =
216
216
217 ## supervisor connection uri, for managing supervisor and logs.
217 ## supervisor connection uri, for managing supervisor and logs.
218 supervisor.uri =
218 supervisor.uri =
219 ## 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
220 supervisor.group_id = prod
220 supervisor.group_id = prod
221
221
222 ## Display extended labs settings
222 ## Display extended labs settings
223 labs_settings_active = true
223 labs_settings_active = true
224
224
225 ####################################
225 ####################################
226 ### CELERY CONFIG ####
226 ### CELERY CONFIG ####
227 ####################################
227 ####################################
228 use_celery = false
228 use_celery = false
229 broker.host = localhost
229 broker.host = localhost
230 broker.vhost = rabbitmqhost
230 broker.vhost = rabbitmqhost
231 broker.port = 5672
231 broker.port = 5672
232 broker.user = rabbitmq
232 broker.user = rabbitmq
233 broker.password = qweqwe
233 broker.password = qweqwe
234
234
235 celery.imports = rhodecode.lib.celerylib.tasks
235 celery.imports = rhodecode.lib.celerylib.tasks
236
236
237 celery.result.backend = amqp
237 celery.result.backend = amqp
238 celery.result.dburi = amqp://
238 celery.result.dburi = amqp://
239 celery.result.serialier = json
239 celery.result.serialier = json
240
240
241 #celery.send.task.error.emails = true
241 #celery.send.task.error.emails = true
242 #celery.amqp.task.result.expires = 18000
242 #celery.amqp.task.result.expires = 18000
243
243
244 celeryd.concurrency = 2
244 celeryd.concurrency = 2
245 #celeryd.log.file = celeryd.log
245 #celeryd.log.file = celeryd.log
246 celeryd.log.level = debug
246 celeryd.log.level = debug
247 celeryd.max.tasks.per.child = 1
247 celeryd.max.tasks.per.child = 1
248
248
249 ## 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.
250 celery.always.eager = false
250 celery.always.eager = false
251
251
252 ####################################
252 ####################################
253 ### BEAKER CACHE ####
253 ### BEAKER CACHE ####
254 ####################################
254 ####################################
255 # default cache dir for templates. Putting this into a ramdisk
255 # default cache dir for templates. Putting this into a ramdisk
256 ## can boost performance, eg. %(here)s/data_ramdisk
256 ## can boost performance, eg. %(here)s/data_ramdisk
257 cache_dir = %(here)s/data
257 cache_dir = %(here)s/data
258
258
259 ## 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
260 ## can boost performance, eg. %(here)s/data_ramdisk/cache/beaker_data
260 ## can boost performance, eg. %(here)s/data_ramdisk/cache/beaker_data
261 beaker.cache.data_dir = %(here)s/data/cache/beaker_data
261 beaker.cache.data_dir = %(here)s/data/cache/beaker_data
262 beaker.cache.lock_dir = %(here)s/data/cache/beaker_lock
262 beaker.cache.lock_dir = %(here)s/data/cache/beaker_lock
263
263
264 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
265
265
266 beaker.cache.super_short_term.type = memory
266 beaker.cache.super_short_term.type = memory
267 beaker.cache.super_short_term.expire = 10
267 beaker.cache.super_short_term.expire = 10
268 beaker.cache.super_short_term.key_length = 256
268 beaker.cache.super_short_term.key_length = 256
269
269
270 beaker.cache.short_term.type = memory
270 beaker.cache.short_term.type = memory
271 beaker.cache.short_term.expire = 60
271 beaker.cache.short_term.expire = 60
272 beaker.cache.short_term.key_length = 256
272 beaker.cache.short_term.key_length = 256
273
273
274 beaker.cache.long_term.type = memory
274 beaker.cache.long_term.type = memory
275 beaker.cache.long_term.expire = 36000
275 beaker.cache.long_term.expire = 36000
276 beaker.cache.long_term.key_length = 256
276 beaker.cache.long_term.key_length = 256
277
277
278 beaker.cache.sql_cache_short.type = memory
278 beaker.cache.sql_cache_short.type = memory
279 beaker.cache.sql_cache_short.expire = 10
279 beaker.cache.sql_cache_short.expire = 10
280 beaker.cache.sql_cache_short.key_length = 256
280 beaker.cache.sql_cache_short.key_length = 256
281
281
282 # default is memory cache, configure only if required
282 # default is memory cache, configure only if required
283 # using multi-node or multi-worker setup
283 # using multi-node or multi-worker setup
284 #beaker.cache.auth_plugins.type = ext:database
284 #beaker.cache.auth_plugins.type = ext:database
285 #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
286 #beaker.cache.auth_plugins.url = postgresql://postgres:secret@localhost/rhodecode
286 #beaker.cache.auth_plugins.url = postgresql://postgres:secret@localhost/rhodecode
287 #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
288 #beaker.cache.auth_plugins.sa.pool_recycle = 3600
288 #beaker.cache.auth_plugins.sa.pool_recycle = 3600
289 #beaker.cache.auth_plugins.sa.pool_size = 10
289 #beaker.cache.auth_plugins.sa.pool_size = 10
290 #beaker.cache.auth_plugins.sa.max_overflow = 0
290 #beaker.cache.auth_plugins.sa.max_overflow = 0
291
291
292 beaker.cache.repo_cache_long.type = memorylru_base
292 beaker.cache.repo_cache_long.type = memorylru_base
293 beaker.cache.repo_cache_long.max_items = 4096
293 beaker.cache.repo_cache_long.max_items = 4096
294 beaker.cache.repo_cache_long.expire = 2592000
294 beaker.cache.repo_cache_long.expire = 2592000
295
295
296 # default is memorylru_base cache, configure only if required
296 # default is memorylru_base cache, configure only if required
297 # using multi-node or multi-worker setup
297 # using multi-node or multi-worker setup
298 #beaker.cache.repo_cache_long.type = ext:memcached
298 #beaker.cache.repo_cache_long.type = ext:memcached
299 #beaker.cache.repo_cache_long.url = localhost:11211
299 #beaker.cache.repo_cache_long.url = localhost:11211
300 #beaker.cache.repo_cache_long.expire = 1209600
300 #beaker.cache.repo_cache_long.expire = 1209600
301 #beaker.cache.repo_cache_long.key_length = 256
301 #beaker.cache.repo_cache_long.key_length = 256
302
302
303 ####################################
303 ####################################
304 ### BEAKER SESSION ####
304 ### BEAKER SESSION ####
305 ####################################
305 ####################################
306
306
307 ## .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
308 ## types are file, ext:memcached, ext:database, and memory(default).
308 ## types are file, ext:memcached, ext:database, and memory(default).
309 beaker.session.type = file
309 beaker.session.type = file
310 beaker.session.data_dir = %(here)s/data/sessions/data
310 beaker.session.data_dir = %(here)s/data/sessions/data
311
311
312 ## 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 ##
313 #beaker.session.type = ext:database
313 #beaker.session.type = ext:database
314 #beaker.session.table_name = db_session
314 #beaker.session.table_name = db_session
315 #beaker.session.sa.url = postgresql://postgres:secret@localhost/rhodecode
315 #beaker.session.sa.url = postgresql://postgres:secret@localhost/rhodecode
316 #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
317 #beaker.session.sa.pool_recycle = 3600
317 #beaker.session.sa.pool_recycle = 3600
318 #beaker.session.sa.echo = false
318 #beaker.session.sa.echo = false
319
319
320 beaker.session.key = rhodecode
320 beaker.session.key = rhodecode
321 beaker.session.secret = production-rc-uytcxaz
321 beaker.session.secret = production-rc-uytcxaz
322 #beaker.session.lock_dir = %(here)s/data/sessions/lock
322 #beaker.session.lock_dir = %(here)s/data/sessions/lock
323
323
324 ## Secure encrypted cookie. Requires AES and AES python libraries
324 ## Secure encrypted cookie. Requires AES and AES python libraries
325 ## you must disable beaker.session.secret to use this
325 ## you must disable beaker.session.secret to use this
326 #beaker.session.encrypt_key = <key_for_encryption>
326 #beaker.session.encrypt_key = <key_for_encryption>
327 #beaker.session.validate_key = <validation_key>
327 #beaker.session.validate_key = <validation_key>
328
328
329 ## 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
330 ## accessed for given amount of time in seconds
330 ## accessed for given amount of time in seconds
331 beaker.session.timeout = 2592000
331 beaker.session.timeout = 2592000
332 beaker.session.httponly = true
332 beaker.session.httponly = true
333 #beaker.session.cookie_path = /<your-prefix>
333 #beaker.session.cookie_path = /<your-prefix>
334
334
335 ## uncomment for https secure cookie
335 ## uncomment for https secure cookie
336 beaker.session.secure = false
336 beaker.session.secure = false
337
337
338 ## auto save the session to not to use .save()
338 ## auto save the session to not to use .save()
339 beaker.session.auto = false
339 beaker.session.auto = false
340
340
341 ## 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
342 ## at browser close
342 ## at browser close
343 #beaker.session.cookie_expires = 3600
343 #beaker.session.cookie_expires = 3600
344
344
345 ###################################
345 ###################################
346 ## SEARCH INDEXING CONFIGURATION ##
346 ## SEARCH INDEXING CONFIGURATION ##
347 ###################################
347 ###################################
348
348
349 search.module = rhodecode.lib.index.whoosh
349 search.module = rhodecode.lib.index.whoosh
350 search.location = %(here)s/data/index
350 search.location = %(here)s/data/index
351
351
352 ###################################
352 ###################################
353 ## ERROR AND LOG HANDLING SYSTEM ##
353 ## ERROR AND LOG HANDLING SYSTEM ##
354 ###################################
354 ###################################
355
355
356 ## Appenlight is tailored to work with RhodeCode, see
356 ## Appenlight is tailored to work with RhodeCode, see
357 ## http://appenlight.com for details how to obtain an account
357 ## http://appenlight.com for details how to obtain an account
358
358
359 ## appenlight integration enabled
359 ## appenlight integration enabled
360 appenlight = false
360 appenlight = false
361
361
362 appenlight.server_url = https://api.appenlight.com
362 appenlight.server_url = https://api.appenlight.com
363 appenlight.api_key = YOUR_API_KEY
363 appenlight.api_key = YOUR_API_KEY
364 ;appenlight.transport_config = https://api.appenlight.com?threaded=1&timeout=5
364 ;appenlight.transport_config = https://api.appenlight.com?threaded=1&timeout=5
365
365
366 # used for JS client
366 # used for JS client
367 appenlight.api_public_key = YOUR_API_PUBLIC_KEY
367 appenlight.api_public_key = YOUR_API_PUBLIC_KEY
368
368
369 ## TWEAK AMOUNT OF INFO SENT HERE
369 ## TWEAK AMOUNT OF INFO SENT HERE
370
370
371 ## enables 404 error logging (default False)
371 ## enables 404 error logging (default False)
372 appenlight.report_404 = false
372 appenlight.report_404 = false
373
373
374 ## time in seconds after request is considered being slow (default 1)
374 ## time in seconds after request is considered being slow (default 1)
375 appenlight.slow_request_time = 1
375 appenlight.slow_request_time = 1
376
376
377 ## record slow requests in application
377 ## record slow requests in application
378 ## (needs to be enabled for slow datastore recording and time tracking)
378 ## (needs to be enabled for slow datastore recording and time tracking)
379 appenlight.slow_requests = true
379 appenlight.slow_requests = true
380
380
381 ## enable hooking to application loggers
381 ## enable hooking to application loggers
382 appenlight.logging = true
382 appenlight.logging = true
383
383
384 ## minimum log level for log capture
384 ## minimum log level for log capture
385 appenlight.logging.level = WARNING
385 appenlight.logging.level = WARNING
386
386
387 ## send logs only from erroneous/slow requests
387 ## send logs only from erroneous/slow requests
388 ## (saves API quota for intensive logging)
388 ## (saves API quota for intensive logging)
389 appenlight.logging_on_error = false
389 appenlight.logging_on_error = false
390
390
391 ## list of additonal keywords that should be grabbed from environ object
391 ## list of additonal keywords that should be grabbed from environ object
392 ## can be string with comma separated list of words in lowercase
392 ## can be string with comma separated list of words in lowercase
393 ## (by default client will always send following info:
393 ## (by default client will always send following info:
394 ## 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that
394 ## 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that
395 ## start with HTTP* this list be extended with additional keywords here
395 ## start with HTTP* this list be extended with additional keywords here
396 appenlight.environ_keys_whitelist =
396 appenlight.environ_keys_whitelist =
397
397
398 ## list of keywords that should be blanked from request object
398 ## list of keywords that should be blanked from request object
399 ## can be string with comma separated list of words in lowercase
399 ## can be string with comma separated list of words in lowercase
400 ## (by default client will always blank keys that contain following words
400 ## (by default client will always blank keys that contain following words
401 ## 'password', 'passwd', 'pwd', 'auth_tkt', 'secret', 'csrf'
401 ## 'password', 'passwd', 'pwd', 'auth_tkt', 'secret', 'csrf'
402 ## this list be extended with additional keywords set here
402 ## this list be extended with additional keywords set here
403 appenlight.request_keys_blacklist =
403 appenlight.request_keys_blacklist =
404
404
405 ## list of namespaces that should be ignores when gathering log entries
405 ## list of namespaces that should be ignores when gathering log entries
406 ## can be string with comma separated list of namespaces
406 ## can be string with comma separated list of namespaces
407 ## (by default the client ignores own entries: appenlight_client.client)
407 ## (by default the client ignores own entries: appenlight_client.client)
408 appenlight.log_namespace_blacklist =
408 appenlight.log_namespace_blacklist =
409
409
410
410
411 ################################################################################
411 ################################################################################
412 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
412 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
413 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
413 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
414 ## execute malicious code after an exception is raised. ##
414 ## execute malicious code after an exception is raised. ##
415 ################################################################################
415 ################################################################################
416 set debug = false
416 set debug = false
417
417
418
418
419 ##############
419 ##############
420 ## STYLING ##
420 ## STYLING ##
421 ##############
421 ##############
422 debug_style = false
422 debug_style = false
423
423
424 #########################################################
424 #########################################################
425 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###
425 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###
426 #########################################################
426 #########################################################
427 #sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db?timeout=30
427 #sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db?timeout=30
428 sqlalchemy.db1.url = postgresql://postgres:qweqwe@localhost/rhodecode
428 sqlalchemy.db1.url = postgresql://postgres:qweqwe@localhost/rhodecode
429 #sqlalchemy.db1.url = mysql://root:qweqwe@localhost/rhodecode
429 #sqlalchemy.db1.url = mysql://root:qweqwe@localhost/rhodecode
430
430
431 # see sqlalchemy docs for other advanced settings
431 # see sqlalchemy docs for other advanced settings
432
432
433 ## print the sql statements to output
433 ## print the sql statements to output
434 sqlalchemy.db1.echo = false
434 sqlalchemy.db1.echo = false
435 ## recycle the connections after this ammount of seconds
435 ## recycle the connections after this ammount of seconds
436 sqlalchemy.db1.pool_recycle = 3600
436 sqlalchemy.db1.pool_recycle = 3600
437 sqlalchemy.db1.convert_unicode = true
437 sqlalchemy.db1.convert_unicode = true
438
438
439 ## the number of connections to keep open inside the connection pool.
439 ## the number of connections to keep open inside the connection pool.
440 ## 0 indicates no limit
440 ## 0 indicates no limit
441 #sqlalchemy.db1.pool_size = 5
441 #sqlalchemy.db1.pool_size = 5
442
442
443 ## 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
444 ## 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,
445 ## which defaults to five.
445 ## which defaults to five.
446 #sqlalchemy.db1.max_overflow = 10
446 #sqlalchemy.db1.max_overflow = 10
447
447
448
448
449 ##################
449 ##################
450 ### VCS CONFIG ###
450 ### VCS CONFIG ###
451 ##################
451 ##################
452 vcs.server.enable = true
452 vcs.server.enable = true
453 vcs.server = localhost:9900
453 vcs.server = localhost:9900
454 # Available protocols: pyro4, http
455 vcs.server.protocol = pyro4
456
454
457 # available impl:
455 ## Web server connectivity protocol, responsible for web based VCS operatations
458 # vcsserver.scm_app (EE only, for testing),
456 ## Available protocols are:
459 # rhodecode.lib.middleware.utils.scm_app_http
457 ## `pyro4` - using pyro4 server
460 # pyro4
458 ## `http` - using http-rpc backend
459 #vcs.server.protocol = http
460
461 ## Push/Pull operations protocol, available options are:
462 ## `pyro4` - using pyro4 server
463 ## `rhodecode.lib.middleware.utils.scm_app_http` - Http based, recommended
464 ## `vcsserver.scm_app` - internal app (EE only)
461 #vcs.scm_app_implementation = rhodecode.lib.middleware.utils.scm_app_http
465 #vcs.scm_app_implementation = rhodecode.lib.middleware.utils.scm_app_http
462
466
463 vcs.server.log_level = info
467 ## Push/Pull operations hooks protocol, available options are:
468 ## `pyro4` - using pyro4 server
469 ## `http` - using http-rpc backend
470 #vcs.hooks.protocol = http
471
472 vcs.server.log_level = debug
473 ## Start VCSServer with this instance as a subprocess, usefull for development
464 vcs.start_server = false
474 vcs.start_server = false
465 vcs.backends = hg, git, svn
475 vcs.backends = hg, git, svn
466 vcs.connection_timeout = 3600
476 vcs.connection_timeout = 3600
467 ## Compatibility version when creating SVN repositories. Defaults to newest version when commented out.
477 ## Compatibility version when creating SVN repositories. Defaults to newest version when commented out.
468 ## Available options are: pre-1.4-compatible, pre-1.5-compatible, pre-1.6-compatible, pre-1.8-compatible
478 ## Available options are: pre-1.4-compatible, pre-1.5-compatible, pre-1.6-compatible, pre-1.8-compatible
469 #vcs.svn.compatible_version = pre-1.8-compatible
479 #vcs.svn.compatible_version = pre-1.8-compatible
470
480
471 ################################
481 ################################
472 ### LOGGING CONFIGURATION ####
482 ### LOGGING CONFIGURATION ####
473 ################################
483 ################################
474 [loggers]
484 [loggers]
475 keys = root, routes, rhodecode, sqlalchemy, beaker, pyro4, templates, whoosh_indexer
485 keys = root, routes, rhodecode, sqlalchemy, beaker, pyro4, templates, whoosh_indexer
476
486
477 [handlers]
487 [handlers]
478 keys = console, console_sql
488 keys = console, console_sql
479
489
480 [formatters]
490 [formatters]
481 keys = generic, color_formatter, color_formatter_sql
491 keys = generic, color_formatter, color_formatter_sql
482
492
483 #############
493 #############
484 ## LOGGERS ##
494 ## LOGGERS ##
485 #############
495 #############
486 [logger_root]
496 [logger_root]
487 level = NOTSET
497 level = NOTSET
488 handlers = console
498 handlers = console
489
499
490 [logger_routes]
500 [logger_routes]
491 level = DEBUG
501 level = DEBUG
492 handlers =
502 handlers =
493 qualname = routes.middleware
503 qualname = routes.middleware
494 ## "level = DEBUG" logs the route matched and routing variables.
504 ## "level = DEBUG" logs the route matched and routing variables.
495 propagate = 1
505 propagate = 1
496
506
497 [logger_beaker]
507 [logger_beaker]
498 level = DEBUG
508 level = DEBUG
499 handlers =
509 handlers =
500 qualname = beaker.container
510 qualname = beaker.container
501 propagate = 1
511 propagate = 1
502
512
503 [logger_pyro4]
513 [logger_pyro4]
504 level = DEBUG
514 level = DEBUG
505 handlers =
515 handlers =
506 qualname = Pyro4
516 qualname = Pyro4
507 propagate = 1
517 propagate = 1
508
518
509 [logger_templates]
519 [logger_templates]
510 level = INFO
520 level = INFO
511 handlers =
521 handlers =
512 qualname = pylons.templating
522 qualname = pylons.templating
513 propagate = 1
523 propagate = 1
514
524
515 [logger_rhodecode]
525 [logger_rhodecode]
516 level = DEBUG
526 level = DEBUG
517 handlers =
527 handlers =
518 qualname = rhodecode
528 qualname = rhodecode
519 propagate = 1
529 propagate = 1
520
530
521 [logger_sqlalchemy]
531 [logger_sqlalchemy]
522 level = INFO
532 level = INFO
523 handlers = console_sql
533 handlers = console_sql
524 qualname = sqlalchemy.engine
534 qualname = sqlalchemy.engine
525 propagate = 0
535 propagate = 0
526
536
527 [logger_whoosh_indexer]
537 [logger_whoosh_indexer]
528 level = DEBUG
538 level = DEBUG
529 handlers =
539 handlers =
530 qualname = whoosh_indexer
540 qualname = whoosh_indexer
531 propagate = 1
541 propagate = 1
532
542
533 ##############
543 ##############
534 ## HANDLERS ##
544 ## HANDLERS ##
535 ##############
545 ##############
536
546
537 [handler_console]
547 [handler_console]
538 class = StreamHandler
548 class = StreamHandler
539 args = (sys.stderr,)
549 args = (sys.stderr,)
540 level = INFO
550 level = INFO
541 formatter = generic
551 formatter = generic
542
552
543 [handler_console_sql]
553 [handler_console_sql]
544 class = StreamHandler
554 class = StreamHandler
545 args = (sys.stderr,)
555 args = (sys.stderr,)
546 level = WARN
556 level = WARN
547 formatter = generic
557 formatter = generic
548
558
549 ################
559 ################
550 ## FORMATTERS ##
560 ## FORMATTERS ##
551 ################
561 ################
552
562
553 [formatter_generic]
563 [formatter_generic]
554 class = rhodecode.lib.logging_formatter.Pyro4AwareFormatter
564 class = rhodecode.lib.logging_formatter.Pyro4AwareFormatter
555 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
556 datefmt = %Y-%m-%d %H:%M:%S
566 datefmt = %Y-%m-%d %H:%M:%S
557
567
558 [formatter_color_formatter]
568 [formatter_color_formatter]
559 class = rhodecode.lib.logging_formatter.ColorFormatter
569 class = rhodecode.lib.logging_formatter.ColorFormatter
560 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
570 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
561 datefmt = %Y-%m-%d %H:%M:%S
571 datefmt = %Y-%m-%d %H:%M:%S
562
572
563 [formatter_color_formatter_sql]
573 [formatter_color_formatter_sql]
564 class = rhodecode.lib.logging_formatter.ColorFormatterSql
574 class = rhodecode.lib.logging_formatter.ColorFormatterSql
565 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
575 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
566 datefmt = %Y-%m-%d %H:%M:%S
576 datefmt = %Y-%m-%d %H:%M:%S
General Comments 0
You need to be logged in to leave comments. Login now