]> git.immae.eu Git - github/wallabag/wallabag.git/blame - app/config/config.yml
Merge remote-tracking branch 'origin/master' into 2.2
[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:
f31361a6 33 version: 2.1.3-dev
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'
bc789687
JB
47 items_on_page: 12
48 theme: material
dd32c89e 49 language: '%locale%'
bc789687 50 rss_limit: 50
bca54859 51 reading_speed: 1
b3f4a11a 52 cache_lifetime: 10
2297d60f 53 fetching_error_message: "wallabag can't retrieve contents for this article. Please report this issue to us."
77a7752a 54
de3d716a 55wallabag_user:
7149aa57 56 registration_enabled: "%fosuser_registration%"
de3d716a 57
77a7752a 58wallabag_import:
ff1a5362 59 allow_mimetypes: ['application/octet-stream', 'application/json', 'text/plain', 'text/csv']
b1d05721 60 resource_dir: "%kernel.root_dir%/../web/uploads/import"
c89d35e8 61
93fd4692
NL
62# Twig Configuration
63twig:
2bc9cad7 64 debug: "%kernel.debug%"
93fd4692 65 strict_variables: "%kernel.debug%"
5c895a7f
JB
66 form_themes:
67 - "LexikFormFilterBundle:Form:form_div_layout.html.twig"
40e21962 68 exception_controller: wallabag_core.exception_controller:showAction
6682139e 69
93fd4692
NL
70# Doctrine Configuration
71doctrine:
72 dbal:
2bc9cad7 73 driver: "%database_driver%"
61b9fdd5
NL
74 host: "%database_host%"
75 port: "%database_port%"
76 dbname: "%database_name%"
77 user: "%database_user%"
78 password: "%database_password%"
98efffc2 79 charset: "%database_charset%"
2bc9cad7 80 path: "%database_path%"
6d204f53 81 unix_socket: "%database_socket%"
69c21157 82 server_version: 5.6
93fd4692
NL
83
84 orm:
85 auto_generate_proxy_classes: "%kernel.debug%"
164bd801
J
86 entity_managers:
87 default:
164bd801 88 auto_mapping: true
93fd4692 89
3c65dfb7
NL
90stof_doctrine_extensions:
91 default_locale: "%locale%"
92 translation_fallback: true
93 orm:
94 default:
95 tree: true
96 sluggable: true
97
292c1324
NL
98doctrine_migrations:
99 dir_name: "%kernel.root_dir%/DoctrineMigrations"
100 namespace: Application\Migrations
101 table_name: migration_versions
102 name: Application Migrations
103
93fd4692
NL
104# Swiftmailer Configuration
105swiftmailer:
106 transport: "%mailer_transport%"
2bc9cad7
JB
107 host: "%mailer_host%"
108 username: "%mailer_user%"
109 password: "%mailer_password%"
110 spool:
111 type: memory
e4788de5
NL
112
113fos_rest:
114 param_fetcher_listener: true
115 body_listener: true
e4788de5 116 view:
f1c3f68e
JB
117 mime_types:
118 csv:
119 - 'text/csv'
120 - 'text/plain'
121 pdf:
122 - 'application/pdf'
123 epub:
124 - 'application/epub+zip'
125 mobi:
126 - 'application/x-mobipocket-ebook'
e4788de5
NL
127 view_response_listener: 'force'
128 formats:
129 xml: true
f1c3f68e
JB
130 json: true
131 txt: true
132 csv: true
133 pdf: true
134 epub: true
135 mobi: true
e4788de5
NL
136 templating_formats:
137 html: true
138 force_redirects:
139 html: true
140 failed_validation: HTTP_BAD_REQUEST
141 default_engine: twig
142 routing_loader:
a65f5d55 143 default_format: json
f1c3f68e
JB
144 format_listener:
145 enabled: true
146 rules:
147 - { path: "^/api/entries/([0-9]+)/export.(.*)", priorities: ['epub', 'mobi', 'pdf', 'txt', 'csv'], fallback_format: false, prefer_extension: false }
148 - { path: "^/api", priorities: ['json', 'xml'], fallback_format: false, prefer_extension: false }
149 - { path: "^/annotations", priorities: ['json', 'xml'], fallback_format: false, prefer_extension: false }
150 # for an unknown reason, EACH REQUEST goes to FOS\RestBundle\EventListener\FormatListener
151 # so we need to add custom rule for custom api export but also for all other routes of the application...
152 - { path: '^/', priorities: ['text/html', '*/*'], fallback_format: html, prefer_extension: false }
e4788de5 153
cd1298d6
NL
154nelmio_api_doc:
155 sandbox:
156 enabled: false
3f3a6087
JB
157 cache:
158 enabled: true
3c65dfb7 159 name: wallabag API documentation
fca3c757
NL
160
161nelmio_cors:
162 defaults:
163 allow_credentials: false
164 allow_origin: []
165 allow_headers: []
166 allow_methods: []
167 expose_headers: []
168 max_age: 0
169 hosts: []
170 #origin_regex: false
171 paths:
172 '^/api/':
173 allow_origin: ['*']
174 allow_headers: ['X-Custom-Auth']
41c9eecf 175 allow_methods: ['POST', 'PUT', 'PATCH','GET', 'DELETE']
fca3c757 176 max_age: 3600
848c2e1b 177 '^/oauth/':
fca3c757
NL
178 allow_origin: ['*']
179 allow_headers: ['X-Custom-Auth']
180 allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
181 max_age: 3600
182 '^/':
183 #origin_regex: true
184 allow_origin: ['^http://localhost:[0-9]+']
185 allow_headers: ['X-Custom-Auth']
186 allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
187 max_age: 3600
188 hosts: ['^api\.']
32da2a70
J
189
190liip_theme:
191 load_controllers: false
192 themes:
193 - baggy
9948d899 194 - material
32da2a70
J
195 autodetect_theme: wallabag_core.helper.detect_active_theme
196
197 path_patterns:
32da2a70 198 bundle_resource:
23634d5d 199 - "%%bundle_path%%/Resources/views/themes/%%current_theme%%/%%template%%"
a1691859
NL
200
201fos_user:
202 db_driver: orm
fdc90ceb 203 firewall_name: secured_area
1210dae1 204 user_class: Wallabag\UserBundle\Entity\User
fcb1fba5 205 registration:
fcb1fba5 206 confirmation:
23634d5d 207 enabled: "%fosuser_confirmation%"
a40dd989 208 from_email:
23634d5d 209 address: "%from_email%"
a40dd989 210 sender_name: wallabag
fcb1fba5
NL
211fos_oauth_server:
212 db_driver: orm
213 client_class: Wallabag\ApiBundle\Entity\Client
214 access_token_class: Wallabag\ApiBundle\Entity\AccessToken
215 refresh_token_class: Wallabag\ApiBundle\Entity\RefreshToken
216 auth_code_class: Wallabag\ApiBundle\Entity\AuthCode
217 service:
218 user_provider: fos_user.user_manager
2db616b5
NL
219
220scheb_two_factor:
2db616b5
NL
221 trusted_computer:
222 enabled: true
223 cookie_name: wllbg_trusted_computer
0d6a7929 224 cookie_lifetime: 2592000
2db616b5
NL
225
226 email:
23634d5d
JB
227 enabled: "%twofactor_auth%"
228 sender_email: "%twofactor_sender%"
2db616b5
NL
229 digits: 6
230 template: WallabagUserBundle:Authentication:form.html.twig
23ff8d36 231 mailer: wallabag_user.auth_code_mailer
625acf33
KG
232
233kphoen_rulerz:
234 executors:
235 doctrine: true
fbbda941
NL
236
237lexik_maintenance:
238 authorized:
239 ips: ['127.0.0.1']
240 driver:
241 ttl: 3600
242 class: 'Lexik\Bundle\MaintenanceBundle\Drivers\DatabaseDriver'
243 response:
244 code: 503
245 status: "wallabag Service Temporarily Unavailable"
56c778b4
NL
246
247old_sound_rabbit_mq:
248 connections:
249 default:
ef75e122
JB
250 host: "%rabbitmq_host%"
251 port: "%rabbitmq_port%"
252 user: "%rabbitmq_user%"
253 password: "%rabbitmq_password%"
56c778b4 254 vhost: /
ef75e122 255 lazy: true
56c778b4 256 producers:
c98db1b6 257 import_pocket:
56c778b4
NL
258 connection: default
259 exchange_options:
ef75e122 260 name: 'wallabag.import.pocket'
56c778b4 261 type: topic
c98db1b6
JB
262 import_readability:
263 connection: default
264 exchange_options:
265 name: 'wallabag.import.readability'
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
c98db1b6
JB
317 import_wallabag_v1:
318 connection: default
319 exchange_options:
320 name: 'wallabag.import.wallabag_v1'
321 type: topic
322 queue_options:
323 name: 'wallabag.import.wallabag_v1'
ac87e0db 324 callback: wallabag_import.consumer.amqp.wallabag_v1
c98db1b6
JB
325 import_wallabag_v2:
326 connection: default
327 exchange_options:
328 name: 'wallabag.import.wallabag_v2'
329 type: topic
330 queue_options:
331 name: 'wallabag.import.wallabag_v2'
ac87e0db 332 callback: wallabag_import.consumer.amqp.wallabag_v2
2c61db30
TC
333 import_firefox:
334 connection: default
335 exchange_options:
336 name: 'wallabag.import.firefox'
337 type: topic
338 queue_options:
339 name: 'wallabag.import.firefox'
340 callback: wallabag_import.consumer.amqp.firefox
341 import_chrome:
342 connection: default
343 exchange_options:
344 name: 'wallabag.import.chrome'
345 type: topic
346 queue_options:
347 name: 'wallabag.import.chrome'
348 callback: wallabag_import.consumer.amqp.chrome