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