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