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