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