]> git.immae.eu Git - github/wallabag/wallabag.git/blob - app/config/config.yml
Merge pull request #2708 from jcharaoui/import-disablecontentupdate
[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
66 wallabag_user:
67 registration_enabled: "%fosuser_registration%"
68
69 wallabag_import:
70 allow_mimetypes: ['application/octet-stream', 'application/json', 'text/plain', 'text/csv']
71 resource_dir: "%kernel.root_dir%/../web/uploads/import"
72
73 # Twig Configuration
74 twig:
75 debug: "%kernel.debug%"
76 strict_variables: "%kernel.debug%"
77 form_themes:
78 - "LexikFormFilterBundle:Form:form_div_layout.html.twig"
79 exception_controller: wallabag_core.exception_controller:showAction
80
81 # Doctrine Configuration
82 doctrine:
83 dbal:
84 driver: "%database_driver%"
85 host: "%database_host%"
86 port: "%database_port%"
87 dbname: "%database_name%"
88 user: "%database_user%"
89 password: "%database_password%"
90 charset: "%database_charset%"
91 path: "%database_path%"
92 unix_socket: "%database_socket%"
93 server_version: 5.6
94
95 orm:
96 auto_generate_proxy_classes: "%kernel.debug%"
97 entity_managers:
98 default:
99 auto_mapping: true
100
101 stof_doctrine_extensions:
102 default_locale: "%locale%"
103 translation_fallback: true
104 orm:
105 default:
106 tree: true
107 sluggable: true
108
109 doctrine_migrations:
110 dir_name: "%kernel.root_dir%/DoctrineMigrations"
111 namespace: Application\Migrations
112 table_name: migration_versions
113 name: Application Migrations
114
115 # Swiftmailer Configuration
116 swiftmailer:
117 transport: "%mailer_transport%"
118 host: "%mailer_host%"
119 username: "%mailer_user%"
120 password: "%mailer_password%"
121 spool:
122 type: memory
123
124 fos_rest:
125 param_fetcher_listener: true
126 body_listener: true
127 view:
128 mime_types:
129 csv:
130 - 'text/csv'
131 - 'text/plain'
132 pdf:
133 - 'application/pdf'
134 epub:
135 - 'application/epub+zip'
136 mobi:
137 - 'application/x-mobipocket-ebook'
138 view_response_listener: 'force'
139 formats:
140 xml: true
141 json: true
142 txt: true
143 csv: true
144 pdf: true
145 epub: true
146 mobi: true
147 templating_formats:
148 html: true
149 force_redirects:
150 html: true
151 failed_validation: HTTP_BAD_REQUEST
152 default_engine: twig
153 routing_loader:
154 default_format: json
155 format_listener:
156 enabled: true
157 rules:
158 - { path: "^/api/entries/([0-9]+)/export.(.*)", priorities: ['epub', 'mobi', 'pdf', 'txt', 'csv'], fallback_format: json, prefer_extension: false }
159 - { path: "^/api", priorities: ['json', 'xml'], fallback_format: json, prefer_extension: false }
160 - { path: "^/annotations", priorities: ['json', 'xml'], fallback_format: json, prefer_extension: false }
161 # for an unknown reason, EACH REQUEST goes to FOS\RestBundle\EventListener\FormatListener
162 # so we need to add custom rule for custom api export but also for all other routes of the application...
163 - { path: '^/', priorities: ['text/html', '*/*'], fallback_format: html, prefer_extension: false }
164
165 nelmio_api_doc:
166 sandbox:
167 enabled: false
168 cache:
169 enabled: true
170 name: wallabag API documentation
171
172 nelmio_cors:
173 defaults:
174 allow_credentials: false
175 allow_origin: []
176 allow_headers: []
177 allow_methods: []
178 expose_headers: []
179 max_age: 0
180 hosts: []
181 #origin_regex: false
182 paths:
183 '^/api/':
184 allow_origin: ['*']
185 allow_headers: ['X-Custom-Auth']
186 allow_methods: ['POST', 'PUT', 'PATCH','GET', 'DELETE']
187 max_age: 3600
188 '^/oauth/':
189 allow_origin: ['*']
190 allow_headers: ['X-Custom-Auth']
191 allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
192 max_age: 3600
193 '^/':
194 #origin_regex: true
195 allow_origin: ['^http://localhost:[0-9]+']
196 allow_headers: ['X-Custom-Auth']
197 allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
198 max_age: 3600
199 hosts: ['^api\.']
200
201 liip_theme:
202 load_controllers: false
203 themes:
204 - baggy
205 - material
206 autodetect_theme: wallabag_core.helper.detect_active_theme
207
208 path_patterns:
209 bundle_resource:
210 - "%%bundle_path%%/Resources/views/themes/%%current_theme%%/%%template%%"
211
212 fos_user:
213 db_driver: orm
214 firewall_name: secured_area
215 user_class: Wallabag\UserBundle\Entity\User
216 registration:
217 confirmation:
218 enabled: "%fosuser_confirmation%"
219 from_email:
220 address: "%from_email%"
221 sender_name: wallabag
222
223 fos_oauth_server:
224 db_driver: orm
225 client_class: Wallabag\ApiBundle\Entity\Client
226 access_token_class: Wallabag\ApiBundle\Entity\AccessToken
227 refresh_token_class: Wallabag\ApiBundle\Entity\RefreshToken
228 auth_code_class: Wallabag\ApiBundle\Entity\AuthCode
229 service:
230 user_provider: fos_user.user_provider.username_email
231 options:
232 refresh_token_lifetime: 1209600
233
234 scheb_two_factor:
235 trusted_computer:
236 enabled: true
237 cookie_name: wllbg_trusted_computer
238 cookie_lifetime: 2592000
239
240 email:
241 enabled: "%twofactor_auth%"
242 sender_email: "%twofactor_sender%"
243 digits: 6
244 template: WallabagUserBundle:Authentication:form.html.twig
245 mailer: wallabag_user.auth_code_mailer
246
247 kphoen_rulerz:
248 targets:
249 doctrine: true
250
251 old_sound_rabbit_mq:
252 connections:
253 default:
254 host: "%rabbitmq_host%"
255 port: "%rabbitmq_port%"
256 user: "%rabbitmq_user%"
257 password: "%rabbitmq_password%"
258 vhost: /
259 lazy: true
260 producers:
261 import_pocket:
262 connection: default
263 exchange_options:
264 name: 'wallabag.import.pocket'
265 type: topic
266 import_readability:
267 connection: default
268 exchange_options:
269 name: 'wallabag.import.readability'
270 type: topic
271 import_pinboard:
272 connection: default
273 exchange_options:
274 name: 'wallabag.import.pinboard'
275 type: topic
276 import_instapaper:
277 connection: default
278 exchange_options:
279 name: 'wallabag.import.instapaper'
280 type: topic
281 import_wallabag_v1:
282 connection: default
283 exchange_options:
284 name: 'wallabag.import.wallabag_v1'
285 type: topic
286 import_wallabag_v2:
287 connection: default
288 exchange_options:
289 name: 'wallabag.import.wallabag_v2'
290 type: topic
291 import_firefox:
292 connection: default
293 exchange_options:
294 name: 'wallabag.import.firefox'
295 type: topic
296 import_chrome:
297 connection: default
298 exchange_options:
299 name: 'wallabag.import.chrome'
300 type: topic
301 consumers:
302 import_pocket:
303 connection: default
304 exchange_options:
305 name: 'wallabag.import.pocket'
306 type: topic
307 queue_options:
308 name: 'wallabag.import.pocket'
309 callback: wallabag_import.consumer.amqp.pocket
310 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
311 import_readability:
312 connection: default
313 exchange_options:
314 name: 'wallabag.import.readability'
315 type: topic
316 queue_options:
317 name: 'wallabag.import.readability'
318 callback: wallabag_import.consumer.amqp.readability
319 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
320 import_instapaper:
321 connection: default
322 exchange_options:
323 name: 'wallabag.import.instapaper'
324 type: topic
325 queue_options:
326 name: 'wallabag.import.instapaper'
327 callback: wallabag_import.consumer.amqp.instapaper
328 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
329 import_pinboard:
330 connection: default
331 exchange_options:
332 name: 'wallabag.import.pinboard'
333 type: topic
334 queue_options:
335 name: 'wallabag.import.pinboard'
336 callback: wallabag_import.consumer.amqp.pinboard
337 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
338 import_wallabag_v1:
339 connection: default
340 exchange_options:
341 name: 'wallabag.import.wallabag_v1'
342 type: topic
343 queue_options:
344 name: 'wallabag.import.wallabag_v1'
345 callback: wallabag_import.consumer.amqp.wallabag_v1
346 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
347 import_wallabag_v2:
348 connection: default
349 exchange_options:
350 name: 'wallabag.import.wallabag_v2'
351 type: topic
352 queue_options:
353 name: 'wallabag.import.wallabag_v2'
354 callback: wallabag_import.consumer.amqp.wallabag_v2
355 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
356 import_firefox:
357 connection: default
358 exchange_options:
359 name: 'wallabag.import.firefox'
360 type: topic
361 queue_options:
362 name: 'wallabag.import.firefox'
363 callback: wallabag_import.consumer.amqp.firefox
364 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
365 import_chrome:
366 connection: default
367 exchange_options:
368 name: 'wallabag.import.chrome'
369 type: topic
370 queue_options:
371 name: 'wallabag.import.chrome'
372 callback: wallabag_import.consumer.amqp.chrome
373 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
374
375 fos_js_routing:
376 routes_to_expose:
377 - homepage
378 - starred
379 - archive
380 - all
381 - tag
382 - config
383 - import
384 - developer
385 - howto
386 - fos_user_security_logout
387 - new