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