]> git.immae.eu Git - github/wallabag/wallabag.git/blame - app/config/config.yml
Merge pull request #2677 from wallabag/add-wallabag_user.de.yml
[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:
98253436 33 version: 2.1.5
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
d1b07550 54 fetching_error_message: |
d36e5e20 55 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 56
de3d716a 57wallabag_user:
7149aa57 58 registration_enabled: "%fosuser_registration%"
de3d716a 59
77a7752a 60wallabag_import:
ff1a5362 61 allow_mimetypes: ['application/octet-stream', 'application/json', 'text/plain', 'text/csv']
b1d05721 62 resource_dir: "%kernel.root_dir%/../web/uploads/import"
c89d35e8 63
93fd4692
NL
64# Twig Configuration
65twig:
2bc9cad7 66 debug: "%kernel.debug%"
93fd4692 67 strict_variables: "%kernel.debug%"
5c895a7f
JB
68 form_themes:
69 - "LexikFormFilterBundle:Form:form_div_layout.html.twig"
40e21962 70 exception_controller: wallabag_core.exception_controller:showAction
6682139e 71
93fd4692
NL
72# Doctrine Configuration
73doctrine:
74 dbal:
2bc9cad7 75 driver: "%database_driver%"
61b9fdd5
NL
76 host: "%database_host%"
77 port: "%database_port%"
78 dbname: "%database_name%"
79 user: "%database_user%"
80 password: "%database_password%"
98efffc2 81 charset: "%database_charset%"
2bc9cad7 82 path: "%database_path%"
6d204f53 83 unix_socket: "%database_socket%"
69c21157 84 server_version: 5.6
93fd4692
NL
85
86 orm:
87 auto_generate_proxy_classes: "%kernel.debug%"
164bd801
J
88 entity_managers:
89 default:
164bd801 90 auto_mapping: true
93fd4692 91
3c65dfb7
NL
92stof_doctrine_extensions:
93 default_locale: "%locale%"
94 translation_fallback: true
95 orm:
96 default:
97 tree: true
98 sluggable: true
99
292c1324
NL
100doctrine_migrations:
101 dir_name: "%kernel.root_dir%/DoctrineMigrations"
102 namespace: Application\Migrations
103 table_name: migration_versions
104 name: Application Migrations
105
93fd4692
NL
106# Swiftmailer Configuration
107swiftmailer:
108 transport: "%mailer_transport%"
2bc9cad7
JB
109 host: "%mailer_host%"
110 username: "%mailer_user%"
111 password: "%mailer_password%"
112 spool:
113 type: memory
e4788de5
NL
114
115fos_rest:
116 param_fetcher_listener: true
117 body_listener: true
e4788de5 118 view:
f1c3f68e
JB
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'
e4788de5
NL
129 view_response_listener: 'force'
130 formats:
131 xml: true
f1c3f68e
JB
132 json: true
133 txt: true
134 csv: true
135 pdf: true
136 epub: true
137 mobi: true
e4788de5
NL
138 templating_formats:
139 html: true
140 force_redirects:
141 html: true
142 failed_validation: HTTP_BAD_REQUEST
143 default_engine: twig
144 routing_loader:
a65f5d55 145 default_format: json
f1c3f68e
JB
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 }
e4788de5 155
cd1298d6
NL
156nelmio_api_doc:
157 sandbox:
158 enabled: false
3f3a6087
JB
159 cache:
160 enabled: true
3c65dfb7 161 name: wallabag API documentation
fca3c757
NL
162
163nelmio_cors:
164 defaults:
165 allow_credentials: false
166 allow_origin: []
167 allow_headers: []
168 allow_methods: []
169 expose_headers: []
170 max_age: 0
171 hosts: []
172 #origin_regex: false
173 paths:
174 '^/api/':
175 allow_origin: ['*']
176 allow_headers: ['X-Custom-Auth']
41c9eecf 177 allow_methods: ['POST', 'PUT', 'PATCH','GET', 'DELETE']
fca3c757 178 max_age: 3600
848c2e1b 179 '^/oauth/':
fca3c757
NL
180 allow_origin: ['*']
181 allow_headers: ['X-Custom-Auth']
182 allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
183 max_age: 3600
184 '^/':
185 #origin_regex: true
186 allow_origin: ['^http://localhost:[0-9]+']
187 allow_headers: ['X-Custom-Auth']
188 allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
189 max_age: 3600
190 hosts: ['^api\.']
32da2a70
J
191
192liip_theme:
193 load_controllers: false
194 themes:
195 - baggy
9948d899 196 - material
32da2a70
J
197 autodetect_theme: wallabag_core.helper.detect_active_theme
198
199 path_patterns:
32da2a70 200 bundle_resource:
23634d5d 201 - "%%bundle_path%%/Resources/views/themes/%%current_theme%%/%%template%%"
a1691859
NL
202
203fos_user:
204 db_driver: orm
fdc90ceb 205 firewall_name: secured_area
1210dae1 206 user_class: Wallabag\UserBundle\Entity\User
fcb1fba5 207 registration:
fcb1fba5 208 confirmation:
23634d5d 209 enabled: "%fosuser_confirmation%"
a40dd989 210 from_email:
23634d5d 211 address: "%from_email%"
a40dd989 212 sender_name: wallabag
5066c3e0 213
fcb1fba5
NL
214fos_oauth_server:
215 db_driver: orm
216 client_class: Wallabag\ApiBundle\Entity\Client
217 access_token_class: Wallabag\ApiBundle\Entity\AccessToken
218 refresh_token_class: Wallabag\ApiBundle\Entity\RefreshToken
219 auth_code_class: Wallabag\ApiBundle\Entity\AuthCode
220 service:
5066c3e0 221 user_provider: fos_user.user_provider.username_email
05cdd393
YE
222 options:
223 refresh_token_lifetime: 1209600
5066c3e0 224
2db616b5 225scheb_two_factor:
2db616b5
NL
226 trusted_computer:
227 enabled: true
228 cookie_name: wllbg_trusted_computer
0d6a7929 229 cookie_lifetime: 2592000
2db616b5
NL
230
231 email:
23634d5d
JB
232 enabled: "%twofactor_auth%"
233 sender_email: "%twofactor_sender%"
2db616b5
NL
234 digits: 6
235 template: WallabagUserBundle:Authentication:form.html.twig
23ff8d36 236 mailer: wallabag_user.auth_code_mailer
625acf33
KG
237
238kphoen_rulerz:
239 executors:
240 doctrine: true
fbbda941 241
56c778b4
NL
242old_sound_rabbit_mq:
243 connections:
244 default:
ef75e122
JB
245 host: "%rabbitmq_host%"
246 port: "%rabbitmq_port%"
247 user: "%rabbitmq_user%"
248 password: "%rabbitmq_password%"
56c778b4 249 vhost: /
ef75e122 250 lazy: true
56c778b4 251 producers:
c98db1b6 252 import_pocket:
56c778b4
NL
253 connection: default
254 exchange_options:
ef75e122 255 name: 'wallabag.import.pocket'
56c778b4 256 type: topic
c98db1b6
JB
257 import_readability:
258 connection: default
259 exchange_options:
260 name: 'wallabag.import.readability'
261 type: topic
9ab024b4
JB
262 import_pinboard:
263 connection: default
264 exchange_options:
265 name: 'wallabag.import.pinboard'
266 type: topic
c7ea9b41
JB
267 import_instapaper:
268 connection: default
269 exchange_options:
270 name: 'wallabag.import.instapaper'
271 type: topic
c98db1b6
JB
272 import_wallabag_v1:
273 connection: default
274 exchange_options:
275 name: 'wallabag.import.wallabag_v1'
276 type: topic
277 import_wallabag_v2:
278 connection: default
279 exchange_options:
280 name: 'wallabag.import.wallabag_v2'
281 type: topic
2c61db30
TC
282 import_firefox:
283 connection: default
284 exchange_options:
285 name: 'wallabag.import.firefox'
286 type: topic
287 import_chrome:
288 connection: default
289 exchange_options:
290 name: 'wallabag.import.chrome'
291 type: topic
56c778b4 292 consumers:
c98db1b6 293 import_pocket:
56c778b4
NL
294 connection: default
295 exchange_options:
ef75e122 296 name: 'wallabag.import.pocket'
56c778b4
NL
297 type: topic
298 queue_options:
ef75e122 299 name: 'wallabag.import.pocket'
ac87e0db 300 callback: wallabag_import.consumer.amqp.pocket
c98db1b6
JB
301 import_readability:
302 connection: default
303 exchange_options:
304 name: 'wallabag.import.readability'
305 type: topic
306 queue_options:
307 name: 'wallabag.import.readability'
ac87e0db 308 callback: wallabag_import.consumer.amqp.readability
c7ea9b41
JB
309 import_instapaper:
310 connection: default
311 exchange_options:
312 name: 'wallabag.import.instapaper'
313 type: topic
314 queue_options:
315 name: 'wallabag.import.instapaper'
316 callback: wallabag_import.consumer.amqp.instapaper
9ab024b4
JB
317 import_pinboard:
318 connection: default
319 exchange_options:
320 name: 'wallabag.import.pinboard'
321 type: topic
322 queue_options:
323 name: 'wallabag.import.pinboard'
324 callback: wallabag_import.consumer.amqp.pinboard
c98db1b6
JB
325 import_wallabag_v1:
326 connection: default
327 exchange_options:
328 name: 'wallabag.import.wallabag_v1'
329 type: topic
330 queue_options:
331 name: 'wallabag.import.wallabag_v1'
ac87e0db 332 callback: wallabag_import.consumer.amqp.wallabag_v1
c98db1b6
JB
333 import_wallabag_v2:
334 connection: default
335 exchange_options:
336 name: 'wallabag.import.wallabag_v2'
337 type: topic
338 queue_options:
339 name: 'wallabag.import.wallabag_v2'
ac87e0db 340 callback: wallabag_import.consumer.amqp.wallabag_v2
2c61db30
TC
341 import_firefox:
342 connection: default
343 exchange_options:
344 name: 'wallabag.import.firefox'
345 type: topic
346 queue_options:
347 name: 'wallabag.import.firefox'
348 callback: wallabag_import.consumer.amqp.firefox
349 import_chrome:
350 connection: default
351 exchange_options:
352 name: 'wallabag.import.chrome'
353 type: topic
354 queue_options:
355 name: 'wallabag.import.chrome'
356 callback: wallabag_import.consumer.amqp.chrome
3cc78f06
NL
357
358fos_js_routing:
49c5d0ad
NL
359 routes_to_expose:
360 - homepage
361 - starred
362 - archive
363 - all
364 - tag
365 - config
366 - import
367 - developer
368 - howto
66e9dde0 369 - fos_user_security_logout
995c2044 370 - new