diff options
Diffstat (limited to 'app/config/config.yml')
-rw-r--r-- | app/config/config.yml | 68 |
1 files changed, 55 insertions, 13 deletions
diff --git a/app/config/config.yml b/app/config/config.yml index 3d9067d1..487e934b 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: | |||
115 | fos_rest: | 115 | fos_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 | ||
133 | nelmio_api_doc: | 156 | nelmio_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 | ||
138 | nelmio_cors: | 163 | nelmio_cors: |
@@ -213,16 +238,6 @@ kphoen_rulerz: | |||
213 | executors: | 238 | executors: |
214 | doctrine: true | 239 | doctrine: true |
215 | 240 | ||
216 | lexik_maintenance: | ||
217 | authorized: | ||
218 | ips: ['127.0.0.1'] | ||
219 | driver: | ||
220 | ttl: 3600 | ||
221 | class: 'Lexik\Bundle\MaintenanceBundle\Drivers\DatabaseDriver' | ||
222 | response: | ||
223 | code: 503 | ||
224 | status: "wallabag Service Temporarily Unavailable" | ||
225 | |||
226 | old_sound_rabbit_mq: | 241 | old_sound_rabbit_mq: |
227 | connections: | 242 | connections: |
228 | default: | 243 | default: |
@@ -243,6 +258,11 @@ old_sound_rabbit_mq: | |||
243 | exchange_options: | 258 | exchange_options: |
244 | name: 'wallabag.import.readability' | 259 | name: 'wallabag.import.readability' |
245 | type: topic | 260 | type: topic |
261 | import_pinboard: | ||
262 | connection: default | ||
263 | exchange_options: | ||
264 | name: 'wallabag.import.pinboard' | ||
265 | type: topic | ||
246 | import_instapaper: | 266 | import_instapaper: |
247 | connection: default | 267 | connection: default |
248 | exchange_options: | 268 | exchange_options: |
@@ -293,6 +313,14 @@ old_sound_rabbit_mq: | |||
293 | queue_options: | 313 | queue_options: |
294 | name: 'wallabag.import.instapaper' | 314 | name: 'wallabag.import.instapaper' |
295 | callback: wallabag_import.consumer.amqp.instapaper | 315 | callback: wallabag_import.consumer.amqp.instapaper |
316 | import_pinboard: | ||
317 | connection: default | ||
318 | exchange_options: | ||
319 | name: 'wallabag.import.pinboard' | ||
320 | type: topic | ||
321 | queue_options: | ||
322 | name: 'wallabag.import.pinboard' | ||
323 | callback: wallabag_import.consumer.amqp.pinboard | ||
296 | import_wallabag_v1: | 324 | import_wallabag_v1: |
297 | connection: default | 325 | connection: default |
298 | exchange_options: | 326 | exchange_options: |
@@ -325,3 +353,17 @@ old_sound_rabbit_mq: | |||
325 | queue_options: | 353 | queue_options: |
326 | name: 'wallabag.import.chrome' | 354 | name: 'wallabag.import.chrome' |
327 | callback: wallabag_import.consumer.amqp.chrome | 355 | callback: wallabag_import.consumer.amqp.chrome |
356 | |||
357 | fos_js_routing: | ||
358 | routes_to_expose: | ||
359 | - homepage | ||
360 | - starred | ||
361 | - archive | ||
362 | - all | ||
363 | - tag | ||
364 | - config | ||
365 | - import | ||
366 | - developer | ||
367 | - howto | ||
368 | - logout | ||
369 | - new | ||