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