##// 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 # 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
21
21 #smtp_server = mail.server.com
22 #smtp_server = mail.server.com
22 #smtp_username =
23 #smtp_username =
23 #smtp_password =
24 #smtp_password =
24 #smtp_port =
25 #smtp_port =
25 #smtp_use_tls = false
26 #smtp_use_tls = false
26 #smtp_use_ssl = true
27 #smtp_use_ssl = true
28 # Specify available auth parameters here (e.g. LOGIN PLAIN CRAM-MD5, etc.)
29 #smtp_auth =
27
30
28 [server:main]
31 [server:main]
29 ##nr of threads to spawn
32 ##nr of threads to spawn
30 threadpool_workers = 5
33 threadpool_workers = 5
31
34
32 ##max request before thread respawn
35 ##max request before thread respawn
33 threadpool_max_requests = 2
36 threadpool_max_requests = 2
34
37
35 ##option to use threads of process
38 ##option to use threads of process
36 use_threadpool = true
39 use_threadpool = true
37
40
38 use = egg:Paste#http
41 use = egg:Paste#http
39 host = 127.0.0.1
42 host = 127.0.0.1
40 port = 5000
43 port = 5000
41
44
42 [app:main]
45 [app:main]
43 use = egg:rhodecode
46 use = egg:rhodecode
44 full_stack = true
47 full_stack = true
45 static_files = true
48 static_files = true
46 lang=en
49 lang=en
47 cache_dir = /tmp/data
50 cache_dir = /tmp/data
48 index_dir = /tmp/index
51 index_dir = /tmp/index
49 app_instance_uuid = develop-test
52 app_instance_uuid = develop-test
50 cut_off_limit = 256000
53 cut_off_limit = 256000
51 force_https = false
54 force_https = false
52 commit_parse_limit = 25
55 commit_parse_limit = 25
53 use_gravatar = true
56 use_gravatar = true
54 container_auth_enabled = false
57 container_auth_enabled = false
55 proxypass_auth_enabled = false
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 ### CELERY CONFIG ####
97 ### CELERY CONFIG ####
59 ####################################
98 ####################################
60 use_celery = false
99 use_celery = false
61 broker.host = localhost
100 broker.host = localhost
62 broker.vhost = rabbitmqhost
101 broker.vhost = rabbitmqhost
63 broker.port = 5672
102 broker.port = 5672
64 broker.user = rabbitmq
103 broker.user = rabbitmq
65 broker.password = qweqwe
104 broker.password = qweqwe
66
105
67 celery.imports = rhodecode.lib.celerylib.tasks
106 celery.imports = rhodecode.lib.celerylib.tasks
68
107
69 celery.result.backend = amqp
108 celery.result.backend = amqp
70 celery.result.dburi = amqp://
109 celery.result.dburi = amqp://
71 celery.result.serialier = json
110 celery.result.serialier = json
72
111
73 #celery.send.task.error.emails = true
112 #celery.send.task.error.emails = true
74 #celery.amqp.task.result.expires = 18000
113 #celery.amqp.task.result.expires = 18000
75
114
76 celeryd.concurrency = 2
115 celeryd.concurrency = 2
77 #celeryd.log.file = celeryd.log
116 #celeryd.log.file = celeryd.log
78 celeryd.log.level = debug
117 celeryd.log.level = debug
79 celeryd.max.tasks.per.child = 1
118 celeryd.max.tasks.per.child = 1
80
119
81 #tasks will never be sent to the queue, but executed locally instead.
120 #tasks will never be sent to the queue, but executed locally instead.
82 celery.always.eager = false
121 celery.always.eager = false
83
122
84 ####################################
123 ####################################
85 ### BEAKER CACHE ####
124 ### BEAKER CACHE ####
86 ####################################
125 ####################################
87 beaker.cache.data_dir=/tmp/data/cache/data
126 beaker.cache.data_dir=/tmp/data/cache/data
88 beaker.cache.lock_dir=/tmp/data/cache/lock
127 beaker.cache.lock_dir=/tmp/data/cache/lock
128
89 beaker.cache.regions=super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long
129 beaker.cache.regions=super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long
90
130
91 beaker.cache.super_short_term.type=memory
131 beaker.cache.super_short_term.type=memory
92 beaker.cache.super_short_term.expire=1
132 beaker.cache.super_short_term.expire=1
93 beaker.cache.super_short_term.key_length = 256
133 beaker.cache.super_short_term.key_length = 256
94
134
95 beaker.cache.short_term.type=memory
135 beaker.cache.short_term.type=memory
96 beaker.cache.short_term.expire=60
136 beaker.cache.short_term.expire=60
97 beaker.cache.short_term.key_length = 256
137 beaker.cache.short_term.key_length = 256
98
138
99 beaker.cache.long_term.type=memory
139 beaker.cache.long_term.type=memory
100 beaker.cache.long_term.expire=36000
140 beaker.cache.long_term.expire=36000
101 beaker.cache.long_term.key_length = 256
141 beaker.cache.long_term.key_length = 256
102
142
103 beaker.cache.sql_cache_short.type=memory
143 beaker.cache.sql_cache_short.type=memory
104 beaker.cache.sql_cache_short.expire=1
144 beaker.cache.sql_cache_short.expire=1
105 beaker.cache.sql_cache_short.key_length = 256
145 beaker.cache.sql_cache_short.key_length = 256
106
146
107 beaker.cache.sql_cache_med.type=memory
147 beaker.cache.sql_cache_med.type=memory
108 beaker.cache.sql_cache_med.expire=360
148 beaker.cache.sql_cache_med.expire=360
109 beaker.cache.sql_cache_med.key_length = 256
149 beaker.cache.sql_cache_med.key_length = 256
110
150
111 beaker.cache.sql_cache_long.type=file
151 beaker.cache.sql_cache_long.type=file
112 beaker.cache.sql_cache_long.expire=3600
152 beaker.cache.sql_cache_long.expire=3600
113 beaker.cache.sql_cache_long.key_length = 256
153 beaker.cache.sql_cache_long.key_length = 256
114
154
115 ####################################
155 ####################################
116 ### BEAKER SESSION ####
156 ### BEAKER SESSION ####
117 ####################################
157 ####################################
118 ## Type of storage used for the session, current types are
158 ## Type of storage used for the session, current types are
119 ## dbm, file, memcached, database, and memory.
159 ## dbm, file, memcached, database, and memory.
120 ## The storage uses the Container API
160 ## The storage uses the Container API
121 ##that is also used by the cache system.
161 ## that is also used by the cache system.
122 beaker.session.type = file
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 beaker.session.key = rhodecode
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 beaker.session.timeout = 36000
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 ##auto save the session to not to use .save()
183 ##auto save the session to not to use .save()
129 beaker.session.auto = False
184 beaker.session.auto = False
130
185
131 ##true exire at browser close
186 ##true exire at browser close
132 #beaker.session.cookie_expires = 3600
187 #beaker.session.cookie_expires = 3600
133
188
134
189
135 ################################################################################
190 ################################################################################
136 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
191 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
137 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
192 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
138 ## execute malicious code after an exception is raised. ##
193 ## execute malicious code after an exception is raised. ##
139 ################################################################################
194 ################################################################################
140 #set debug = false
195 #set debug = false
141
196
142 ##################################
197 ##################################
143 ### LOGVIEW CONFIG ###
198 ### LOGVIEW CONFIG ###
144 ##################################
199 ##################################
145 logview.sqlalchemy = #faa
200 logview.sqlalchemy = #faa
146 logview.pylons.templating = #bfb
201 logview.pylons.templating = #bfb
147 logview.pylons.util = #eee
202 logview.pylons.util = #eee
148
203
149 #########################################################
204 #########################################################
150 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###
205 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###
151 #########################################################
206 #########################################################
152 sqlalchemy.db1.url = sqlite:///%(here)s/test.db
207 sqlalchemy.db1.url = sqlite:///%(here)s/test.db
153 #sqlalchemy.db1.url = postgresql://postgres:qwe@localhost/rhodecode_tests
208 #sqlalchemy.db1.url = postgresql://postgres:qwe@localhost/rhodecode_tests
154 #sqlalchemy.db1.echo = false
209 #sqlalchemy.db1.echo = false
155 #sqlalchemy.db1.pool_recycle = 3600
210 #sqlalchemy.db1.pool_recycle = 3600
156 sqlalchemy.convert_unicode = true
211 sqlalchemy.convert_unicode = true
157
212
158 ################################
213 ################################
159 ### LOGGING CONFIGURATION ####
214 ### LOGGING CONFIGURATION ####
160 ################################
215 ################################
161 [loggers]
216 [loggers]
162 keys = root, routes, rhodecode, sqlalchemy, beaker, templates
217 keys = root, routes, rhodecode, sqlalchemy, beaker, templates, whoosh_indexer
163
218
164 [handlers]
219 [handlers]
165 keys = console
220 keys = console
166
221
167 [formatters]
222 [formatters]
168 keys = generic, color_formatter
223 keys = generic, color_formatter
169
224
170 #############
225 #############
171 ## LOGGERS ##
226 ## LOGGERS ##
172 #############
227 #############
173 [logger_root]
228 [logger_root]
174 level = ERROR
229 level = ERROR
175 handlers = console
230 handlers = console
176
231
177 [logger_routes]
232 [logger_routes]
178 level = ERROR
233 level = ERROR
179 handlers =
234 handlers =
180 qualname = routes.middleware
235 qualname = routes.middleware
181 # "level = DEBUG" logs the route matched and routing variables.
236 # "level = DEBUG" logs the route matched and routing variables.
182 propagate = 1
237 propagate = 1
183
238
184 [logger_beaker]
239 [logger_beaker]
185 level = DEBUG
240 level = DEBUG
186 handlers =
241 handlers =
187 qualname = beaker.container
242 qualname = beaker.container
188 propagate = 1
243 propagate = 1
189
244
190 [logger_templates]
245 [logger_templates]
191 level = INFO
246 level = INFO
192 handlers =
247 handlers =
193 qualname = pylons.templating
248 qualname = pylons.templating
194 propagate = 1
249 propagate = 1
195
250
196 [logger_rhodecode]
251 [logger_rhodecode]
197 level = ERROR
252 level = ERROR
198 handlers =
253 handlers =
199 qualname = rhodecode
254 qualname = rhodecode
200 propagate = 1
255 propagate = 1
201
256
202 [logger_sqlalchemy]
257 [logger_sqlalchemy]
203 level = ERROR
258 level = ERROR
204 handlers = console
259 handlers = console
205 qualname = sqlalchemy.engine
260 qualname = sqlalchemy.engine
206 propagate = 0
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 ## HANDLERS ##
270 ## HANDLERS ##
210 ##############
271 ##############
211
272
212 [handler_console]
273 [handler_console]
213 class = StreamHandler
274 class = StreamHandler
214 args = (sys.stderr,)
275 args = (sys.stderr,)
215 level = NOTSET
276 level = NOTSET
216 formatter = generic
277 formatter = generic
217
278
218 ################
279 ################
219 ## FORMATTERS ##
280 ## FORMATTERS ##
220 ################
281 ################
221
282
222 [formatter_generic]
283 [formatter_generic]
223 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
284 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
224 datefmt = %Y-%m-%d %H:%M:%S
285 datefmt = %Y-%m-%d %H:%M:%S
225
286
226 [formatter_color_formatter]
287 [formatter_color_formatter]
227 class=rhodecode.lib.colored_formatter.ColorFormatter
288 class=rhodecode.lib.colored_formatter.ColorFormatter
228 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
289 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
229 datefmt = %Y-%m-%d %H:%M:%S No newline at end of file
290 datefmt = %Y-%m-%d %H:%M:%S
General Comments 0
You need to be logged in to leave comments. Login now