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