##// END OF EJS Templates
Sync test.ini with development.ini
marcink -
r2558:ecdfa7a4 beta
parent child Browse files
Show More
@@ -1,292 +1,297 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 ##nr of threads to spawn
33 33 threadpool_workers = 5
34 34
35 35 ##max request before thread respawn
36 36 threadpool_max_requests = 2
37 37
38 38 ##option to use threads of process
39 39 use_threadpool = true
40 40
41 41 use = egg:Paste#http
42 42 host = 127.0.0.1
43 43 port = 5000
44 44
45 45 [app:main]
46 46 use = egg:rhodecode
47 47 full_stack = true
48 48 static_files = true
49 49 lang=en
50 50 cache_dir = /tmp/data
51 51 index_dir = /tmp/index
52 52 app_instance_uuid = develop-test
53 53 cut_off_limit = 256000
54 54 force_https = false
55 55 commit_parse_limit = 25
56 56 use_gravatar = true
57 57 container_auth_enabled = false
58 58 proxypass_auth_enabled = false
59 59
60 60
61 61 ## overwrite schema of clone url
62 62 ## available vars:
63 63 ## scheme - http/https
64 64 ## user - current user
65 65 ## pass - password
66 66 ## netloc - network location
67 67 ## path - usually repo_name
68 68
69 69 #clone_uri = {scheme}://{user}{pass}{netloc}{path}
70 70
71 71 ## issue tracking mapping for commits messages
72 72 ## comment out issue_pat, issue_server, issue_prefix to enable
73 73
74 74 ## pattern to get the issues from commit messages
75 75 ## default one used here is #<numbers> with a regex passive group for `#`
76 76 ## {id} will be all groups matched from this pattern
77 77
78 78 issue_pat = (?:\s*#)(\d+)
79 79
80 80 ## server url to the issue, each {id} will be replaced with match
81 81 ## fetched from the regex and {repo} is replaced with repository name
82 82
83 83 issue_server_link = https://myissueserver.com/{repo}/issue/{id}
84 84
85 85 ## prefix to add to link to indicate it's an url
86 86 ## #314 will be replaced by <issue_prefix><id>
87 87
88 88 issue_prefix = #
89 89
90 90 ## instance-id prefix
91 91 ## a prefix key for this instance used for cache invalidation when running
92 92 ## multiple instances of rhodecode, make sure it's globally unique for
93 93 ## all running rhodecode instances. Leave empty if you don't use it
94 94 instance_id =
95 95
96 ## alternative return HTTP header for failed authentication. Default HTTP
97 ## response is 401 HTTPUnauthorized. Currently HG clients have troubles with
98 ## handling that. Set this variable to 403 to return HTTPForbidden
99 auth_ret_code =
100
96 101 ####################################
97 102 ### CELERY CONFIG ####
98 103 ####################################
99 104 use_celery = false
100 105 broker.host = localhost
101 106 broker.vhost = rabbitmqhost
102 107 broker.port = 5672
103 108 broker.user = rabbitmq
104 109 broker.password = qweqwe
105 110
106 111 celery.imports = rhodecode.lib.celerylib.tasks
107 112
108 113 celery.result.backend = amqp
109 114 celery.result.dburi = amqp://
110 115 celery.result.serialier = json
111 116
112 117 #celery.send.task.error.emails = true
113 118 #celery.amqp.task.result.expires = 18000
114 119
115 120 celeryd.concurrency = 2
116 121 #celeryd.log.file = celeryd.log
117 122 celeryd.log.level = debug
118 123 celeryd.max.tasks.per.child = 1
119 124
120 125 #tasks will never be sent to the queue, but executed locally instead.
121 126 celery.always.eager = false
122 127
123 128 ####################################
124 129 ### BEAKER CACHE ####
125 130 ####################################
126 131 beaker.cache.data_dir=/tmp/data/cache/data
127 132 beaker.cache.lock_dir=/tmp/data/cache/lock
128 133
129 134 beaker.cache.regions=super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long
130 135
131 136 beaker.cache.super_short_term.type=memory
132 137 beaker.cache.super_short_term.expire=1
133 138 beaker.cache.super_short_term.key_length = 256
134 139
135 140 beaker.cache.short_term.type=memory
136 141 beaker.cache.short_term.expire=60
137 142 beaker.cache.short_term.key_length = 256
138 143
139 144 beaker.cache.long_term.type=memory
140 145 beaker.cache.long_term.expire=36000
141 146 beaker.cache.long_term.key_length = 256
142 147
143 148 beaker.cache.sql_cache_short.type=memory
144 149 beaker.cache.sql_cache_short.expire=1
145 150 beaker.cache.sql_cache_short.key_length = 256
146 151
147 152 beaker.cache.sql_cache_med.type=memory
148 153 beaker.cache.sql_cache_med.expire=360
149 154 beaker.cache.sql_cache_med.key_length = 256
150 155
151 156 beaker.cache.sql_cache_long.type=file
152 157 beaker.cache.sql_cache_long.expire=3600
153 158 beaker.cache.sql_cache_long.key_length = 256
154 159
155 160 ####################################
156 161 ### BEAKER SESSION ####
157 162 ####################################
158 163 ## Type of storage used for the session, current types are
159 164 ## dbm, file, memcached, database, and memory.
160 165 ## The storage uses the Container API
161 166 ## that is also used by the cache system.
162 167
163 168 ## db session example
164 169
165 170 #beaker.session.type = ext:database
166 171 #beaker.session.sa.url = postgresql://postgres:qwe@localhost/rhodecode
167 172 #beaker.session.table_name = db_session
168 173
169 174 ## encrypted cookie session, good for many instances
170 175 #beaker.session.type = cookie
171 176
172 177 beaker.session.type = file
173 178 beaker.session.key = rhodecode
174 179 # secure cookie requires AES python libraries
175 180 #beaker.session.encrypt_key = g654dcno0-9873jhgfreyu
176 181 #beaker.session.validate_key = 9712sds2212c--zxc123
177 182 beaker.session.timeout = 36000
178 183 beaker.session.httponly = true
179 184
180 185 ## uncomment for https secure cookie
181 186 beaker.session.secure = false
182 187
183 188 ##auto save the session to not to use .save()
184 189 beaker.session.auto = False
185 190
186 191 ##true exire at browser close
187 192 #beaker.session.cookie_expires = 3600
188 193
189 194
190 195 ################################################################################
191 196 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
192 197 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
193 198 ## execute malicious code after an exception is raised. ##
194 199 ################################################################################
195 200 #set debug = false
196 201
197 202 ##################################
198 203 ### LOGVIEW CONFIG ###
199 204 ##################################
200 205 logview.sqlalchemy = #faa
201 206 logview.pylons.templating = #bfb
202 207 logview.pylons.util = #eee
203 208
204 209 #########################################################
205 210 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###
206 211 #########################################################
207 212 sqlalchemy.db1.url = sqlite:///%(here)s/test.db
208 213 #sqlalchemy.db1.url = postgresql://postgres:qwe@localhost/rhodecode_tests
209 214 #sqlalchemy.db1.url = mysql://root:qwe123qwe@localhost/rhodecode_tests
210 215
211 216 sqlalchemy.db1.echo = false
212 217 sqlalchemy.db1.pool_recycle = 3600
213 218 sqlalchemy.db1.convert_unicode = true
214 219
215 220 ################################
216 221 ### LOGGING CONFIGURATION ####
217 222 ################################
218 223 [loggers]
219 224 keys = root, routes, rhodecode, sqlalchemy, beaker, templates, whoosh_indexer
220 225
221 226 [handlers]
222 227 keys = console
223 228
224 229 [formatters]
225 230 keys = generic, color_formatter
226 231
227 232 #############
228 233 ## LOGGERS ##
229 234 #############
230 235 [logger_root]
231 236 level = ERROR
232 237 handlers = console
233 238
234 239 [logger_routes]
235 240 level = ERROR
236 241 handlers =
237 242 qualname = routes.middleware
238 243 # "level = DEBUG" logs the route matched and routing variables.
239 244 propagate = 1
240 245
241 246 [logger_beaker]
242 247 level = DEBUG
243 248 handlers =
244 249 qualname = beaker.container
245 250 propagate = 1
246 251
247 252 [logger_templates]
248 253 level = INFO
249 254 handlers =
250 255 qualname = pylons.templating
251 256 propagate = 1
252 257
253 258 [logger_rhodecode]
254 259 level = ERROR
255 260 handlers =
256 261 qualname = rhodecode
257 262 propagate = 1
258 263
259 264 [logger_sqlalchemy]
260 265 level = ERROR
261 266 handlers = console
262 267 qualname = sqlalchemy.engine
263 268 propagate = 0
264 269
265 270 [logger_whoosh_indexer]
266 271 level = DEBUG
267 272 handlers =
268 273 qualname = whoosh_indexer
269 274 propagate = 1
270 275
271 276 ##############
272 277 ## HANDLERS ##
273 278 ##############
274 279
275 280 [handler_console]
276 281 class = StreamHandler
277 282 args = (sys.stderr,)
278 283 level = NOTSET
279 284 formatter = generic
280 285
281 286 ################
282 287 ## FORMATTERS ##
283 288 ################
284 289
285 290 [formatter_generic]
286 291 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
287 292 datefmt = %Y-%m-%d %H:%M:%S
288 293
289 294 [formatter_color_formatter]
290 295 class=rhodecode.lib.colored_formatter.ColorFormatter
291 296 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
292 297 datefmt = %Y-%m-%d %H:%M:%S No newline at end of file
General Comments 0
You need to be logged in to leave comments. Login now