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