]>
Commit | Line | Data |
---|---|---|
93fd4692 NL |
1 | imports: |
2 | - { resource: parameters.yml } | |
3 | - { resource: security.yml } | |
4 | - { resource: services.yml } | |
bf7f0cb5 | 5 | - { resource: wallabag.yml } |
93fd4692 | 6 | |
64f81bc3 | 7 | parameters: |
e35f8439 | 8 | # Allows to use the live reload feature for changes in assets |
8655913e | 9 | use_webpack_dev_server: false |
3b792787 | 10 | craue_config.cache_adapter.class: Craue\ConfigBundle\CacheAdapter\SymfonyCacheComponentAdapter |
64f81bc3 | 11 | |
93fd4692 NL |
12 | framework: |
13 | #esi: ~ | |
2bc9cad7 JB |
14 | translator: |
15 | enabled: true | |
16 | fallback: "%locale%" | |
17 | secret: "%secret%" | |
93fd4692 | 18 | router: |
9ca069a6 | 19 | resource: "%kernel.project_dir%/app/config/routing.yml" |
93fd4692 | 20 | strict_requirements: ~ |
2bc9cad7 | 21 | form: ~ |
93fd4692 | 22 | csrf_protection: ~ |
2bc9cad7 JB |
23 | validation: |
24 | enable_annotations: true | |
93fd4692 NL |
25 | templating: |
26 | engines: ['twig'] | |
2bc9cad7 JB |
27 | default_locale: "%locale%" |
28 | trusted_hosts: ~ | |
93fd4692 NL |
29 | session: |
30 | # handler_id set to null will use default session handler from php.ini | |
2bc9cad7 | 31 | handler_id: session.handler.native_file |
9ca069a6 | 32 | save_path: "%kernel.project_dir%/var/sessions/%kernel.environment%" |
2bc9cad7 | 33 | fragments: ~ |
93fd4692 | 34 | http_method_override: true |
d8dbe76b | 35 | assets: ~ |
93fd4692 NL |
36 | |
37 | # Twig Configuration | |
38 | twig: | |
2bc9cad7 | 39 | debug: "%kernel.debug%" |
93fd4692 | 40 | strict_variables: "%kernel.debug%" |
5c895a7f JB |
41 | form_themes: |
42 | - "LexikFormFilterBundle:Form:form_div_layout.html.twig" | |
40e21962 | 43 | exception_controller: wallabag_core.exception_controller:showAction |
6682139e | 44 | |
93fd4692 NL |
45 | # Doctrine Configuration |
46 | doctrine: | |
47 | dbal: | |
2bc9cad7 | 48 | driver: "%database_driver%" |
61b9fdd5 NL |
49 | host: "%database_host%" |
50 | port: "%database_port%" | |
51 | dbname: "%database_name%" | |
52 | user: "%database_user%" | |
53 | password: "%database_password%" | |
98efffc2 | 54 | charset: "%database_charset%" |
2bc9cad7 | 55 | path: "%database_path%" |
6d204f53 | 56 | unix_socket: "%database_socket%" |
93fd4692 NL |
57 | |
58 | orm: | |
59 | auto_generate_proxy_classes: "%kernel.debug%" | |
164bd801 J |
60 | entity_managers: |
61 | default: | |
164bd801 | 62 | auto_mapping: true |
93fd4692 | 63 | |
3c65dfb7 NL |
64 | stof_doctrine_extensions: |
65 | default_locale: "%locale%" | |
66 | translation_fallback: true | |
67 | orm: | |
68 | default: | |
69 | tree: true | |
70 | sluggable: true | |
71 | ||
292c1324 | 72 | doctrine_migrations: |
9ca069a6 | 73 | dir_name: "%kernel.project_dir%/app/DoctrineMigrations" |
292c1324 NL |
74 | namespace: Application\Migrations |
75 | table_name: migration_versions | |
76 | name: Application Migrations | |
77 | ||
93fd4692 NL |
78 | # Swiftmailer Configuration |
79 | swiftmailer: | |
6a318706 GG |
80 | transport: "%mailer_transport%" |
81 | username: "%mailer_user%" | |
82 | password: "%mailer_password%" | |
83 | host: "%mailer_host%" | |
84 | port: "%mailer_port%" | |
85 | encryption: "%mailer_encryption%" | |
86 | auth_mode: "%mailer_auth_mode%" | |
2bc9cad7 JB |
87 | spool: |
88 | type: memory | |
e4788de5 NL |
89 | |
90 | fos_rest: | |
91 | param_fetcher_listener: true | |
92 | body_listener: true | |
e4788de5 | 93 | view: |
f1c3f68e JB |
94 | mime_types: |
95 | csv: | |
96 | - 'text/csv' | |
97 | - 'text/plain' | |
98 | pdf: | |
99 | - 'application/pdf' | |
100 | epub: | |
101 | - 'application/epub+zip' | |
102 | mobi: | |
103 | - 'application/x-mobipocket-ebook' | |
e4788de5 NL |
104 | view_response_listener: 'force' |
105 | formats: | |
106 | xml: true | |
f1c3f68e JB |
107 | json: true |
108 | txt: true | |
109 | csv: true | |
110 | pdf: true | |
111 | epub: true | |
112 | mobi: true | |
e4788de5 | 113 | templating_formats: |
2e6239bb | 114 | html: false |
e4788de5 NL |
115 | force_redirects: |
116 | html: true | |
117 | failed_validation: HTTP_BAD_REQUEST | |
118 | default_engine: twig | |
119 | routing_loader: | |
a65f5d55 | 120 | default_format: json |
f1c3f68e JB |
121 | format_listener: |
122 | enabled: true | |
123 | rules: | |
0bacc9e1 NL |
124 | - { path: "^/api/entries/([0-9]+)/export.(.*)", priorities: ['epub', 'mobi', 'pdf', 'txt', 'csv'], fallback_format: json, prefer_extension: false } |
125 | - { path: "^/api", priorities: ['json', 'xml'], fallback_format: json, prefer_extension: false } | |
126 | - { path: "^/annotations", priorities: ['json', 'xml'], fallback_format: json, prefer_extension: false } | |
f1c3f68e JB |
127 | # for an unknown reason, EACH REQUEST goes to FOS\RestBundle\EventListener\FormatListener |
128 | # so we need to add custom rule for custom api export but also for all other routes of the application... | |
129 | - { path: '^/', priorities: ['text/html', '*/*'], fallback_format: html, prefer_extension: false } | |
e4788de5 | 130 | |
cd1298d6 NL |
131 | nelmio_api_doc: |
132 | sandbox: | |
133 | enabled: false | |
3f3a6087 JB |
134 | cache: |
135 | enabled: true | |
3c65dfb7 | 136 | name: wallabag API documentation |
fca3c757 NL |
137 | |
138 | nelmio_cors: | |
139 | defaults: | |
140 | allow_credentials: false | |
141 | allow_origin: [] | |
142 | allow_headers: [] | |
143 | allow_methods: [] | |
144 | expose_headers: [] | |
145 | max_age: 0 | |
146 | hosts: [] | |
147 | #origin_regex: false | |
148 | paths: | |
149 | '^/api/': | |
150 | allow_origin: ['*'] | |
a9f61d3d | 151 | allow_headers: ['Authorization','content-type'] |
41c9eecf | 152 | allow_methods: ['POST', 'PUT', 'PATCH','GET', 'DELETE'] |
fca3c757 | 153 | max_age: 3600 |
848c2e1b | 154 | '^/oauth/': |
fca3c757 | 155 | allow_origin: ['*'] |
a9f61d3d | 156 | allow_headers: ['Authorization','content-type'] |
fca3c757 NL |
157 | allow_methods: ['POST', 'PUT', 'GET', 'DELETE'] |
158 | max_age: 3600 | |
159 | '^/': | |
160 | #origin_regex: true | |
a9f61d3d R |
161 | allow_origin: ['*'] |
162 | allow_headers: ['Authorization','content-type'] | |
fca3c757 NL |
163 | allow_methods: ['POST', 'PUT', 'GET', 'DELETE'] |
164 | max_age: 3600 | |
165 | hosts: ['^api\.'] | |
32da2a70 J |
166 | |
167 | liip_theme: | |
168 | load_controllers: false | |
169 | themes: | |
170 | - baggy | |
9948d899 | 171 | - material |
32da2a70 J |
172 | autodetect_theme: wallabag_core.helper.detect_active_theme |
173 | ||
174 | path_patterns: | |
32da2a70 | 175 | bundle_resource: |
23634d5d | 176 | - "%%bundle_path%%/Resources/views/themes/%%current_theme%%/%%template%%" |
a1691859 NL |
177 | |
178 | fos_user: | |
179 | db_driver: orm | |
fdc90ceb | 180 | firewall_name: secured_area |
1210dae1 | 181 | user_class: Wallabag\UserBundle\Entity\User |
fcb1fba5 | 182 | registration: |
fcb1fba5 | 183 | confirmation: |
23634d5d | 184 | enabled: "%fosuser_confirmation%" |
a40dd989 | 185 | from_email: |
23634d5d | 186 | address: "%from_email%" |
a40dd989 | 187 | sender_name: wallabag |
5066c3e0 | 188 | |
fcb1fba5 NL |
189 | fos_oauth_server: |
190 | db_driver: orm | |
191 | client_class: Wallabag\ApiBundle\Entity\Client | |
192 | access_token_class: Wallabag\ApiBundle\Entity\AccessToken | |
193 | refresh_token_class: Wallabag\ApiBundle\Entity\RefreshToken | |
194 | auth_code_class: Wallabag\ApiBundle\Entity\AuthCode | |
195 | service: | |
5066c3e0 | 196 | user_provider: fos_user.user_provider.username_email |
05cdd393 | 197 | options: |
d20a8c5f JB |
198 | refresh_token_lifetime: "%fos_oauth_server_refresh_token_lifetime%" |
199 | access_token_lifetime: "%fos_oauth_server_access_token_lifetime%" | |
5066c3e0 | 200 | |
2db616b5 | 201 | scheb_two_factor: |
a6b242a1 | 202 | trusted_device: |
2db616b5 NL |
203 | enabled: true |
204 | cookie_name: wllbg_trusted_computer | |
a6b242a1 JB |
205 | lifetime: 2592000 |
206 | ||
dfd0a7bc JB |
207 | backup_codes: |
208 | enabled: "%twofactor_auth%" | |
209 | ||
a6b242a1 JB |
210 | google: |
211 | enabled: "%twofactor_auth%" | |
212 | template: WallabagUserBundle:Authentication:form.html.twig | |
2db616b5 NL |
213 | |
214 | email: | |
23634d5d JB |
215 | enabled: "%twofactor_auth%" |
216 | sender_email: "%twofactor_sender%" | |
2db616b5 NL |
217 | digits: 6 |
218 | template: WallabagUserBundle:Authentication:form.html.twig | |
23ff8d36 | 219 | mailer: wallabag_user.auth_code_mailer |
625acf33 KG |
220 | |
221 | kphoen_rulerz: | |
177c5510 | 222 | targets: |
625acf33 | 223 | doctrine: true |
fbbda941 | 224 | |
56c778b4 NL |
225 | old_sound_rabbit_mq: |
226 | connections: | |
227 | default: | |
ef75e122 JB |
228 | host: "%rabbitmq_host%" |
229 | port: "%rabbitmq_port%" | |
230 | user: "%rabbitmq_user%" | |
231 | password: "%rabbitmq_password%" | |
56c778b4 | 232 | vhost: / |
ef75e122 | 233 | lazy: true |
56c778b4 | 234 | producers: |
c98db1b6 | 235 | import_pocket: |
56c778b4 NL |
236 | connection: default |
237 | exchange_options: | |
ef75e122 | 238 | name: 'wallabag.import.pocket' |
56c778b4 | 239 | type: topic |
c98db1b6 JB |
240 | import_readability: |
241 | connection: default | |
242 | exchange_options: | |
243 | name: 'wallabag.import.readability' | |
244 | type: topic | |
9ab024b4 JB |
245 | import_pinboard: |
246 | connection: default | |
247 | exchange_options: | |
248 | name: 'wallabag.import.pinboard' | |
249 | type: topic | |
c7ea9b41 JB |
250 | import_instapaper: |
251 | connection: default | |
252 | exchange_options: | |
253 | name: 'wallabag.import.instapaper' | |
254 | type: topic | |
c98db1b6 JB |
255 | import_wallabag_v1: |
256 | connection: default | |
257 | exchange_options: | |
258 | name: 'wallabag.import.wallabag_v1' | |
259 | type: topic | |
260 | import_wallabag_v2: | |
261 | connection: default | |
262 | exchange_options: | |
263 | name: 'wallabag.import.wallabag_v2' | |
264 | type: topic | |
958e77e6 NL |
265 | import_elcurator: |
266 | connection: default | |
267 | exchange_options: | |
268 | name: 'wallabag.import.elcurator' | |
269 | type: topic | |
2c61db30 TC |
270 | import_firefox: |
271 | connection: default | |
272 | exchange_options: | |
273 | name: 'wallabag.import.firefox' | |
274 | type: topic | |
275 | import_chrome: | |
276 | connection: default | |
277 | exchange_options: | |
278 | name: 'wallabag.import.chrome' | |
279 | type: topic | |
56c778b4 | 280 | consumers: |
c98db1b6 | 281 | import_pocket: |
56c778b4 NL |
282 | connection: default |
283 | exchange_options: | |
ef75e122 | 284 | name: 'wallabag.import.pocket' |
56c778b4 NL |
285 | type: topic |
286 | queue_options: | |
ef75e122 | 287 | name: 'wallabag.import.pocket' |
ac87e0db | 288 | callback: wallabag_import.consumer.amqp.pocket |
881b0578 | 289 | qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"} |
c98db1b6 JB |
290 | import_readability: |
291 | connection: default | |
292 | exchange_options: | |
293 | name: 'wallabag.import.readability' | |
294 | type: topic | |
295 | queue_options: | |
296 | name: 'wallabag.import.readability' | |
ac87e0db | 297 | callback: wallabag_import.consumer.amqp.readability |
881b0578 | 298 | qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"} |
c7ea9b41 JB |
299 | import_instapaper: |
300 | connection: default | |
301 | exchange_options: | |
302 | name: 'wallabag.import.instapaper' | |
303 | type: topic | |
304 | queue_options: | |
305 | name: 'wallabag.import.instapaper' | |
306 | callback: wallabag_import.consumer.amqp.instapaper | |
881b0578 | 307 | qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"} |
9ab024b4 JB |
308 | import_pinboard: |
309 | connection: default | |
310 | exchange_options: | |
311 | name: 'wallabag.import.pinboard' | |
312 | type: topic | |
313 | queue_options: | |
314 | name: 'wallabag.import.pinboard' | |
315 | callback: wallabag_import.consumer.amqp.pinboard | |
881b0578 | 316 | qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"} |
c98db1b6 JB |
317 | import_wallabag_v1: |
318 | connection: default | |
319 | exchange_options: | |
320 | name: 'wallabag.import.wallabag_v1' | |
321 | type: topic | |
322 | queue_options: | |
323 | name: 'wallabag.import.wallabag_v1' | |
ac87e0db | 324 | callback: wallabag_import.consumer.amqp.wallabag_v1 |
881b0578 | 325 | qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"} |
c98db1b6 JB |
326 | import_wallabag_v2: |
327 | connection: default | |
328 | exchange_options: | |
329 | name: 'wallabag.import.wallabag_v2' | |
330 | type: topic | |
331 | queue_options: | |
332 | name: 'wallabag.import.wallabag_v2' | |
ac87e0db | 333 | callback: wallabag_import.consumer.amqp.wallabag_v2 |
881b0578 | 334 | qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"} |
958e77e6 NL |
335 | import_elcurator: |
336 | connection: default | |
337 | exchange_options: | |
338 | name: 'wallabag.import.elcurator' | |
339 | type: topic | |
340 | queue_options: | |
341 | name: 'wallabag.import.elcurator' | |
342 | callback: wallabag_import.consumer.amqp.elcurator | |
343 | qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"} | |
2c61db30 TC |
344 | import_firefox: |
345 | connection: default | |
346 | exchange_options: | |
347 | name: 'wallabag.import.firefox' | |
348 | type: topic | |
349 | queue_options: | |
350 | name: 'wallabag.import.firefox' | |
351 | callback: wallabag_import.consumer.amqp.firefox | |
881b0578 | 352 | qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"} |
2c61db30 TC |
353 | import_chrome: |
354 | connection: default | |
355 | exchange_options: | |
356 | name: 'wallabag.import.chrome' | |
357 | type: topic | |
358 | queue_options: | |
359 | name: 'wallabag.import.chrome' | |
360 | callback: wallabag_import.consumer.amqp.chrome | |
881b0578 | 361 | qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"} |
3cc78f06 NL |
362 | |
363 | fos_js_routing: | |
49c5d0ad NL |
364 | routes_to_expose: |
365 | - homepage | |
366 | - starred | |
367 | - archive | |
368 | - all | |
369 | - tag | |
370 | - config | |
371 | - import | |
372 | - developer | |
373 | - howto | |
66e9dde0 | 374 | - fos_user_security_logout |
995c2044 | 375 | - new |
f40c88eb JB |
376 | |
377 | jms_serializer: | |
378 | handlers: | |
379 | # to be removed if we switch to (default) ISO8601 datetime instead of ATOM | |
380 | # see: https://github.com/schmittjoh/JMSSerializerBundle/pull/494 | |
381 | datetime: | |
382 | default_format: "Y-m-d\\TH:i:sO" # ATOM | |
115de64e JB |
383 | |
384 | # see https://github.com/symfony/symfony-standard/pull/1133 | |
385 | sensio_framework_extra: | |
386 | router: | |
387 | annotations: false | |
bf9ace06 | 388 | |
389 | httplug: | |
390 | clients: | |
391 | wallabag_core: | |
392 | factory: 'wallabag_core.http_client_factory' | |
1048c9c4 | 393 | config: |
394 | defaults: | |
395 | timeout: 10 | |
bf9ace06 | 396 | plugins: ['httplug.plugin.logger'] |
397 | wallabag_core.entry.download_images: | |
398 | factory: 'httplug.factory.auto' | |
399 | plugins: ['httplug.plugin.logger'] | |
400 | wallabag_import.pocket.client: | |
401 | factory: 'httplug.factory.auto' | |
402 | plugins: | |
403 | - 'httplug.plugin.logger' | |
404 | - header_defaults: | |
405 | headers: | |
406 | 'content-type': 'application/json' | |
407 | 'X-Accept': 'application/json' | |
408 | discovery: | |
409 | client: false | |
1576905e JB |
410 | |
411 | # define custom entity so we can override length attribute to fix utf8mb4 issue | |
412 | craue_config: | |
413 | entity_name: Wallabag\CoreBundle\Entity\InternalSetting |