]> git.immae.eu Git - github/wallabag/wallabag.git/blob - app/config/config.yml
451809d640557c86c553d39663702c0fdf229ca3
[github/wallabag/wallabag.git] / app / config / config.yml
1 imports:
2 - { resource: parameters.yml }
3 - { resource: security.yml }
4 - { resource: services.yml }
5
6 framework:
7 #esi: ~
8 translator:
9 enabled: true
10 fallback: "%locale%"
11 secret: "%secret%"
12 router:
13 resource: "%kernel.root_dir%/config/routing.yml"
14 strict_requirements: ~
15 form: ~
16 csrf_protection: ~
17 validation:
18 enable_annotations: true
19 templating:
20 engines: ['twig']
21 default_locale: "%locale%"
22 trusted_hosts: ~
23 trusted_proxies: ~
24 session:
25 # handler_id set to null will use default session handler from php.ini
26 handler_id: session.handler.native_file
27 save_path: "%kernel.root_dir%/../var/sessions/%kernel.environment%"
28 fragments: ~
29 http_method_override: true
30 assets: ~
31
32 wallabag_core:
33 version: 2.2.2
34 paypal_url: "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9UBA65LG3FX9Y&lc=gb"
35 languages:
36 en: 'English'
37 fr: 'Français'
38 de: 'Deutsch'
39 tr: 'Türkçe'
40 fa: 'فارسی'
41 ro: 'Română'
42 pl: 'Polish'
43 da: 'Dansk'
44 es: 'Español'
45 oc: 'Occitan'
46 it: 'Italiano'
47 pt: 'Português'
48 items_on_page: 12
49 theme: material
50 language: '%locale%'
51 rss_limit: 50
52 reading_speed: 1
53 cache_lifetime: 10
54 action_mark_as_read: 1
55 list_mode: 0
56 fetching_error_message: |
57 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>.
58 api_limit_mass_actions: 10
59
60 wallabag_user:
61 registration_enabled: "%fosuser_registration%"
62
63 wallabag_import:
64 allow_mimetypes: ['application/octet-stream', 'application/json', 'text/plain', 'text/csv']
65 resource_dir: "%kernel.root_dir%/../web/uploads/import"
66
67 # Twig Configuration
68 twig:
69 debug: "%kernel.debug%"
70 strict_variables: "%kernel.debug%"
71 form_themes:
72 - "LexikFormFilterBundle:Form:form_div_layout.html.twig"
73 exception_controller: wallabag_core.exception_controller:showAction
74
75 # Doctrine Configuration
76 doctrine:
77 dbal:
78 driver: "%database_driver%"
79 host: "%database_host%"
80 port: "%database_port%"
81 dbname: "%database_name%"
82 user: "%database_user%"
83 password: "%database_password%"
84 charset: "%database_charset%"
85 path: "%database_path%"
86 unix_socket: "%database_socket%"
87 server_version: 5.6
88
89 orm:
90 auto_generate_proxy_classes: "%kernel.debug%"
91 entity_managers:
92 default:
93 auto_mapping: true
94
95 stof_doctrine_extensions:
96 default_locale: "%locale%"
97 translation_fallback: true
98 orm:
99 default:
100 tree: true
101 sluggable: true
102
103 doctrine_migrations:
104 dir_name: "%kernel.root_dir%/DoctrineMigrations"
105 namespace: Application\Migrations
106 table_name: migration_versions
107 name: Application Migrations
108
109 # Swiftmailer Configuration
110 swiftmailer:
111 transport: "%mailer_transport%"
112 host: "%mailer_host%"
113 username: "%mailer_user%"
114 password: "%mailer_password%"
115 spool:
116 type: memory
117
118 fos_rest:
119 param_fetcher_listener: true
120 body_listener: true
121 view:
122 mime_types:
123 csv:
124 - 'text/csv'
125 - 'text/plain'
126 pdf:
127 - 'application/pdf'
128 epub:
129 - 'application/epub+zip'
130 mobi:
131 - 'application/x-mobipocket-ebook'
132 view_response_listener: 'force'
133 formats:
134 xml: true
135 json: true
136 txt: true
137 csv: true
138 pdf: true
139 epub: true
140 mobi: true
141 templating_formats:
142 html: true
143 force_redirects:
144 html: true
145 failed_validation: HTTP_BAD_REQUEST
146 default_engine: twig
147 routing_loader:
148 default_format: json
149 format_listener:
150 enabled: true
151 rules:
152 - { path: "^/api/entries/([0-9]+)/export.(.*)", priorities: ['epub', 'mobi', 'pdf', 'txt', 'csv'], fallback_format: json, prefer_extension: false }
153 - { path: "^/api", priorities: ['json', 'xml'], fallback_format: json, prefer_extension: false }
154 - { path: "^/annotations", priorities: ['json', 'xml'], fallback_format: json, prefer_extension: false }
155 # for an unknown reason, EACH REQUEST goes to FOS\RestBundle\EventListener\FormatListener
156 # so we need to add custom rule for custom api export but also for all other routes of the application...
157 - { path: '^/', priorities: ['text/html', '*/*'], fallback_format: html, prefer_extension: false }
158
159 nelmio_api_doc:
160 sandbox:
161 enabled: false
162 cache:
163 enabled: true
164 name: wallabag API documentation
165
166 nelmio_cors:
167 defaults:
168 allow_credentials: false
169 allow_origin: []
170 allow_headers: []
171 allow_methods: []
172 expose_headers: []
173 max_age: 0
174 hosts: []
175 #origin_regex: false
176 paths:
177 '^/api/':
178 allow_origin: ['*']
179 allow_headers: ['X-Custom-Auth']
180 allow_methods: ['POST', 'PUT', 'PATCH','GET', 'DELETE']
181 max_age: 3600
182 '^/oauth/':
183 allow_origin: ['*']
184 allow_headers: ['X-Custom-Auth']
185 allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
186 max_age: 3600
187 '^/':
188 #origin_regex: true
189 allow_origin: ['^http://localhost:[0-9]+']
190 allow_headers: ['X-Custom-Auth']
191 allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
192 max_age: 3600
193 hosts: ['^api\.']
194
195 liip_theme:
196 load_controllers: false
197 themes:
198 - baggy
199 - material
200 autodetect_theme: wallabag_core.helper.detect_active_theme
201
202 path_patterns:
203 bundle_resource:
204 - "%%bundle_path%%/Resources/views/themes/%%current_theme%%/%%template%%"
205
206 fos_user:
207 db_driver: orm
208 firewall_name: secured_area
209 user_class: Wallabag\UserBundle\Entity\User
210 registration:
211 confirmation:
212 enabled: "%fosuser_confirmation%"
213 from_email:
214 address: "%from_email%"
215 sender_name: wallabag
216
217 fos_oauth_server:
218 db_driver: orm
219 client_class: Wallabag\ApiBundle\Entity\Client
220 access_token_class: Wallabag\ApiBundle\Entity\AccessToken
221 refresh_token_class: Wallabag\ApiBundle\Entity\RefreshToken
222 auth_code_class: Wallabag\ApiBundle\Entity\AuthCode
223 service:
224 user_provider: fos_user.user_provider.username_email
225 options:
226 refresh_token_lifetime: 1209600
227
228 scheb_two_factor:
229 trusted_computer:
230 enabled: true
231 cookie_name: wllbg_trusted_computer
232 cookie_lifetime: 2592000
233
234 email:
235 enabled: "%twofactor_auth%"
236 sender_email: "%twofactor_sender%"
237 digits: 6
238 template: WallabagUserBundle:Authentication:form.html.twig
239 mailer: wallabag_user.auth_code_mailer
240
241 kphoen_rulerz:
242 targets:
243 doctrine: true
244
245 old_sound_rabbit_mq:
246 connections:
247 default:
248 host: "%rabbitmq_host%"
249 port: "%rabbitmq_port%"
250 user: "%rabbitmq_user%"
251 password: "%rabbitmq_password%"
252 vhost: /
253 lazy: true
254 producers:
255 import_pocket:
256 connection: default
257 exchange_options:
258 name: 'wallabag.import.pocket'
259 type: topic
260 import_readability:
261 connection: default
262 exchange_options:
263 name: 'wallabag.import.readability'
264 type: topic
265 import_pinboard:
266 connection: default
267 exchange_options:
268 name: 'wallabag.import.pinboard'
269 type: topic
270 import_instapaper:
271 connection: default
272 exchange_options:
273 name: 'wallabag.import.instapaper'
274 type: topic
275 import_wallabag_v1:
276 connection: default
277 exchange_options:
278 name: 'wallabag.import.wallabag_v1'
279 type: topic
280 import_wallabag_v2:
281 connection: default
282 exchange_options:
283 name: 'wallabag.import.wallabag_v2'
284 type: topic
285 import_firefox:
286 connection: default
287 exchange_options:
288 name: 'wallabag.import.firefox'
289 type: topic
290 import_chrome:
291 connection: default
292 exchange_options:
293 name: 'wallabag.import.chrome'
294 type: topic
295 consumers:
296 import_pocket:
297 connection: default
298 exchange_options:
299 name: 'wallabag.import.pocket'
300 type: topic
301 queue_options:
302 name: 'wallabag.import.pocket'
303 callback: wallabag_import.consumer.amqp.pocket
304 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
305 import_readability:
306 connection: default
307 exchange_options:
308 name: 'wallabag.import.readability'
309 type: topic
310 queue_options:
311 name: 'wallabag.import.readability'
312 callback: wallabag_import.consumer.amqp.readability
313 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
314 import_instapaper:
315 connection: default
316 exchange_options:
317 name: 'wallabag.import.instapaper'
318 type: topic
319 queue_options:
320 name: 'wallabag.import.instapaper'
321 callback: wallabag_import.consumer.amqp.instapaper
322 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
323 import_pinboard:
324 connection: default
325 exchange_options:
326 name: 'wallabag.import.pinboard'
327 type: topic
328 queue_options:
329 name: 'wallabag.import.pinboard'
330 callback: wallabag_import.consumer.amqp.pinboard
331 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
332 import_wallabag_v1:
333 connection: default
334 exchange_options:
335 name: 'wallabag.import.wallabag_v1'
336 type: topic
337 queue_options:
338 name: 'wallabag.import.wallabag_v1'
339 callback: wallabag_import.consumer.amqp.wallabag_v1
340 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
341 import_wallabag_v2:
342 connection: default
343 exchange_options:
344 name: 'wallabag.import.wallabag_v2'
345 type: topic
346 queue_options:
347 name: 'wallabag.import.wallabag_v2'
348 callback: wallabag_import.consumer.amqp.wallabag_v2
349 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
350 import_firefox:
351 connection: default
352 exchange_options:
353 name: 'wallabag.import.firefox'
354 type: topic
355 queue_options:
356 name: 'wallabag.import.firefox'
357 callback: wallabag_import.consumer.amqp.firefox
358 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
359 import_chrome:
360 connection: default
361 exchange_options:
362 name: 'wallabag.import.chrome'
363 type: topic
364 queue_options:
365 name: 'wallabag.import.chrome'
366 callback: wallabag_import.consumer.amqp.chrome
367 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
368
369 fos_js_routing:
370 routes_to_expose:
371 - homepage
372 - starred
373 - archive
374 - all
375 - tag
376 - config
377 - import
378 - developer
379 - howto
380 - fos_user_security_logout
381 - new