]> git.immae.eu Git - github/wallabag/wallabag.git/blob - app/config/config.yml
Merge remote-tracking branch 'origin/master' into 2.2
[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.1.6
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: 1
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
59 wallabag_user:
60 registration_enabled: "%fosuser_registration%"
61
62 wallabag_import:
63 allow_mimetypes: ['application/octet-stream', 'application/json', 'text/plain', 'text/csv']
64 resource_dir: "%kernel.root_dir%/../web/uploads/import"
65
66 # Twig Configuration
67 twig:
68 debug: "%kernel.debug%"
69 strict_variables: "%kernel.debug%"
70 form_themes:
71 - "LexikFormFilterBundle:Form:form_div_layout.html.twig"
72 exception_controller: wallabag_core.exception_controller:showAction
73
74 # Doctrine Configuration
75 doctrine:
76 dbal:
77 driver: "%database_driver%"
78 host: "%database_host%"
79 port: "%database_port%"
80 dbname: "%database_name%"
81 user: "%database_user%"
82 password: "%database_password%"
83 charset: "%database_charset%"
84 path: "%database_path%"
85 unix_socket: "%database_socket%"
86 server_version: 5.6
87
88 orm:
89 auto_generate_proxy_classes: "%kernel.debug%"
90 entity_managers:
91 default:
92 auto_mapping: true
93
94 stof_doctrine_extensions:
95 default_locale: "%locale%"
96 translation_fallback: true
97 orm:
98 default:
99 tree: true
100 sluggable: true
101
102 doctrine_migrations:
103 dir_name: "%kernel.root_dir%/DoctrineMigrations"
104 namespace: Application\Migrations
105 table_name: migration_versions
106 name: Application Migrations
107
108 # Swiftmailer Configuration
109 swiftmailer:
110 transport: "%mailer_transport%"
111 host: "%mailer_host%"
112 username: "%mailer_user%"
113 password: "%mailer_password%"
114 spool:
115 type: memory
116
117 fos_rest:
118 param_fetcher_listener: true
119 body_listener: true
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'
131 view_response_listener: 'force'
132 formats:
133 xml: true
134 json: true
135 txt: true
136 csv: true
137 pdf: true
138 epub: true
139 mobi: true
140 templating_formats:
141 html: true
142 force_redirects:
143 html: true
144 failed_validation: HTTP_BAD_REQUEST
145 default_engine: twig
146 routing_loader:
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: json, prefer_extension: false }
152 - { path: "^/api", priorities: ['json', 'xml'], fallback_format: json, prefer_extension: false }
153 - { path: "^/annotations", priorities: ['json', 'xml'], fallback_format: json, 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 }
157
158 nelmio_api_doc:
159 sandbox:
160 enabled: false
161 cache:
162 enabled: true
163 name: wallabag API documentation
164
165 nelmio_cors:
166 defaults:
167 allow_credentials: false
168 allow_origin: []
169 allow_headers: []
170 allow_methods: []
171 expose_headers: []
172 max_age: 0
173 hosts: []
174 #origin_regex: false
175 paths:
176 '^/api/':
177 allow_origin: ['*']
178 allow_headers: ['X-Custom-Auth']
179 allow_methods: ['POST', 'PUT', 'PATCH','GET', 'DELETE']
180 max_age: 3600
181 '^/oauth/':
182 allow_origin: ['*']
183 allow_headers: ['X-Custom-Auth']
184 allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
185 max_age: 3600
186 '^/':
187 #origin_regex: true
188 allow_origin: ['^http://localhost:[0-9]+']
189 allow_headers: ['X-Custom-Auth']
190 allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
191 max_age: 3600
192 hosts: ['^api\.']
193
194 liip_theme:
195 load_controllers: false
196 themes:
197 - baggy
198 - material
199 autodetect_theme: wallabag_core.helper.detect_active_theme
200
201 path_patterns:
202 bundle_resource:
203 - "%%bundle_path%%/Resources/views/themes/%%current_theme%%/%%template%%"
204
205 fos_user:
206 db_driver: orm
207 firewall_name: secured_area
208 user_class: Wallabag\UserBundle\Entity\User
209 registration:
210 confirmation:
211 enabled: "%fosuser_confirmation%"
212 from_email:
213 address: "%from_email%"
214 sender_name: wallabag
215
216 fos_oauth_server:
217 db_driver: orm
218 client_class: Wallabag\ApiBundle\Entity\Client
219 access_token_class: Wallabag\ApiBundle\Entity\AccessToken
220 refresh_token_class: Wallabag\ApiBundle\Entity\RefreshToken
221 auth_code_class: Wallabag\ApiBundle\Entity\AuthCode
222 service:
223 user_provider: fos_user.user_provider.username_email
224 options:
225 refresh_token_lifetime: 1209600
226
227 scheb_two_factor:
228 trusted_computer:
229 enabled: true
230 cookie_name: wllbg_trusted_computer
231 cookie_lifetime: 2592000
232
233 email:
234 enabled: "%twofactor_auth%"
235 sender_email: "%twofactor_sender%"
236 digits: 6
237 template: WallabagUserBundle:Authentication:form.html.twig
238 mailer: wallabag_user.auth_code_mailer
239
240 kphoen_rulerz:
241 executors:
242 doctrine: true
243
244 old_sound_rabbit_mq:
245 connections:
246 default:
247 host: "%rabbitmq_host%"
248 port: "%rabbitmq_port%"
249 user: "%rabbitmq_user%"
250 password: "%rabbitmq_password%"
251 vhost: /
252 lazy: true
253 producers:
254 import_pocket:
255 connection: default
256 exchange_options:
257 name: 'wallabag.import.pocket'
258 type: topic
259 import_readability:
260 connection: default
261 exchange_options:
262 name: 'wallabag.import.readability'
263 type: topic
264 import_pinboard:
265 connection: default
266 exchange_options:
267 name: 'wallabag.import.pinboard'
268 type: topic
269 import_instapaper:
270 connection: default
271 exchange_options:
272 name: 'wallabag.import.instapaper'
273 type: topic
274 import_wallabag_v1:
275 connection: default
276 exchange_options:
277 name: 'wallabag.import.wallabag_v1'
278 type: topic
279 import_wallabag_v2:
280 connection: default
281 exchange_options:
282 name: 'wallabag.import.wallabag_v2'
283 type: topic
284 import_firefox:
285 connection: default
286 exchange_options:
287 name: 'wallabag.import.firefox'
288 type: topic
289 import_chrome:
290 connection: default
291 exchange_options:
292 name: 'wallabag.import.chrome'
293 type: topic
294 consumers:
295 import_pocket:
296 connection: default
297 exchange_options:
298 name: 'wallabag.import.pocket'
299 type: topic
300 queue_options:
301 name: 'wallabag.import.pocket'
302 callback: wallabag_import.consumer.amqp.pocket
303 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
304 import_readability:
305 connection: default
306 exchange_options:
307 name: 'wallabag.import.readability'
308 type: topic
309 queue_options:
310 name: 'wallabag.import.readability'
311 callback: wallabag_import.consumer.amqp.readability
312 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
313 import_instapaper:
314 connection: default
315 exchange_options:
316 name: 'wallabag.import.instapaper'
317 type: topic
318 queue_options:
319 name: 'wallabag.import.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%"}
331 import_wallabag_v1:
332 connection: default
333 exchange_options:
334 name: 'wallabag.import.wallabag_v1'
335 type: topic
336 queue_options:
337 name: 'wallabag.import.wallabag_v1'
338 callback: wallabag_import.consumer.amqp.wallabag_v1
339 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
340 import_wallabag_v2:
341 connection: default
342 exchange_options:
343 name: 'wallabag.import.wallabag_v2'
344 type: topic
345 queue_options:
346 name: 'wallabag.import.wallabag_v2'
347 callback: wallabag_import.consumer.amqp.wallabag_v2
348 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
349 import_firefox:
350 connection: default
351 exchange_options:
352 name: 'wallabag.import.firefox'
353 type: topic
354 queue_options:
355 name: 'wallabag.import.firefox'
356 callback: wallabag_import.consumer.amqp.firefox
357 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
358 import_chrome:
359 connection: default
360 exchange_options:
361 name: 'wallabag.import.chrome'
362 type: topic
363 queue_options:
364 name: 'wallabag.import.chrome'
365 callback: wallabag_import.consumer.amqp.chrome
366 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
367
368 fos_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