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