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