]> git.immae.eu Git - github/wallabag/wallabag.git/blob - app/config/config.yml
092f3ec04860f342aecbfffb607252a45d168c80
[github/wallabag/wallabag.git] / app / config / config.yml
1 imports:
2 - { resource: parameters.yml }
3 - { resource: security.yml }
4 - { resource: services.yml }
5 - { resource: wallabag.yml }
6
7 parameters:
8 # Allows to use the live reload feature for changes in assets
9 use_webpack_dev_server: false
10 craue_config.cache_adapter.class: Craue\ConfigBundle\CacheAdapter\SymfonyCacheComponentAdapter
11
12 framework:
13 #esi: ~
14 translator:
15 enabled: true
16 fallback: "%locale%"
17 secret: "%secret%"
18 router:
19 resource: "%kernel.project_dir%/app/config/routing.yml"
20 strict_requirements: ~
21 form: ~
22 csrf_protection: ~
23 validation:
24 enable_annotations: true
25 templating:
26 engines: ['twig']
27 default_locale: "%locale%"
28 trusted_hosts: ~
29 session:
30 # handler_id set to null will use default session handler from php.ini
31 handler_id: session.handler.native_file
32 save_path: "%kernel.project_dir%/var/sessions/%kernel.environment%"
33 fragments: ~
34 http_method_override: true
35 assets: ~
36
37 # Twig Configuration
38 twig:
39 debug: "%kernel.debug%"
40 strict_variables: "%kernel.debug%"
41 form_themes:
42 - "LexikFormFilterBundle:Form:form_div_layout.html.twig"
43 exception_controller: wallabag_core.exception_controller:showAction
44
45 # Doctrine Configuration
46 doctrine:
47 dbal:
48 driver: "%database_driver%"
49 driver_class: "%database_driver_class%"
50 host: "%database_host%"
51 port: "%database_port%"
52 dbname: "%database_name%"
53 user: "%database_user%"
54 password: "%database_password%"
55 charset: "%database_charset%"
56 path: "%database_path%"
57 unix_socket: "%database_socket%"
58 server_version: 5.6
59
60 orm:
61 auto_generate_proxy_classes: "%kernel.debug%"
62 entity_managers:
63 default:
64 auto_mapping: true
65
66 stof_doctrine_extensions:
67 default_locale: "%locale%"
68 translation_fallback: true
69 orm:
70 default:
71 tree: true
72 sluggable: true
73
74 doctrine_migrations:
75 dir_name: "%kernel.project_dir%/app/DoctrineMigrations"
76 namespace: Application\Migrations
77 table_name: migration_versions
78 name: Application Migrations
79
80 # Swiftmailer Configuration
81 swiftmailer:
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%"
89 spool:
90 type: memory
91
92 fos_rest:
93 param_fetcher_listener: true
94 body_listener: true
95 view:
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'
106 view_response_listener: 'force'
107 formats:
108 xml: true
109 json: true
110 txt: true
111 csv: true
112 pdf: true
113 epub: true
114 mobi: true
115 templating_formats:
116 html: false
117 force_redirects:
118 html: true
119 failed_validation: HTTP_BAD_REQUEST
120 default_engine: twig
121 routing_loader:
122 default_format: json
123 format_listener:
124 enabled: true
125 rules:
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 }
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 }
132
133 nelmio_api_doc:
134 sandbox:
135 enabled: false
136 cache:
137 enabled: true
138 name: wallabag API documentation
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']
154 allow_methods: ['POST', 'PUT', 'PATCH','GET', 'DELETE']
155 max_age: 3600
156 '^/oauth/':
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\.']
168
169 liip_theme:
170 load_controllers: false
171 themes:
172 - baggy
173 - material
174 autodetect_theme: wallabag_core.helper.detect_active_theme
175
176 path_patterns:
177 bundle_resource:
178 - "%%bundle_path%%/Resources/views/themes/%%current_theme%%/%%template%%"
179
180 fos_user:
181 db_driver: orm
182 firewall_name: secured_area
183 user_class: Wallabag\UserBundle\Entity\User
184 registration:
185 confirmation:
186 enabled: "%fosuser_confirmation%"
187 from_email:
188 address: "%from_email%"
189 sender_name: wallabag
190
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:
198 user_provider: fos_user.user_provider.username_email
199 options:
200 refresh_token_lifetime: 1209600
201
202 scheb_two_factor:
203 trusted_computer:
204 enabled: true
205 cookie_name: wllbg_trusted_computer
206 cookie_lifetime: 2592000
207
208 email:
209 enabled: "%twofactor_auth%"
210 sender_email: "%twofactor_sender%"
211 digits: 6
212 template: WallabagUserBundle:Authentication:form.html.twig
213 mailer: wallabag_user.auth_code_mailer
214
215 kphoen_rulerz:
216 targets:
217 doctrine: true
218
219 old_sound_rabbit_mq:
220 connections:
221 default:
222 host: "%rabbitmq_host%"
223 port: "%rabbitmq_port%"
224 user: "%rabbitmq_user%"
225 password: "%rabbitmq_password%"
226 vhost: /
227 lazy: true
228 producers:
229 import_pocket:
230 connection: default
231 exchange_options:
232 name: 'wallabag.import.pocket'
233 type: topic
234 import_readability:
235 connection: default
236 exchange_options:
237 name: 'wallabag.import.readability'
238 type: topic
239 import_pinboard:
240 connection: default
241 exchange_options:
242 name: 'wallabag.import.pinboard'
243 type: topic
244 import_instapaper:
245 connection: default
246 exchange_options:
247 name: 'wallabag.import.instapaper'
248 type: topic
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
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
269 consumers:
270 import_pocket:
271 connection: default
272 exchange_options:
273 name: 'wallabag.import.pocket'
274 type: topic
275 queue_options:
276 name: 'wallabag.import.pocket'
277 callback: wallabag_import.consumer.amqp.pocket
278 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
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'
286 callback: wallabag_import.consumer.amqp.readability
287 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
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
296 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
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
305 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
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'
313 callback: wallabag_import.consumer.amqp.wallabag_v1
314 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
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'
322 callback: wallabag_import.consumer.amqp.wallabag_v2
323 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
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
332 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
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
341 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
342
343 fos_js_routing:
344 routes_to_expose:
345 - homepage
346 - starred
347 - archive
348 - all
349 - tag
350 - config
351 - import
352 - developer
353 - howto
354 - fos_user_security_logout
355 - new
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
363
364 # see https://github.com/symfony/symfony-standard/pull/1133
365 sensio_framework_extra:
366 router:
367 annotations: false