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