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