]> git.immae.eu Git - github/wallabag/wallabag.git/blame - app/config/config.yml
Merge pull request #2916 from wallabag/update-changelog
[github/wallabag/wallabag.git] / app / config / config.yml
CommitLineData
93fd4692
NL
1imports:
2 - { resource: parameters.yml }
3 - { resource: security.yml }
4 - { resource: services.yml }
5
6framework:
7 #esi: ~
2bc9cad7
JB
8 translator:
9 enabled: true
10 fallback: "%locale%"
11 secret: "%secret%"
93fd4692
NL
12 router:
13 resource: "%kernel.root_dir%/config/routing.yml"
14 strict_requirements: ~
2bc9cad7 15 form: ~
93fd4692 16 csrf_protection: ~
2bc9cad7
JB
17 validation:
18 enable_annotations: true
93fd4692
NL
19 templating:
20 engines: ['twig']
2bc9cad7
JB
21 default_locale: "%locale%"
22 trusted_hosts: ~
93fd4692
NL
23 trusted_proxies: ~
24 session:
25 # handler_id set to null will use default session handler from php.ini
2bc9cad7
JB
26 handler_id: session.handler.native_file
27 save_path: "%kernel.root_dir%/../var/sessions/%kernel.environment%"
28 fragments: ~
93fd4692 29 http_method_override: true
d8dbe76b 30 assets: ~
93fd4692 31
c89d35e8 32wallabag_core:
4021c928 33 version: 2.2.1
63e40f2d 34 paypal_url: "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9UBA65LG3FX9Y&lc=gb"
c89d35e8
NL
35 languages:
36 en: 'English'
37 fr: 'Français'
57cf6fd7 38 de: 'Deutsch'
f47101e0 39 tr: 'Türkçe'
e2b4f0e2 40 fa: 'فارسی'
d8f5b270 41 ro: 'Română'
ee40ccf2 42 pl: 'Polish'
449df236 43 da: 'Dansk'
e5f3b04c 44 es: 'Español'
187868d1 45 oc: 'Occitan'
8b09c6ed 46 it: 'Italiano'
5d6cffed 47 pt: 'Português'
bc789687
JB
48 items_on_page: 12
49 theme: material
dd32c89e 50 language: '%locale%'
bc789687 51 rss_limit: 50
bca54859 52 reading_speed: 1
b3f4a11a 53 cache_lifetime: 10
24879db1
JB
54 action_mark_as_read: 1
55 list_mode: 1
d1b07550 56 fetching_error_message: |
d36e5e20 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>.
77a7752a 58
de3d716a 59wallabag_user:
7149aa57 60 registration_enabled: "%fosuser_registration%"
de3d716a 61
77a7752a 62wallabag_import:
ff1a5362 63 allow_mimetypes: ['application/octet-stream', 'application/json', 'text/plain', 'text/csv']
b1d05721 64 resource_dir: "%kernel.root_dir%/../web/uploads/import"
c89d35e8 65
93fd4692
NL
66# Twig Configuration
67twig:
2bc9cad7 68 debug: "%kernel.debug%"
93fd4692 69 strict_variables: "%kernel.debug%"
5c895a7f
JB
70 form_themes:
71 - "LexikFormFilterBundle:Form:form_div_layout.html.twig"
40e21962 72 exception_controller: wallabag_core.exception_controller:showAction
6682139e 73
93fd4692
NL
74# Doctrine Configuration
75doctrine:
76 dbal:
2bc9cad7 77 driver: "%database_driver%"
61b9fdd5
NL
78 host: "%database_host%"
79 port: "%database_port%"
80 dbname: "%database_name%"
81 user: "%database_user%"
82 password: "%database_password%"
98efffc2 83 charset: "%database_charset%"
2bc9cad7 84 path: "%database_path%"
6d204f53 85 unix_socket: "%database_socket%"
69c21157 86 server_version: 5.6
93fd4692
NL
87
88 orm:
89 auto_generate_proxy_classes: "%kernel.debug%"
164bd801
J
90 entity_managers:
91 default:
164bd801 92 auto_mapping: true
93fd4692 93
3c65dfb7
NL
94stof_doctrine_extensions:
95 default_locale: "%locale%"
96 translation_fallback: true
97 orm:
98 default:
99 tree: true
100 sluggable: true
101
292c1324
NL
102doctrine_migrations:
103 dir_name: "%kernel.root_dir%/DoctrineMigrations"
104 namespace: Application\Migrations
105 table_name: migration_versions
106 name: Application Migrations
107
93fd4692
NL
108# Swiftmailer Configuration
109swiftmailer:
110 transport: "%mailer_transport%"
2bc9cad7
JB
111 host: "%mailer_host%"
112 username: "%mailer_user%"
113 password: "%mailer_password%"
114 spool:
115 type: memory
e4788de5
NL
116
117fos_rest:
118 param_fetcher_listener: true
119 body_listener: true
e4788de5 120 view:
f1c3f68e
JB
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'
e4788de5
NL
131 view_response_listener: 'force'
132 formats:
133 xml: true
f1c3f68e
JB
134 json: true
135 txt: true
136 csv: true
137 pdf: true
138 epub: true
139 mobi: true
e4788de5
NL
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:
a65f5d55 147 default_format: json
f1c3f68e
JB
148 format_listener:
149 enabled: true
150 rules:
0bacc9e1
NL
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 }
f1c3f68e
JB
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 }
e4788de5 157
cd1298d6
NL
158nelmio_api_doc:
159 sandbox:
160 enabled: false
3f3a6087
JB
161 cache:
162 enabled: true
3c65dfb7 163 name: wallabag API documentation
fca3c757
NL
164
165nelmio_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']
41c9eecf 179 allow_methods: ['POST', 'PUT', 'PATCH','GET', 'DELETE']
fca3c757 180 max_age: 3600
848c2e1b 181 '^/oauth/':
fca3c757
NL
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\.']
32da2a70
J
193
194liip_theme:
195 load_controllers: false
196 themes:
197 - baggy
9948d899 198 - material
32da2a70
J
199 autodetect_theme: wallabag_core.helper.detect_active_theme
200
201 path_patterns:
32da2a70 202 bundle_resource:
23634d5d 203 - "%%bundle_path%%/Resources/views/themes/%%current_theme%%/%%template%%"
a1691859
NL
204
205fos_user:
206 db_driver: orm
fdc90ceb 207 firewall_name: secured_area
1210dae1 208 user_class: Wallabag\UserBundle\Entity\User
fcb1fba5 209 registration:
fcb1fba5 210 confirmation:
23634d5d 211 enabled: "%fosuser_confirmation%"
a40dd989 212 from_email:
23634d5d 213 address: "%from_email%"
a40dd989 214 sender_name: wallabag
5066c3e0 215
fcb1fba5
NL
216fos_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:
5066c3e0 223 user_provider: fos_user.user_provider.username_email
05cdd393
YE
224 options:
225 refresh_token_lifetime: 1209600
5066c3e0 226
2db616b5 227scheb_two_factor:
2db616b5
NL
228 trusted_computer:
229 enabled: true
230 cookie_name: wllbg_trusted_computer
0d6a7929 231 cookie_lifetime: 2592000
2db616b5
NL
232
233 email:
23634d5d
JB
234 enabled: "%twofactor_auth%"
235 sender_email: "%twofactor_sender%"
2db616b5
NL
236 digits: 6
237 template: WallabagUserBundle:Authentication:form.html.twig
23ff8d36 238 mailer: wallabag_user.auth_code_mailer
625acf33
KG
239
240kphoen_rulerz:
177c5510 241 targets:
625acf33 242 doctrine: true
fbbda941 243
56c778b4
NL
244old_sound_rabbit_mq:
245 connections:
246 default:
ef75e122
JB
247 host: "%rabbitmq_host%"
248 port: "%rabbitmq_port%"
249 user: "%rabbitmq_user%"
250 password: "%rabbitmq_password%"
56c778b4 251 vhost: /
ef75e122 252 lazy: true
56c778b4 253 producers:
c98db1b6 254 import_pocket:
56c778b4
NL
255 connection: default
256 exchange_options:
ef75e122 257 name: 'wallabag.import.pocket'
56c778b4 258 type: topic
c98db1b6
JB
259 import_readability:
260 connection: default
261 exchange_options:
262 name: 'wallabag.import.readability'
263 type: topic
9ab024b4
JB
264 import_pinboard:
265 connection: default
266 exchange_options:
267 name: 'wallabag.import.pinboard'
268 type: topic
c7ea9b41
JB
269 import_instapaper:
270 connection: default
271 exchange_options:
272 name: 'wallabag.import.instapaper'
273 type: topic
c98db1b6
JB
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
2c61db30
TC
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
56c778b4 294 consumers:
c98db1b6 295 import_pocket:
56c778b4
NL
296 connection: default
297 exchange_options:
ef75e122 298 name: 'wallabag.import.pocket'
56c778b4
NL
299 type: topic
300 queue_options:
ef75e122 301 name: 'wallabag.import.pocket'
ac87e0db 302 callback: wallabag_import.consumer.amqp.pocket
881b0578 303 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
c98db1b6
JB
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'
ac87e0db 311 callback: wallabag_import.consumer.amqp.readability
881b0578 312 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
c7ea9b41
JB
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
881b0578 321 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
9ab024b4
JB
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
881b0578 330 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
c98db1b6
JB
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'
ac87e0db 338 callback: wallabag_import.consumer.amqp.wallabag_v1
881b0578 339 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
c98db1b6
JB
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'
ac87e0db 347 callback: wallabag_import.consumer.amqp.wallabag_v2
881b0578 348 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
2c61db30
TC
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
881b0578 357 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
2c61db30
TC
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
881b0578 366 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
3cc78f06
NL
367
368fos_js_routing:
49c5d0ad
NL
369 routes_to_expose:
370 - homepage
371 - starred
372 - archive
373 - all
374 - tag
375 - config
376 - import
377 - developer
378 - howto
66e9dde0 379 - fos_user_security_logout
995c2044 380 - new