##// END OF EJS Templates
do not use vcs_full_cache flag for tests, this should be controlled by test env somehow
marcink -
r3393:f2425f42 beta
parent child Browse files
Show More
@@ -1,355 +1,355 b''
1 ################################################################################
1 ################################################################################
2 ################################################################################
2 ################################################################################
3 # RhodeCode - Pylons environment configuration #
3 # RhodeCode - Pylons environment configuration #
4 # #
4 # #
5 # The %(here)s variable will be replaced with the parent directory of this file#
5 # The %(here)s variable will be replaced with the parent directory of this file#
6 ################################################################################
6 ################################################################################
7
7
8 [DEFAULT]
8 [DEFAULT]
9 debug = true
9 debug = true
10 pdebug = false
10 pdebug = false
11 ################################################################################
11 ################################################################################
12 ## Uncomment and replace with the address which should receive ##
12 ## Uncomment and replace with the address which should receive ##
13 ## any error reports after application crash ##
13 ## any error reports after application crash ##
14 ## Additionally those settings will be used by RhodeCode mailing system ##
14 ## Additionally those settings will be used by RhodeCode mailing system ##
15 ################################################################################
15 ################################################################################
16 #email_to = admin@localhost
16 #email_to = admin@localhost
17 #error_email_from = paste_error@localhost
17 #error_email_from = paste_error@localhost
18 #app_email_from = rhodecode-noreply@localhost
18 #app_email_from = rhodecode-noreply@localhost
19 #error_message =
19 #error_message =
20 #email_prefix = [RhodeCode]
20 #email_prefix = [RhodeCode]
21
21
22 #smtp_server = mail.server.com
22 #smtp_server = mail.server.com
23 #smtp_username =
23 #smtp_username =
24 #smtp_password =
24 #smtp_password =
25 #smtp_port =
25 #smtp_port =
26 #smtp_use_tls = false
26 #smtp_use_tls = false
27 #smtp_use_ssl = true
27 #smtp_use_ssl = true
28 # Specify available auth parameters here (e.g. LOGIN PLAIN CRAM-MD5, etc.)
28 # Specify available auth parameters here (e.g. LOGIN PLAIN CRAM-MD5, etc.)
29 #smtp_auth =
29 #smtp_auth =
30
30
31 [server:main]
31 [server:main]
32 ## PASTE
32 ## PASTE
33 ##nr of threads to spawn
33 ##nr of threads to spawn
34 threadpool_workers = 5
34 threadpool_workers = 5
35
35
36 ##max request before thread respawn
36 ##max request before thread respawn
37 threadpool_max_requests = 10
37 threadpool_max_requests = 10
38
38
39 ##option to use threads of process
39 ##option to use threads of process
40 use_threadpool = true
40 use_threadpool = true
41
41
42 use = egg:Paste#http
42 use = egg:Paste#http
43
43
44 #WAITRESS
44 #WAITRESS
45 threads = 5
45 threads = 5
46 use = egg:waitress#main
46 use = egg:waitress#main
47
47
48 host = 127.0.0.1
48 host = 127.0.0.1
49 port = 8001
49 port = 8001
50
50
51 [filter:proxy-prefix]
51 [filter:proxy-prefix]
52 # prefix middleware for rc
52 # prefix middleware for rc
53 use = egg:PasteDeploy#prefix
53 use = egg:PasteDeploy#prefix
54 prefix = /<your-prefix>
54 prefix = /<your-prefix>
55
55
56 [app:main]
56 [app:main]
57 use = egg:rhodecode
57 use = egg:rhodecode
58 #filter-with = proxy-prefix
58 #filter-with = proxy-prefix
59 full_stack = true
59 full_stack = true
60 static_files = true
60 static_files = true
61 # Optional Languages
61 # Optional Languages
62 # en, fr, ja, pt_BR, zh_CN, zh_TW, pl
62 # en, fr, ja, pt_BR, zh_CN, zh_TW, pl
63 lang = en
63 lang = en
64 cache_dir = /tmp/rc/data
64 cache_dir = /tmp/rc/data
65 index_dir = /tmp/rc/index
65 index_dir = /tmp/rc/index
66 app_instance_uuid = develop-test
66 app_instance_uuid = develop-test
67 cut_off_limit = 256000
67 cut_off_limit = 256000
68 vcs_full_cache = True
68 vcs_full_cache = False
69 # force https in RhodeCode, fixes https redirects, assumes it's always https
69 # force https in RhodeCode, fixes https redirects, assumes it's always https
70 force_https = false
70 force_https = false
71 # use Strict-Transport-Security headers
71 # use Strict-Transport-Security headers
72 use_htsts = false
72 use_htsts = false
73 commit_parse_limit = 25
73 commit_parse_limit = 25
74 # number of items displayed in lightweight dashboard before paginating
74 # number of items displayed in lightweight dashboard before paginating
75 dashboard_items = 100
75 dashboard_items = 100
76 use_gravatar = true
76 use_gravatar = true
77
77
78 # path to git executable
78 # path to git executable
79 git_path = git
79 git_path = git
80
80
81 ## RSS feed options
81 ## RSS feed options
82
82
83 rss_cut_off_limit = 256000
83 rss_cut_off_limit = 256000
84 rss_items_per_page = 10
84 rss_items_per_page = 10
85 rss_include_diff = false
85 rss_include_diff = false
86
86
87
87
88 ## alternative_gravatar_url allows you to use your own avatar server application
88 ## alternative_gravatar_url allows you to use your own avatar server application
89 ## the following parts of the URL will be replaced
89 ## the following parts of the URL will be replaced
90 ## {email} user email
90 ## {email} user email
91 ## {md5email} md5 hash of the user email (like at gravatar.com)
91 ## {md5email} md5 hash of the user email (like at gravatar.com)
92 ## {size} size of the image that is expected from the server application
92 ## {size} size of the image that is expected from the server application
93 ## {scheme} http/https from RhodeCode server
93 ## {scheme} http/https from RhodeCode server
94 ## {netloc} network location from RhodeCode server
94 ## {netloc} network location from RhodeCode server
95 #alternative_gravatar_url = http://myavatarserver.com/getbyemail/{email}/{size}
95 #alternative_gravatar_url = http://myavatarserver.com/getbyemail/{email}/{size}
96 #alternative_gravatar_url = http://myavatarserver.com/getbymd5/{md5email}?s={size}
96 #alternative_gravatar_url = http://myavatarserver.com/getbymd5/{md5email}?s={size}
97
97
98 container_auth_enabled = false
98 container_auth_enabled = false
99 proxypass_auth_enabled = false
99 proxypass_auth_enabled = false
100 ## default encoding used to convert from and to unicode
100 ## default encoding used to convert from and to unicode
101 ## can be also a comma seperated list of encoding in case of mixed encodings
101 ## can be also a comma seperated list of encoding in case of mixed encodings
102 default_encoding = utf8
102 default_encoding = utf8
103
103
104 ## overwrite schema of clone url
104 ## overwrite schema of clone url
105 ## available vars:
105 ## available vars:
106 ## scheme - http/https
106 ## scheme - http/https
107 ## user - current user
107 ## user - current user
108 ## pass - password
108 ## pass - password
109 ## netloc - network location
109 ## netloc - network location
110 ## path - usually repo_name
110 ## path - usually repo_name
111
111
112 #clone_uri = {scheme}://{user}{pass}{netloc}{path}
112 #clone_uri = {scheme}://{user}{pass}{netloc}{path}
113
113
114 ## issue tracking mapping for commits messages
114 ## issue tracking mapping for commits messages
115 ## comment out issue_pat, issue_server, issue_prefix to enable
115 ## comment out issue_pat, issue_server, issue_prefix to enable
116
116
117 ## pattern to get the issues from commit messages
117 ## pattern to get the issues from commit messages
118 ## default one used here is #<numbers> with a regex passive group for `#`
118 ## default one used here is #<numbers> with a regex passive group for `#`
119 ## {id} will be all groups matched from this pattern
119 ## {id} will be all groups matched from this pattern
120
120
121 issue_pat = (?:\s*#)(\d+)
121 issue_pat = (?:\s*#)(\d+)
122
122
123 ## server url to the issue, each {id} will be replaced with match
123 ## server url to the issue, each {id} will be replaced with match
124 ## fetched from the regex and {repo} is replaced with full repository name
124 ## fetched from the regex and {repo} is replaced with full repository name
125 ## including groups {repo_name} is replaced with just name of repo
125 ## including groups {repo_name} is replaced with just name of repo
126
126
127 issue_server_link = https://myissueserver.com/{repo}/issue/{id}
127 issue_server_link = https://myissueserver.com/{repo}/issue/{id}
128
128
129 ## prefix to add to link to indicate it's an url
129 ## prefix to add to link to indicate it's an url
130 ## #314 will be replaced by <issue_prefix><id>
130 ## #314 will be replaced by <issue_prefix><id>
131
131
132 issue_prefix = #
132 issue_prefix = #
133
133
134 ## issue_pat, issue_server_link, issue_prefix can have suffixes to specify
134 ## issue_pat, issue_server_link, issue_prefix can have suffixes to specify
135 ## multiple patterns, to other issues server, wiki or others
135 ## multiple patterns, to other issues server, wiki or others
136 ## below an example how to create a wiki pattern
136 ## below an example how to create a wiki pattern
137 # #wiki-some-id -> https://mywiki.com/some-id
137 # #wiki-some-id -> https://mywiki.com/some-id
138
138
139 #issue_pat_wiki = (?:wiki-)(.+)
139 #issue_pat_wiki = (?:wiki-)(.+)
140 #issue_server_link_wiki = https://mywiki.com/{id}
140 #issue_server_link_wiki = https://mywiki.com/{id}
141 #issue_prefix_wiki = WIKI-
141 #issue_prefix_wiki = WIKI-
142
142
143
143
144 ## instance-id prefix
144 ## instance-id prefix
145 ## a prefix key for this instance used for cache invalidation when running
145 ## a prefix key for this instance used for cache invalidation when running
146 ## multiple instances of rhodecode, make sure it's globally unique for
146 ## multiple instances of rhodecode, make sure it's globally unique for
147 ## all running rhodecode instances. Leave empty if you don't use it
147 ## all running rhodecode instances. Leave empty if you don't use it
148 instance_id =
148 instance_id =
149
149
150 ## alternative return HTTP header for failed authentication. Default HTTP
150 ## alternative return HTTP header for failed authentication. Default HTTP
151 ## response is 401 HTTPUnauthorized. Currently HG clients have troubles with
151 ## response is 401 HTTPUnauthorized. Currently HG clients have troubles with
152 ## handling that. Set this variable to 403 to return HTTPForbidden
152 ## handling that. Set this variable to 403 to return HTTPForbidden
153 auth_ret_code =
153 auth_ret_code =
154
154
155 ####################################
155 ####################################
156 ### CELERY CONFIG ####
156 ### CELERY CONFIG ####
157 ####################################
157 ####################################
158 use_celery = false
158 use_celery = false
159 broker.host = localhost
159 broker.host = localhost
160 broker.vhost = rabbitmqhost
160 broker.vhost = rabbitmqhost
161 broker.port = 5672
161 broker.port = 5672
162 broker.user = rabbitmq
162 broker.user = rabbitmq
163 broker.password = qweqwe
163 broker.password = qweqwe
164
164
165 celery.imports = rhodecode.lib.celerylib.tasks
165 celery.imports = rhodecode.lib.celerylib.tasks
166
166
167 celery.result.backend = amqp
167 celery.result.backend = amqp
168 celery.result.dburi = amqp://
168 celery.result.dburi = amqp://
169 celery.result.serialier = json
169 celery.result.serialier = json
170
170
171 #celery.send.task.error.emails = true
171 #celery.send.task.error.emails = true
172 #celery.amqp.task.result.expires = 18000
172 #celery.amqp.task.result.expires = 18000
173
173
174 celeryd.concurrency = 2
174 celeryd.concurrency = 2
175 #celeryd.log.file = celeryd.log
175 #celeryd.log.file = celeryd.log
176 celeryd.log.level = debug
176 celeryd.log.level = debug
177 celeryd.max.tasks.per.child = 1
177 celeryd.max.tasks.per.child = 1
178
178
179 #tasks will never be sent to the queue, but executed locally instead.
179 #tasks will never be sent to the queue, but executed locally instead.
180 celery.always.eager = false
180 celery.always.eager = false
181
181
182 ####################################
182 ####################################
183 ### BEAKER CACHE ####
183 ### BEAKER CACHE ####
184 ####################################
184 ####################################
185 beaker.cache.data_dir=/tmp/rc/data/cache/data
185 beaker.cache.data_dir=/tmp/rc/data/cache/data
186 beaker.cache.lock_dir=/tmp/rc/data/cache/lock
186 beaker.cache.lock_dir=/tmp/rc/data/cache/lock
187
187
188 beaker.cache.regions=super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long
188 beaker.cache.regions=super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long
189
189
190 beaker.cache.super_short_term.type=memory
190 beaker.cache.super_short_term.type=memory
191 beaker.cache.super_short_term.expire=1
191 beaker.cache.super_short_term.expire=1
192 beaker.cache.super_short_term.key_length = 256
192 beaker.cache.super_short_term.key_length = 256
193
193
194 beaker.cache.short_term.type=memory
194 beaker.cache.short_term.type=memory
195 beaker.cache.short_term.expire=60
195 beaker.cache.short_term.expire=60
196 beaker.cache.short_term.key_length = 256
196 beaker.cache.short_term.key_length = 256
197
197
198 beaker.cache.long_term.type=memory
198 beaker.cache.long_term.type=memory
199 beaker.cache.long_term.expire=36000
199 beaker.cache.long_term.expire=36000
200 beaker.cache.long_term.key_length = 256
200 beaker.cache.long_term.key_length = 256
201
201
202 beaker.cache.sql_cache_short.type=memory
202 beaker.cache.sql_cache_short.type=memory
203 beaker.cache.sql_cache_short.expire=1
203 beaker.cache.sql_cache_short.expire=1
204 beaker.cache.sql_cache_short.key_length = 256
204 beaker.cache.sql_cache_short.key_length = 256
205
205
206 beaker.cache.sql_cache_med.type=memory
206 beaker.cache.sql_cache_med.type=memory
207 beaker.cache.sql_cache_med.expire=360
207 beaker.cache.sql_cache_med.expire=360
208 beaker.cache.sql_cache_med.key_length = 256
208 beaker.cache.sql_cache_med.key_length = 256
209
209
210 beaker.cache.sql_cache_long.type=file
210 beaker.cache.sql_cache_long.type=file
211 beaker.cache.sql_cache_long.expire=3600
211 beaker.cache.sql_cache_long.expire=3600
212 beaker.cache.sql_cache_long.key_length = 256
212 beaker.cache.sql_cache_long.key_length = 256
213
213
214 ####################################
214 ####################################
215 ### BEAKER SESSION ####
215 ### BEAKER SESSION ####
216 ####################################
216 ####################################
217 ## Type of storage used for the session, current types are
217 ## Type of storage used for the session, current types are
218 ## dbm, file, memcached, database, and memory.
218 ## dbm, file, memcached, database, and memory.
219 ## The storage uses the Container API
219 ## The storage uses the Container API
220 ## that is also used by the cache system.
220 ## that is also used by the cache system.
221
221
222 ## db session ##
222 ## db session ##
223 #beaker.session.type = ext:database
223 #beaker.session.type = ext:database
224 #beaker.session.sa.url = postgresql://postgres:qwe@localhost/rhodecode
224 #beaker.session.sa.url = postgresql://postgres:qwe@localhost/rhodecode
225 #beaker.session.table_name = db_session
225 #beaker.session.table_name = db_session
226
226
227 ## encrypted cookie client side session, good for many instances ##
227 ## encrypted cookie client side session, good for many instances ##
228 #beaker.session.type = cookie
228 #beaker.session.type = cookie
229
229
230 ## file based cookies (default) ##
230 ## file based cookies (default) ##
231 #beaker.session.type = file
231 #beaker.session.type = file
232
232
233
233
234 beaker.session.key = rhodecode
234 beaker.session.key = rhodecode
235 ## secure cookie requires AES python libraries ##
235 ## secure cookie requires AES python libraries ##
236 #beaker.session.encrypt_key = g654dcno0-9873jhgfreyu
236 #beaker.session.encrypt_key = g654dcno0-9873jhgfreyu
237 #beaker.session.validate_key = 9712sds2212c--zxc123
237 #beaker.session.validate_key = 9712sds2212c--zxc123
238 ## sets session as invalid if it haven't been accessed for given amount of time
238 ## sets session as invalid if it haven't been accessed for given amount of time
239 beaker.session.timeout = 3600
239 beaker.session.timeout = 3600
240 beaker.session.httponly = true
240 beaker.session.httponly = true
241 #beaker.session.cookie_path = /<your-prefix>
241 #beaker.session.cookie_path = /<your-prefix>
242
242
243 ## uncomment for https secure cookie ##
243 ## uncomment for https secure cookie ##
244 beaker.session.secure = false
244 beaker.session.secure = false
245
245
246 ## auto save the session to not to use .save() ##
246 ## auto save the session to not to use .save() ##
247 beaker.session.auto = False
247 beaker.session.auto = False
248
248
249 ## default cookie expiration time in seconds `true` expire at browser close ##
249 ## default cookie expiration time in seconds `true` expire at browser close ##
250 #beaker.session.cookie_expires = 3600
250 #beaker.session.cookie_expires = 3600
251
251
252
252
253 ################################################################################
253 ################################################################################
254 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
254 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
255 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
255 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
256 ## execute malicious code after an exception is raised. ##
256 ## execute malicious code after an exception is raised. ##
257 ################################################################################
257 ################################################################################
258 set debug = false
258 set debug = false
259
259
260 ##################################
260 ##################################
261 ### LOGVIEW CONFIG ###
261 ### LOGVIEW CONFIG ###
262 ##################################
262 ##################################
263 logview.sqlalchemy = #faa
263 logview.sqlalchemy = #faa
264 logview.pylons.templating = #bfb
264 logview.pylons.templating = #bfb
265 logview.pylons.util = #eee
265 logview.pylons.util = #eee
266
266
267 #########################################################
267 #########################################################
268 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###
268 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###
269 #########################################################
269 #########################################################
270 sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode_test.sqlite
270 sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode_test.sqlite
271 #sqlalchemy.db1.url = postgresql://postgres:qwe@localhost/rhodecode_test
271 #sqlalchemy.db1.url = postgresql://postgres:qwe@localhost/rhodecode_test
272 #sqlalchemy.db1.url = mysql://root:qwe@localhost/rhodecode_test
272 #sqlalchemy.db1.url = mysql://root:qwe@localhost/rhodecode_test
273
273
274 sqlalchemy.db1.echo = false
274 sqlalchemy.db1.echo = false
275 sqlalchemy.db1.pool_recycle = 3600
275 sqlalchemy.db1.pool_recycle = 3600
276 sqlalchemy.db1.convert_unicode = true
276 sqlalchemy.db1.convert_unicode = true
277
277
278 ################################
278 ################################
279 ### LOGGING CONFIGURATION ####
279 ### LOGGING CONFIGURATION ####
280 ################################
280 ################################
281 [loggers]
281 [loggers]
282 keys = root, routes, rhodecode, sqlalchemy, beaker, templates, whoosh_indexer
282 keys = root, routes, rhodecode, sqlalchemy, beaker, templates, whoosh_indexer
283
283
284 [handlers]
284 [handlers]
285 keys = console
285 keys = console
286
286
287 [formatters]
287 [formatters]
288 keys = generic, color_formatter
288 keys = generic, color_formatter
289
289
290 #############
290 #############
291 ## LOGGERS ##
291 ## LOGGERS ##
292 #############
292 #############
293 [logger_root]
293 [logger_root]
294 level = DEBUG
294 level = DEBUG
295 handlers = console
295 handlers = console
296
296
297 [logger_routes]
297 [logger_routes]
298 level = DEBUG
298 level = DEBUG
299 handlers =
299 handlers =
300 qualname = routes.middleware
300 qualname = routes.middleware
301 # "level = DEBUG" logs the route matched and routing variables.
301 # "level = DEBUG" logs the route matched and routing variables.
302 propagate = 1
302 propagate = 1
303
303
304 [logger_beaker]
304 [logger_beaker]
305 level = DEBUG
305 level = DEBUG
306 handlers =
306 handlers =
307 qualname = beaker.container
307 qualname = beaker.container
308 propagate = 1
308 propagate = 1
309
309
310 [logger_templates]
310 [logger_templates]
311 level = INFO
311 level = INFO
312 handlers =
312 handlers =
313 qualname = pylons.templating
313 qualname = pylons.templating
314 propagate = 1
314 propagate = 1
315
315
316 [logger_rhodecode]
316 [logger_rhodecode]
317 level = DEBUG
317 level = DEBUG
318 handlers =
318 handlers =
319 qualname = rhodecode
319 qualname = rhodecode
320 propagate = 1
320 propagate = 1
321
321
322 [logger_sqlalchemy]
322 [logger_sqlalchemy]
323 level = ERROR
323 level = ERROR
324 handlers = console
324 handlers = console
325 qualname = sqlalchemy.engine
325 qualname = sqlalchemy.engine
326 propagate = 0
326 propagate = 0
327
327
328 [logger_whoosh_indexer]
328 [logger_whoosh_indexer]
329 level = DEBUG
329 level = DEBUG
330 handlers =
330 handlers =
331 qualname = whoosh_indexer
331 qualname = whoosh_indexer
332 propagate = 1
332 propagate = 1
333
333
334 ##############
334 ##############
335 ## HANDLERS ##
335 ## HANDLERS ##
336 ##############
336 ##############
337
337
338 [handler_console]
338 [handler_console]
339 class = StreamHandler
339 class = StreamHandler
340 args = (sys.stderr,)
340 args = (sys.stderr,)
341 level = NOTSET
341 level = NOTSET
342 formatter = generic
342 formatter = generic
343
343
344 ################
344 ################
345 ## FORMATTERS ##
345 ## FORMATTERS ##
346 ################
346 ################
347
347
348 [formatter_generic]
348 [formatter_generic]
349 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
349 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
350 datefmt = %Y-%m-%d %H:%M:%S
350 datefmt = %Y-%m-%d %H:%M:%S
351
351
352 [formatter_color_formatter]
352 [formatter_color_formatter]
353 class=rhodecode.lib.colored_formatter.ColorFormatter
353 class=rhodecode.lib.colored_formatter.ColorFormatter
354 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
354 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
355 datefmt = %Y-%m-%d %H:%M:%S
355 datefmt = %Y-%m-%d %H:%M:%S
General Comments 0
You need to be logged in to leave comments. Login now