]> git.immae.eu Git - github/wallabag/wallabag.git/blob - app/config/config.yml
Remove custom Postgres class
[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 host: "%database_host%"
50 port: "%database_port%"
51 dbname: "%database_name%"
52 user: "%database_user%"
53 password: "%database_password%"
54 charset: "%database_charset%"
55 path: "%database_path%"
56 unix_socket: "%database_socket%"
57 server_version: 5.6
58
59 orm:
60 auto_generate_proxy_classes: "%kernel.debug%"
61 entity_managers:
62 default:
63 auto_mapping: true
64
65 stof_doctrine_extensions:
66 default_locale: "%locale%"
67 translation_fallback: true
68 orm:
69 default:
70 tree: true
71 sluggable: true
72
73 doctrine_migrations:
74 dir_name: "%kernel.project_dir%/app/DoctrineMigrations"
75 namespace: Application\Migrations
76 table_name: migration_versions
77 name: Application Migrations
78
79 # Swiftmailer Configuration
80 swiftmailer:
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%"
88 spool:
89 type: memory
90
91 fos_rest:
92 param_fetcher_listener: true
93 body_listener: true
94 view:
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'
105 view_response_listener: 'force'
106 formats:
107 xml: true
108 json: true
109 txt: true
110 csv: true
111 pdf: true
112 epub: true
113 mobi: true
114 templating_formats:
115 html: false
116 force_redirects:
117 html: true
118 failed_validation: HTTP_BAD_REQUEST
119 default_engine: twig
120 routing_loader:
121 default_format: json
122 format_listener:
123 enabled: true
124 rules:
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 }
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 }
131
132 nelmio_api_doc:
133 sandbox:
134 enabled: false
135 cache:
136 enabled: true
137 name: wallabag API documentation
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']
153 allow_methods: ['POST', 'PUT', 'PATCH','GET', 'DELETE']
154 max_age: 3600
155 '^/oauth/':
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\.']
167
168 liip_theme:
169 load_controllers: false
170 themes:
171 - baggy
172 - material
173 autodetect_theme: wallabag_core.helper.detect_active_theme
174
175 path_patterns:
176 bundle_resource:
177 - "%%bundle_path%%/Resources/views/themes/%%current_theme%%/%%template%%"
178
179 fos_user:
180 db_driver: orm
181 firewall_name: secured_area
182 user_class: Wallabag\UserBundle\Entity\User
183 registration:
184 confirmation:
185 enabled: "%fosuser_confirmation%"
186 from_email:
187 address: "%from_email%"
188 sender_name: wallabag
189
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:
197 user_provider: fos_user.user_provider.username_email
198 options:
199 refresh_token_lifetime: 1209600
200
201 scheb_two_factor:
202 trusted_computer:
203 enabled: true
204 cookie_name: wllbg_trusted_computer
205 cookie_lifetime: 2592000
206
207 email:
208 enabled: "%twofactor_auth%"
209 sender_email: "%twofactor_sender%"
210 digits: 6
211 template: WallabagUserBundle:Authentication:form.html.twig
212 mailer: wallabag_user.auth_code_mailer
213
214 kphoen_rulerz:
215 targets:
216 doctrine: true
217
218 old_sound_rabbit_mq:
219 connections:
220 default:
221 host: "%rabbitmq_host%"
222 port: "%rabbitmq_port%"
223 user: "%rabbitmq_user%"
224 password: "%rabbitmq_password%"
225 vhost: /
226 lazy: true
227 producers:
228 import_pocket:
229 connection: default
230 exchange_options:
231 name: 'wallabag.import.pocket'
232 type: topic
233 import_readability:
234 connection: default
235 exchange_options:
236 name: 'wallabag.import.readability'
237 type: topic
238 import_pinboard:
239 connection: default
240 exchange_options:
241 name: 'wallabag.import.pinboard'
242 type: topic
243 import_instapaper:
244 connection: default
245 exchange_options:
246 name: 'wallabag.import.instapaper'
247 type: topic
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
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
268 consumers:
269 import_pocket:
270 connection: default
271 exchange_options:
272 name: 'wallabag.import.pocket'
273 type: topic
274 queue_options:
275 name: 'wallabag.import.pocket'
276 callback: wallabag_import.consumer.amqp.pocket
277 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
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'
285 callback: wallabag_import.consumer.amqp.readability
286 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
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
295 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
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
304 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
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'
312 callback: wallabag_import.consumer.amqp.wallabag_v1
313 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
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'
321 callback: wallabag_import.consumer.amqp.wallabag_v2
322 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
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
331 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
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
340 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
341
342 fos_js_routing:
343 routes_to_expose:
344 - homepage
345 - starred
346 - archive
347 - all
348 - tag
349 - config
350 - import
351 - developer
352 - howto
353 - fos_user_security_logout
354 - new
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
362
363 # see https://github.com/symfony/symfony-standard/pull/1133
364 sensio_framework_extra:
365 router:
366 annotations: false