aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/config/config.yml
diff options
context:
space:
mode:
Diffstat (limited to 'app/config/config.yml')
-rw-r--r--app/config/config.yml85
1 files changed, 70 insertions, 15 deletions
diff --git a/app/config/config.yml b/app/config/config.yml
index ffc3bb77..591b5294 100644
--- a/app/config/config.yml
+++ b/app/config/config.yml
@@ -30,7 +30,7 @@ framework:
30 assets: ~ 30 assets: ~
31 31
32wallabag_core: 32wallabag_core:
33 version: 2.2.0-dev 33 version: 2.1.5
34 paypal_url: "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9UBA65LG3FX9Y&lc=gb" 34 paypal_url: "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9UBA65LG3FX9Y&lc=gb"
35 languages: 35 languages:
36 en: 'English' 36 en: 'English'
@@ -51,6 +51,8 @@ wallabag_core:
51 rss_limit: 50 51 rss_limit: 50
52 reading_speed: 1 52 reading_speed: 1
53 cache_lifetime: 10 53 cache_lifetime: 10
54 action_mark_as_read: 1
55 list_mode: 1
54 fetching_error_message: | 56 fetching_error_message: |
55 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>. 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>.
56 58
@@ -78,7 +80,7 @@ doctrine:
78 dbname: "%database_name%" 80 dbname: "%database_name%"
79 user: "%database_user%" 81 user: "%database_user%"
80 password: "%database_password%" 82 password: "%database_password%"
81 charset: UTF8 83 charset: "%database_charset%"
82 path: "%database_path%" 84 path: "%database_path%"
83 unix_socket: "%database_socket%" 85 unix_socket: "%database_socket%"
84 server_version: 5.6 86 server_version: 5.6
@@ -115,12 +117,26 @@ swiftmailer:
115fos_rest: 117fos_rest:
116 param_fetcher_listener: true 118 param_fetcher_listener: true
117 body_listener: true 119 body_listener: true
118 format_listener: true
119 view: 120 view:
121 mime_types:
122 csv:
123 - 'text/csv'
124 - 'text/plain'
125 pdf:
126 - 'application/pdf'
127 epub:
128 - 'application/epub+zip'
129 mobi:
130 - 'application/x-mobipocket-ebook'
120 view_response_listener: 'force' 131 view_response_listener: 'force'
121 formats: 132 formats:
122 xml: true 133 xml: true
123 json : true 134 json: true
135 txt: true
136 csv: true
137 pdf: true
138 epub: true
139 mobi: true
124 templating_formats: 140 templating_formats:
125 html: true 141 html: true
126 force_redirects: 142 force_redirects:
@@ -129,10 +145,21 @@ fos_rest:
129 default_engine: twig 145 default_engine: twig
130 routing_loader: 146 routing_loader:
131 default_format: json 147 default_format: json
148 format_listener:
149 enabled: true
150 rules:
151 - { path: "^/api/entries/([0-9]+)/export.(.*)", priorities: ['epub', 'mobi', 'pdf', 'txt', 'csv'], fallback_format: false, prefer_extension: false }
152 - { path: "^/api", priorities: ['json', 'xml'], fallback_format: false, prefer_extension: false }
153 - { path: "^/annotations", priorities: ['json', 'xml'], fallback_format: false, prefer_extension: false }
154 # for an unknown reason, EACH REQUEST goes to FOS\RestBundle\EventListener\FormatListener
155 # so we need to add custom rule for custom api export but also for all other routes of the application...
156 - { path: '^/', priorities: ['text/html', '*/*'], fallback_format: html, prefer_extension: false }
132 157
133nelmio_api_doc: 158nelmio_api_doc:
134 sandbox: 159 sandbox:
135 enabled: false 160 enabled: false
161 cache:
162 enabled: true
136 name: wallabag API documentation 163 name: wallabag API documentation
137 164
138nelmio_cors: 165nelmio_cors:
@@ -185,6 +212,7 @@ fos_user:
185 from_email: 212 from_email:
186 address: "%from_email%" 213 address: "%from_email%"
187 sender_name: wallabag 214 sender_name: wallabag
215
188fos_oauth_server: 216fos_oauth_server:
189 db_driver: orm 217 db_driver: orm
190 client_class: Wallabag\ApiBundle\Entity\Client 218 client_class: Wallabag\ApiBundle\Entity\Client
@@ -192,7 +220,9 @@ fos_oauth_server:
192 refresh_token_class: Wallabag\ApiBundle\Entity\RefreshToken 220 refresh_token_class: Wallabag\ApiBundle\Entity\RefreshToken
193 auth_code_class: Wallabag\ApiBundle\Entity\AuthCode 221 auth_code_class: Wallabag\ApiBundle\Entity\AuthCode
194 service: 222 service:
195 user_provider: fos_user.user_manager 223 user_provider: fos_user.user_provider.username_email
224 options:
225 refresh_token_lifetime: 1209600
196 226
197scheb_two_factor: 227scheb_two_factor:
198 trusted_computer: 228 trusted_computer:
@@ -211,16 +241,6 @@ kphoen_rulerz:
211 executors: 241 executors:
212 doctrine: true 242 doctrine: true
213 243
214lexik_maintenance:
215 authorized:
216 ips: ['127.0.0.1']
217 driver:
218 ttl: 3600
219 class: 'Lexik\Bundle\MaintenanceBundle\Drivers\DatabaseDriver'
220 response:
221 code: 503
222 status: "wallabag Service Temporarily Unavailable"
223
224old_sound_rabbit_mq: 244old_sound_rabbit_mq:
225 connections: 245 connections:
226 default: 246 default:
@@ -241,6 +261,11 @@ old_sound_rabbit_mq:
241 exchange_options: 261 exchange_options:
242 name: 'wallabag.import.readability' 262 name: 'wallabag.import.readability'
243 type: topic 263 type: topic
264 import_pinboard:
265 connection: default
266 exchange_options:
267 name: 'wallabag.import.pinboard'
268 type: topic
244 import_instapaper: 269 import_instapaper:
245 connection: default 270 connection: default
246 exchange_options: 271 exchange_options:
@@ -275,6 +300,7 @@ old_sound_rabbit_mq:
275 queue_options: 300 queue_options:
276 name: 'wallabag.import.pocket' 301 name: 'wallabag.import.pocket'
277 callback: wallabag_import.consumer.amqp.pocket 302 callback: wallabag_import.consumer.amqp.pocket
303 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
278 import_readability: 304 import_readability:
279 connection: default 305 connection: default
280 exchange_options: 306 exchange_options:
@@ -283,6 +309,7 @@ old_sound_rabbit_mq:
283 queue_options: 309 queue_options:
284 name: 'wallabag.import.readability' 310 name: 'wallabag.import.readability'
285 callback: wallabag_import.consumer.amqp.readability 311 callback: wallabag_import.consumer.amqp.readability
312 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
286 import_instapaper: 313 import_instapaper:
287 connection: default 314 connection: default
288 exchange_options: 315 exchange_options:
@@ -291,6 +318,16 @@ old_sound_rabbit_mq:
291 queue_options: 318 queue_options:
292 name: 'wallabag.import.instapaper' 319 name: 'wallabag.import.instapaper'
293 callback: wallabag_import.consumer.amqp.instapaper 320 callback: wallabag_import.consumer.amqp.instapaper
321 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
322 import_pinboard:
323 connection: default
324 exchange_options:
325 name: 'wallabag.import.pinboard'
326 type: topic
327 queue_options:
328 name: 'wallabag.import.pinboard'
329 callback: wallabag_import.consumer.amqp.pinboard
330 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
294 import_wallabag_v1: 331 import_wallabag_v1:
295 connection: default 332 connection: default
296 exchange_options: 333 exchange_options:
@@ -299,6 +336,7 @@ old_sound_rabbit_mq:
299 queue_options: 336 queue_options:
300 name: 'wallabag.import.wallabag_v1' 337 name: 'wallabag.import.wallabag_v1'
301 callback: wallabag_import.consumer.amqp.wallabag_v1 338 callback: wallabag_import.consumer.amqp.wallabag_v1
339 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
302 import_wallabag_v2: 340 import_wallabag_v2:
303 connection: default 341 connection: default
304 exchange_options: 342 exchange_options:
@@ -307,6 +345,7 @@ old_sound_rabbit_mq:
307 queue_options: 345 queue_options:
308 name: 'wallabag.import.wallabag_v2' 346 name: 'wallabag.import.wallabag_v2'
309 callback: wallabag_import.consumer.amqp.wallabag_v2 347 callback: wallabag_import.consumer.amqp.wallabag_v2
348 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
310 import_firefox: 349 import_firefox:
311 connection: default 350 connection: default
312 exchange_options: 351 exchange_options:
@@ -315,6 +354,7 @@ old_sound_rabbit_mq:
315 queue_options: 354 queue_options:
316 name: 'wallabag.import.firefox' 355 name: 'wallabag.import.firefox'
317 callback: wallabag_import.consumer.amqp.firefox 356 callback: wallabag_import.consumer.amqp.firefox
357 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
318 import_chrome: 358 import_chrome:
319 connection: default 359 connection: default
320 exchange_options: 360 exchange_options:
@@ -323,3 +363,18 @@ old_sound_rabbit_mq:
323 queue_options: 363 queue_options:
324 name: 'wallabag.import.chrome' 364 name: 'wallabag.import.chrome'
325 callback: wallabag_import.consumer.amqp.chrome 365 callback: wallabag_import.consumer.amqp.chrome
366 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
367
368fos_js_routing:
369 routes_to_expose:
370 - homepage
371 - starred
372 - archive
373 - all
374 - tag
375 - config
376 - import
377 - developer
378 - howto
379 - fos_user_security_logout
380 - new