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