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