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