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.yml67
1 files changed, 54 insertions, 13 deletions
diff --git a/app/config/config.yml b/app/config/config.yml
index ffc3bb77..48496bc2 100644
--- a/app/config/config.yml
+++ b/app/config/config.yml
@@ -78,7 +78,7 @@ doctrine:
78 dbname: "%database_name%" 78 dbname: "%database_name%"
79 user: "%database_user%" 79 user: "%database_user%"
80 password: "%database_password%" 80 password: "%database_password%"
81 charset: UTF8 81 charset: "%database_charset%"
82 path: "%database_path%" 82 path: "%database_path%"
83 unix_socket: "%database_socket%" 83 unix_socket: "%database_socket%"
84 server_version: 5.6 84 server_version: 5.6
@@ -115,12 +115,26 @@ swiftmailer:
115fos_rest: 115fos_rest:
116 param_fetcher_listener: true 116 param_fetcher_listener: true
117 body_listener: true 117 body_listener: true
118 format_listener: true
119 view: 118 view:
119 mime_types:
120 csv:
121 - 'text/csv'
122 - 'text/plain'
123 pdf:
124 - 'application/pdf'
125 epub:
126 - 'application/epub+zip'
127 mobi:
128 - 'application/x-mobipocket-ebook'
120 view_response_listener: 'force' 129 view_response_listener: 'force'
121 formats: 130 formats:
122 xml: true 131 xml: true
123 json : true 132 json: true
133 txt: true
134 csv: true
135 pdf: true
136 epub: true
137 mobi: true
124 templating_formats: 138 templating_formats:
125 html: true 139 html: true
126 force_redirects: 140 force_redirects:
@@ -129,10 +143,21 @@ fos_rest:
129 default_engine: twig 143 default_engine: twig
130 routing_loader: 144 routing_loader:
131 default_format: json 145 default_format: json
146 format_listener:
147 enabled: true
148 rules:
149 - { path: "^/api/entries/([0-9]+)/export.(.*)", priorities: ['epub', 'mobi', 'pdf', 'txt', 'csv'], fallback_format: false, prefer_extension: false }
150 - { path: "^/api", priorities: ['json', 'xml'], fallback_format: false, prefer_extension: false }
151 - { path: "^/annotations", priorities: ['json', 'xml'], fallback_format: false, prefer_extension: false }
152 # for an unknown reason, EACH REQUEST goes to FOS\RestBundle\EventListener\FormatListener
153 # so we need to add custom rule for custom api export but also for all other routes of the application...
154 - { path: '^/', priorities: ['text/html', '*/*'], fallback_format: html, prefer_extension: false }
132 155
133nelmio_api_doc: 156nelmio_api_doc:
134 sandbox: 157 sandbox:
135 enabled: false 158 enabled: false
159 cache:
160 enabled: true
136 name: wallabag API documentation 161 name: wallabag API documentation
137 162
138nelmio_cors: 163nelmio_cors:
@@ -211,16 +236,6 @@ kphoen_rulerz:
211 executors: 236 executors:
212 doctrine: true 237 doctrine: true
213 238
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: 239old_sound_rabbit_mq:
225 connections: 240 connections:
226 default: 241 default:
@@ -241,6 +256,11 @@ old_sound_rabbit_mq:
241 exchange_options: 256 exchange_options:
242 name: 'wallabag.import.readability' 257 name: 'wallabag.import.readability'
243 type: topic 258 type: topic
259 import_pinboard:
260 connection: default
261 exchange_options:
262 name: 'wallabag.import.pinboard'
263 type: topic
244 import_instapaper: 264 import_instapaper:
245 connection: default 265 connection: default
246 exchange_options: 266 exchange_options:
@@ -291,6 +311,14 @@ old_sound_rabbit_mq:
291 queue_options: 311 queue_options:
292 name: 'wallabag.import.instapaper' 312 name: 'wallabag.import.instapaper'
293 callback: wallabag_import.consumer.amqp.instapaper 313 callback: wallabag_import.consumer.amqp.instapaper
314 import_pinboard:
315 connection: default
316 exchange_options:
317 name: 'wallabag.import.pinboard'
318 type: topic
319 queue_options:
320 name: 'wallabag.import.pinboard'
321 callback: wallabag_import.consumer.amqp.pinboard
294 import_wallabag_v1: 322 import_wallabag_v1:
295 connection: default 323 connection: default
296 exchange_options: 324 exchange_options:
@@ -323,3 +351,16 @@ old_sound_rabbit_mq:
323 queue_options: 351 queue_options:
324 name: 'wallabag.import.chrome' 352 name: 'wallabag.import.chrome'
325 callback: wallabag_import.consumer.amqp.chrome 353 callback: wallabag_import.consumer.amqp.chrome
354
355fos_js_routing:
356 routes_to_expose:
357 - homepage
358 - starred
359 - archive
360 - all
361 - tag
362 - config
363 - import
364 - developer
365 - howto
366 - logout