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