]> git.immae.eu Git - github/wallabag/wallabag.git/blob - app/config/config.yml
b0d330ab5d3c7162fe721e31de6a510ab410fddf
[github/wallabag/wallabag.git] / app / config / config.yml
1 imports:
2 - { resource: parameters.yml }
3 - { resource: security.yml }
4 - { resource: services.yml }
5
6 parameters:
7 # Allows to use the live reload feature for changes in assets
8 use_webpack_dev_server: false
9 craue_config.cache_adapter.class: Craue\ConfigBundle\CacheAdapter\SymfonyCacheComponentAdapter
10
11 framework:
12 #esi: ~
13 translator:
14 enabled: true
15 fallback: "%locale%"
16 secret: "%secret%"
17 router:
18 resource: "%kernel.root_dir%/config/routing.yml"
19 strict_requirements: ~
20 form: ~
21 csrf_protection: ~
22 validation:
23 enable_annotations: true
24 templating:
25 engines: ['twig']
26 default_locale: "%locale%"
27 trusted_hosts: ~
28 trusted_proxies: ~
29 session:
30 # handler_id set to null will use default session handler from php.ini
31 handler_id: session.handler.native_file
32 save_path: "%kernel.root_dir%/../var/sessions/%kernel.environment%"
33 fragments: ~
34 http_method_override: true
35 assets: ~
36
37 wallabag_core:
38 version: 2.2.3
39 paypal_url: "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9UBA65LG3FX9Y&lc=gb"
40 languages:
41 en: 'English'
42 fr: 'Français'
43 de: 'Deutsch'
44 tr: 'Türkçe'
45 fa: 'فارسی'
46 ro: 'Română'
47 pl: 'Polish'
48 da: 'Dansk'
49 es: 'Español'
50 oc: 'Occitan'
51 it: 'Italiano'
52 pt: 'Português'
53 items_on_page: 12
54 theme: material
55 language: '%locale%'
56 rss_limit: 50
57 reading_speed: 1
58 cache_lifetime: 10
59 action_mark_as_read: 1
60 list_mode: 0
61 fetching_error_message_title: 'No title found'
62 fetching_error_message: |
63 wallabag can't retrieve contents for this article. Please <a href="http://doc.wallabag.org/en/user/errors_during_fetching.html#how-can-i-help-to-fix-that">troubleshoot this issue</a>.
64 api_limit_mass_actions: 10
65 default_internal_settings:
66 -
67 name: share_public
68 value: 1
69 section: entry
70 -
71 name: carrot
72 value: 1
73 section: entry
74 -
75 name: share_diaspora
76 value: 1
77 section: entry
78 -
79 name: diaspora_url
80 value: http://diasporapod.com
81 section: entry
82 -
83 name: share_unmark
84 value: 1
85 section: entry
86 -
87 name: unmark_url
88 value: https://unmark.it
89 section: entry
90 -
91 name: share_shaarli
92 value: 1
93 section: entry
94 -
95 name: share_scuttle
96 value: 1
97 section: entry
98 -
99 name: shaarli_url
100 value: http://myshaarli.com
101 section: entry
102 -
103 name: scuttle_url
104 value: http://scuttle.org
105 section: entry
106 -
107 name: share_mail
108 value: 1
109 section: entry
110 -
111 name: share_twitter
112 value: 1
113 section: entry
114 -
115 name: show_printlink
116 value: 1
117 section: entry
118 -
119 name: restricted_access
120 value: 0
121 section: entry
122 -
123 name: export_epub
124 value: 1
125 section: export
126 -
127 name: export_mobi
128 value: 1
129 section: export
130 -
131 name: export_pdf
132 value: 1
133 section: export
134 -
135 name: export_csv
136 value: 1
137 section: export
138 -
139 name: export_json
140 value: 1
141 section: export
142 -
143 name: export_txt
144 value: 1
145 section: export
146 -
147 name: export_xml
148 value: 1
149 section: export
150 -
151 name: import_with_redis
152 value: 0
153 section: import
154 -
155 name: import_with_rabbitmq
156 value: 0
157 section: import
158 -
159 name: piwik_enabled
160 value: 0
161 section: analytics
162 -
163 name: piwik_host
164 value: v2.wallabag.org
165 section: analytics
166 -
167 name: piwik_site_id
168 value: 1
169 section: analytics
170 -
171 name: demo_mode_enabled
172 value: 0
173 section: misc
174 -
175 name: demo_mode_username
176 value: wallabag
177 section: misc
178 -
179 name: download_images_enabled
180 value: 0
181 section: misc
182 -
183 name: wallabag_support_url
184 value: https://www.wallabag.org/pages/support.html
185 section: misc
186 -
187 name: wallabag_url
188 value: http://v2.wallabag.org
189 section: misc
190 -
191 name: api_user_registration
192 value: 0
193 section: api
194
195 wallabag_user:
196 registration_enabled: "%fosuser_registration%"
197
198 wallabag_import:
199 allow_mimetypes: ['application/octet-stream', 'application/json', 'text/plain', 'text/csv']
200 resource_dir: "%kernel.root_dir%/../web/uploads/import"
201
202 # Twig Configuration
203 twig:
204 debug: "%kernel.debug%"
205 strict_variables: "%kernel.debug%"
206 form_themes:
207 - "LexikFormFilterBundle:Form:form_div_layout.html.twig"
208 exception_controller: wallabag_core.exception_controller:showAction
209
210 # Doctrine Configuration
211 doctrine:
212 dbal:
213 driver: "%database_driver%"
214 host: "%database_host%"
215 port: "%database_port%"
216 dbname: "%database_name%"
217 user: "%database_user%"
218 password: "%database_password%"
219 charset: "%database_charset%"
220 path: "%database_path%"
221 unix_socket: "%database_socket%"
222 server_version: 5.6
223
224 orm:
225 auto_generate_proxy_classes: "%kernel.debug%"
226 entity_managers:
227 default:
228 auto_mapping: true
229
230 stof_doctrine_extensions:
231 default_locale: "%locale%"
232 translation_fallback: true
233 orm:
234 default:
235 tree: true
236 sluggable: true
237
238 doctrine_migrations:
239 dir_name: "%kernel.root_dir%/DoctrineMigrations"
240 namespace: Application\Migrations
241 table_name: migration_versions
242 name: Application Migrations
243
244 # Swiftmailer Configuration
245 swiftmailer:
246 transport: "%mailer_transport%"
247 host: "%mailer_host%"
248 username: "%mailer_user%"
249 password: "%mailer_password%"
250 spool:
251 type: memory
252
253 fos_rest:
254 param_fetcher_listener: true
255 body_listener: true
256 view:
257 mime_types:
258 csv:
259 - 'text/csv'
260 - 'text/plain'
261 pdf:
262 - 'application/pdf'
263 epub:
264 - 'application/epub+zip'
265 mobi:
266 - 'application/x-mobipocket-ebook'
267 view_response_listener: 'force'
268 formats:
269 xml: true
270 json: true
271 txt: true
272 csv: true
273 pdf: true
274 epub: true
275 mobi: true
276 templating_formats:
277 html: true
278 force_redirects:
279 html: true
280 failed_validation: HTTP_BAD_REQUEST
281 default_engine: twig
282 routing_loader:
283 default_format: json
284 format_listener:
285 enabled: true
286 rules:
287 - { path: "^/api/entries/([0-9]+)/export.(.*)", priorities: ['epub', 'mobi', 'pdf', 'txt', 'csv'], fallback_format: json, prefer_extension: false }
288 - { path: "^/api", priorities: ['json', 'xml'], fallback_format: json, prefer_extension: false }
289 - { path: "^/annotations", priorities: ['json', 'xml'], fallback_format: json, prefer_extension: false }
290 # for an unknown reason, EACH REQUEST goes to FOS\RestBundle\EventListener\FormatListener
291 # so we need to add custom rule for custom api export but also for all other routes of the application...
292 - { path: '^/', priorities: ['text/html', '*/*'], fallback_format: html, prefer_extension: false }
293
294 nelmio_api_doc:
295 sandbox:
296 enabled: false
297 cache:
298 enabled: true
299 name: wallabag API documentation
300
301 nelmio_cors:
302 defaults:
303 allow_credentials: false
304 allow_origin: []
305 allow_headers: []
306 allow_methods: []
307 expose_headers: []
308 max_age: 0
309 hosts: []
310 #origin_regex: false
311 paths:
312 '^/api/':
313 allow_origin: ['*']
314 allow_headers: ['X-Custom-Auth']
315 allow_methods: ['POST', 'PUT', 'PATCH','GET', 'DELETE']
316 max_age: 3600
317 '^/oauth/':
318 allow_origin: ['*']
319 allow_headers: ['X-Custom-Auth']
320 allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
321 max_age: 3600
322 '^/':
323 #origin_regex: true
324 allow_origin: ['^http://localhost:[0-9]+']
325 allow_headers: ['X-Custom-Auth']
326 allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
327 max_age: 3600
328 hosts: ['^api\.']
329
330 liip_theme:
331 load_controllers: false
332 themes:
333 - baggy
334 - material
335 autodetect_theme: wallabag_core.helper.detect_active_theme
336
337 path_patterns:
338 bundle_resource:
339 - "%%bundle_path%%/Resources/views/themes/%%current_theme%%/%%template%%"
340
341 fos_user:
342 db_driver: orm
343 firewall_name: secured_area
344 user_class: Wallabag\UserBundle\Entity\User
345 registration:
346 confirmation:
347 enabled: "%fosuser_confirmation%"
348 from_email:
349 address: "%from_email%"
350 sender_name: wallabag
351
352 fos_oauth_server:
353 db_driver: orm
354 client_class: Wallabag\ApiBundle\Entity\Client
355 access_token_class: Wallabag\ApiBundle\Entity\AccessToken
356 refresh_token_class: Wallabag\ApiBundle\Entity\RefreshToken
357 auth_code_class: Wallabag\ApiBundle\Entity\AuthCode
358 service:
359 user_provider: fos_user.user_provider.username_email
360 options:
361 refresh_token_lifetime: 1209600
362
363 scheb_two_factor:
364 trusted_computer:
365 enabled: true
366 cookie_name: wllbg_trusted_computer
367 cookie_lifetime: 2592000
368
369 email:
370 enabled: "%twofactor_auth%"
371 sender_email: "%twofactor_sender%"
372 digits: 6
373 template: WallabagUserBundle:Authentication:form.html.twig
374 mailer: wallabag_user.auth_code_mailer
375
376 kphoen_rulerz:
377 targets:
378 doctrine: true
379
380 old_sound_rabbit_mq:
381 connections:
382 default:
383 host: "%rabbitmq_host%"
384 port: "%rabbitmq_port%"
385 user: "%rabbitmq_user%"
386 password: "%rabbitmq_password%"
387 vhost: /
388 lazy: true
389 producers:
390 import_pocket:
391 connection: default
392 exchange_options:
393 name: 'wallabag.import.pocket'
394 type: topic
395 import_readability:
396 connection: default
397 exchange_options:
398 name: 'wallabag.import.readability'
399 type: topic
400 import_pinboard:
401 connection: default
402 exchange_options:
403 name: 'wallabag.import.pinboard'
404 type: topic
405 import_instapaper:
406 connection: default
407 exchange_options:
408 name: 'wallabag.import.instapaper'
409 type: topic
410 import_wallabag_v1:
411 connection: default
412 exchange_options:
413 name: 'wallabag.import.wallabag_v1'
414 type: topic
415 import_wallabag_v2:
416 connection: default
417 exchange_options:
418 name: 'wallabag.import.wallabag_v2'
419 type: topic
420 import_firefox:
421 connection: default
422 exchange_options:
423 name: 'wallabag.import.firefox'
424 type: topic
425 import_chrome:
426 connection: default
427 exchange_options:
428 name: 'wallabag.import.chrome'
429 type: topic
430 consumers:
431 import_pocket:
432 connection: default
433 exchange_options:
434 name: 'wallabag.import.pocket'
435 type: topic
436 queue_options:
437 name: 'wallabag.import.pocket'
438 callback: wallabag_import.consumer.amqp.pocket
439 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
440 import_readability:
441 connection: default
442 exchange_options:
443 name: 'wallabag.import.readability'
444 type: topic
445 queue_options:
446 name: 'wallabag.import.readability'
447 callback: wallabag_import.consumer.amqp.readability
448 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
449 import_instapaper:
450 connection: default
451 exchange_options:
452 name: 'wallabag.import.instapaper'
453 type: topic
454 queue_options:
455 name: 'wallabag.import.instapaper'
456 callback: wallabag_import.consumer.amqp.instapaper
457 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
458 import_pinboard:
459 connection: default
460 exchange_options:
461 name: 'wallabag.import.pinboard'
462 type: topic
463 queue_options:
464 name: 'wallabag.import.pinboard'
465 callback: wallabag_import.consumer.amqp.pinboard
466 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
467 import_wallabag_v1:
468 connection: default
469 exchange_options:
470 name: 'wallabag.import.wallabag_v1'
471 type: topic
472 queue_options:
473 name: 'wallabag.import.wallabag_v1'
474 callback: wallabag_import.consumer.amqp.wallabag_v1
475 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
476 import_wallabag_v2:
477 connection: default
478 exchange_options:
479 name: 'wallabag.import.wallabag_v2'
480 type: topic
481 queue_options:
482 name: 'wallabag.import.wallabag_v2'
483 callback: wallabag_import.consumer.amqp.wallabag_v2
484 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
485 import_firefox:
486 connection: default
487 exchange_options:
488 name: 'wallabag.import.firefox'
489 type: topic
490 queue_options:
491 name: 'wallabag.import.firefox'
492 callback: wallabag_import.consumer.amqp.firefox
493 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
494 import_chrome:
495 connection: default
496 exchange_options:
497 name: 'wallabag.import.chrome'
498 type: topic
499 queue_options:
500 name: 'wallabag.import.chrome'
501 callback: wallabag_import.consumer.amqp.chrome
502 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
503
504 fos_js_routing:
505 routes_to_expose:
506 - homepage
507 - starred
508 - archive
509 - all
510 - tag
511 - config
512 - import
513 - developer
514 - howto
515 - fos_user_security_logout
516 - new