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