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