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