]> git.immae.eu Git - github/wallabag/wallabag.git/blob - app/config/config.yml
04d757c1f3b9cbf87f0db517e23ee69c5f790f0b
[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 trusted_proxies: ~
30 session:
31 # handler_id set to null will use default session handler from php.ini
32 handler_id: session.handler.native_file
33 save_path: "%kernel.project_dir%/var/sessions/%kernel.environment%"
34 fragments: ~
35 http_method_override: true
36 assets: ~
37
38 # Twig Configuration
39 twig:
40 debug: "%kernel.debug%"
41 strict_variables: "%kernel.debug%"
42 form_themes:
43 - "LexikFormFilterBundle:Form:form_div_layout.html.twig"
44 exception_controller: wallabag_core.exception_controller:showAction
45
46 # Doctrine Configuration
47 doctrine:
48 dbal:
49 driver: "%database_driver%"
50 driver_class: "%database_driver_class%"
51 host: "%database_host%"
52 port: "%database_port%"
53 dbname: "%database_name%"
54 user: "%database_user%"
55 password: "%database_password%"
56 charset: "%database_charset%"
57 path: "%database_path%"
58 unix_socket: "%database_socket%"
59 server_version: 5.6
60
61 orm:
62 auto_generate_proxy_classes: "%kernel.debug%"
63 entity_managers:
64 default:
65 auto_mapping: true
66
67 stof_doctrine_extensions:
68 default_locale: "%locale%"
69 translation_fallback: true
70 orm:
71 default:
72 tree: true
73 sluggable: true
74
75 doctrine_migrations:
76 dir_name: "%kernel.project_dir%/app/DoctrineMigrations"
77 namespace: Application\Migrations
78 table_name: migration_versions
79 name: Application Migrations
80
81 # Swiftmailer Configuration
82 swiftmailer:
83 transport: "%mailer_transport%"
84 host: "%mailer_host%"
85 username: "%mailer_user%"
86 password: "%mailer_password%"
87 spool:
88 type: memory
89
90 fos_rest:
91 param_fetcher_listener: true
92 body_listener: true
93 view:
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'
104 view_response_listener: 'force'
105 formats:
106 xml: true
107 json: true
108 txt: true
109 csv: true
110 pdf: true
111 epub: true
112 mobi: true
113 templating_formats:
114 html: false
115 force_redirects:
116 html: true
117 failed_validation: HTTP_BAD_REQUEST
118 default_engine: twig
119 routing_loader:
120 default_format: json
121 format_listener:
122 enabled: true
123 rules:
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 }
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 }
130
131 nelmio_api_doc:
132 sandbox:
133 enabled: false
134 cache:
135 enabled: true
136 name: wallabag API documentation
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: ['*']
151 allow_headers: ['X-Custom-Auth']
152 allow_methods: ['POST', 'PUT', 'PATCH','GET', 'DELETE']
153 max_age: 3600
154 '^/oauth/':
155 allow_origin: ['*']
156 allow_headers: ['X-Custom-Auth']
157 allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
158 max_age: 3600
159 '^/':
160 #origin_regex: true
161 allow_origin: ['^http://localhost:[0-9]+']
162 allow_headers: ['X-Custom-Auth']
163 allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
164 max_age: 3600
165 hosts: ['^api\.']
166
167 liip_theme:
168 load_controllers: false
169 themes:
170 - baggy
171 - material
172 autodetect_theme: wallabag_core.helper.detect_active_theme
173
174 path_patterns:
175 bundle_resource:
176 - "%%bundle_path%%/Resources/views/themes/%%current_theme%%/%%template%%"
177
178 fos_user:
179 db_driver: orm
180 firewall_name: secured_area
181 user_class: Wallabag\UserBundle\Entity\User
182 registration:
183 confirmation:
184 enabled: "%fosuser_confirmation%"
185 from_email:
186 address: "%from_email%"
187 sender_name: wallabag
188
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:
196 user_provider: fos_user.user_provider.username_email
197 options:
198 refresh_token_lifetime: 1209600
199
200 scheb_two_factor:
201 trusted_computer:
202 enabled: true
203 cookie_name: wllbg_trusted_computer
204 cookie_lifetime: 2592000
205
206 email:
207 enabled: "%twofactor_auth%"
208 sender_email: "%twofactor_sender%"
209 digits: 6
210 template: WallabagUserBundle:Authentication:form.html.twig
211 mailer: wallabag_user.auth_code_mailer
212
213 kphoen_rulerz:
214 targets:
215 doctrine: true
216
217 old_sound_rabbit_mq:
218 connections:
219 default:
220 host: "%rabbitmq_host%"
221 port: "%rabbitmq_port%"
222 user: "%rabbitmq_user%"
223 password: "%rabbitmq_password%"
224 vhost: /
225 lazy: true
226 producers:
227 import_pocket:
228 connection: default
229 exchange_options:
230 name: 'wallabag.import.pocket'
231 type: topic
232 import_readability:
233 connection: default
234 exchange_options:
235 name: 'wallabag.import.readability'
236 type: topic
237 import_pinboard:
238 connection: default
239 exchange_options:
240 name: 'wallabag.import.pinboard'
241 type: topic
242 import_instapaper:
243 connection: default
244 exchange_options:
245 name: 'wallabag.import.instapaper'
246 type: topic
247 import_wallabag_v1:
248 connection: default
249 exchange_options:
250 name: 'wallabag.import.wallabag_v1'
251 type: topic
252 import_wallabag_v2:
253 connection: default
254 exchange_options:
255 name: 'wallabag.import.wallabag_v2'
256 type: topic
257 import_firefox:
258 connection: default
259 exchange_options:
260 name: 'wallabag.import.firefox'
261 type: topic
262 import_chrome:
263 connection: default
264 exchange_options:
265 name: 'wallabag.import.chrome'
266 type: topic
267 consumers:
268 import_pocket:
269 connection: default
270 exchange_options:
271 name: 'wallabag.import.pocket'
272 type: topic
273 queue_options:
274 name: 'wallabag.import.pocket'
275 callback: wallabag_import.consumer.amqp.pocket
276 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
277 import_readability:
278 connection: default
279 exchange_options:
280 name: 'wallabag.import.readability'
281 type: topic
282 queue_options:
283 name: 'wallabag.import.readability'
284 callback: wallabag_import.consumer.amqp.readability
285 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
286 import_instapaper:
287 connection: default
288 exchange_options:
289 name: 'wallabag.import.instapaper'
290 type: topic
291 queue_options:
292 name: 'wallabag.import.instapaper'
293 callback: wallabag_import.consumer.amqp.instapaper
294 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
295 import_pinboard:
296 connection: default
297 exchange_options:
298 name: 'wallabag.import.pinboard'
299 type: topic
300 queue_options:
301 name: 'wallabag.import.pinboard'
302 callback: wallabag_import.consumer.amqp.pinboard
303 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
304 import_wallabag_v1:
305 connection: default
306 exchange_options:
307 name: 'wallabag.import.wallabag_v1'
308 type: topic
309 queue_options:
310 name: 'wallabag.import.wallabag_v1'
311 callback: wallabag_import.consumer.amqp.wallabag_v1
312 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
313 import_wallabag_v2:
314 connection: default
315 exchange_options:
316 name: 'wallabag.import.wallabag_v2'
317 type: topic
318 queue_options:
319 name: 'wallabag.import.wallabag_v2'
320 callback: wallabag_import.consumer.amqp.wallabag_v2
321 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
322 import_firefox:
323 connection: default
324 exchange_options:
325 name: 'wallabag.import.firefox'
326 type: topic
327 queue_options:
328 name: 'wallabag.import.firefox'
329 callback: wallabag_import.consumer.amqp.firefox
330 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
331 import_chrome:
332 connection: default
333 exchange_options:
334 name: 'wallabag.import.chrome'
335 type: topic
336 queue_options:
337 name: 'wallabag.import.chrome'
338 callback: wallabag_import.consumer.amqp.chrome
339 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
340
341 fos_js_routing:
342 routes_to_expose:
343 - homepage
344 - starred
345 - archive
346 - all
347 - tag
348 - config
349 - import
350 - developer
351 - howto
352 - fos_user_security_logout
353 - new
354
355 jms_serializer:
356 handlers:
357 # to be removed if we switch to (default) ISO8601 datetime instead of ATOM
358 # see: https://github.com/schmittjoh/JMSSerializerBundle/pull/494
359 datetime:
360 default_format: "Y-m-d\\TH:i:sO" # ATOM