]> git.immae.eu Git - github/wallabag/wallabag.git/blob - app/config/config.yml
d37ed227b4db44e6937b3bd3c4d9639f0c2ae75c
[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.root_dir%/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.root_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 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.root_dir%/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 host: "%mailer_host%"
84 username: "%mailer_user%"
85 password: "%mailer_password%"
86 spool:
87 type: memory
88
89 fos_rest:
90 param_fetcher_listener: true
91 body_listener: true
92 view:
93 mime_types:
94 csv:
95 - 'text/csv'
96 - 'text/plain'
97 pdf:
98 - 'application/pdf'
99 epub:
100 - 'application/epub+zip'
101 mobi:
102 - 'application/x-mobipocket-ebook'
103 view_response_listener: 'force'
104 formats:
105 xml: true
106 json: true
107 txt: true
108 csv: true
109 pdf: true
110 epub: true
111 mobi: true
112 templating_formats:
113 html: false
114 force_redirects:
115 html: true
116 failed_validation: HTTP_BAD_REQUEST
117 default_engine: twig
118 routing_loader:
119 default_format: json
120 format_listener:
121 enabled: true
122 rules:
123 - { path: "^/api/entries/([0-9]+)/export.(.*)", priorities: ['epub', 'mobi', 'pdf', 'txt', 'csv'], fallback_format: json, prefer_extension: false }
124 - { path: "^/api", priorities: ['json', 'xml'], fallback_format: json, prefer_extension: false }
125 - { path: "^/annotations", priorities: ['json', 'xml'], fallback_format: json, prefer_extension: false }
126 # for an unknown reason, EACH REQUEST goes to FOS\RestBundle\EventListener\FormatListener
127 # so we need to add custom rule for custom api export but also for all other routes of the application...
128 - { path: '^/', priorities: ['text/html', '*/*'], fallback_format: html, prefer_extension: false }
129
130 nelmio_api_doc:
131 sandbox:
132 enabled: false
133 cache:
134 enabled: true
135 name: wallabag API documentation
136
137 nelmio_cors:
138 defaults:
139 allow_credentials: false
140 allow_origin: []
141 allow_headers: []
142 allow_methods: []
143 expose_headers: []
144 max_age: 0
145 hosts: []
146 #origin_regex: false
147 paths:
148 '^/api/':
149 allow_origin: ['*']
150 allow_headers: ['X-Custom-Auth']
151 allow_methods: ['POST', 'PUT', 'PATCH','GET', 'DELETE']
152 max_age: 3600
153 '^/oauth/':
154 allow_origin: ['*']
155 allow_headers: ['X-Custom-Auth']
156 allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
157 max_age: 3600
158 '^/':
159 #origin_regex: true
160 allow_origin: ['^http://localhost:[0-9]+']
161 allow_headers: ['X-Custom-Auth']
162 allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
163 max_age: 3600
164 hosts: ['^api\.']
165
166 liip_theme:
167 load_controllers: false
168 themes:
169 - baggy
170 - material
171 autodetect_theme: wallabag_core.helper.detect_active_theme
172
173 path_patterns:
174 bundle_resource:
175 - "%%bundle_path%%/Resources/views/themes/%%current_theme%%/%%template%%"
176
177 fos_user:
178 db_driver: orm
179 firewall_name: secured_area
180 user_class: Wallabag\UserBundle\Entity\User
181 registration:
182 confirmation:
183 enabled: "%fosuser_confirmation%"
184 from_email:
185 address: "%from_email%"
186 sender_name: wallabag
187
188 fos_oauth_server:
189 db_driver: orm
190 client_class: Wallabag\ApiBundle\Entity\Client
191 access_token_class: Wallabag\ApiBundle\Entity\AccessToken
192 refresh_token_class: Wallabag\ApiBundle\Entity\RefreshToken
193 auth_code_class: Wallabag\ApiBundle\Entity\AuthCode
194 service:
195 user_provider: fos_user.user_provider.username_email
196 options:
197 refresh_token_lifetime: 1209600
198
199 scheb_two_factor:
200 trusted_computer:
201 enabled: true
202 cookie_name: wllbg_trusted_computer
203 cookie_lifetime: 2592000
204
205 email:
206 enabled: "%twofactor_auth%"
207 sender_email: "%twofactor_sender%"
208 digits: 6
209 template: WallabagUserBundle:Authentication:form.html.twig
210 mailer: wallabag_user.auth_code_mailer
211
212 kphoen_rulerz:
213 targets:
214 doctrine: true
215
216 old_sound_rabbit_mq:
217 connections:
218 default:
219 host: "%rabbitmq_host%"
220 port: "%rabbitmq_port%"
221 user: "%rabbitmq_user%"
222 password: "%rabbitmq_password%"
223 vhost: /
224 lazy: true
225 producers:
226 import_pocket:
227 connection: default
228 exchange_options:
229 name: 'wallabag.import.pocket'
230 type: topic
231 import_readability:
232 connection: default
233 exchange_options:
234 name: 'wallabag.import.readability'
235 type: topic
236 import_pinboard:
237 connection: default
238 exchange_options:
239 name: 'wallabag.import.pinboard'
240 type: topic
241 import_instapaper:
242 connection: default
243 exchange_options:
244 name: 'wallabag.import.instapaper'
245 type: topic
246 import_wallabag_v1:
247 connection: default
248 exchange_options:
249 name: 'wallabag.import.wallabag_v1'
250 type: topic
251 import_wallabag_v2:
252 connection: default
253 exchange_options:
254 name: 'wallabag.import.wallabag_v2'
255 type: topic
256 import_firefox:
257 connection: default
258 exchange_options:
259 name: 'wallabag.import.firefox'
260 type: topic
261 import_chrome:
262 connection: default
263 exchange_options:
264 name: 'wallabag.import.chrome'
265 type: topic
266 consumers:
267 import_pocket:
268 connection: default
269 exchange_options:
270 name: 'wallabag.import.pocket'
271 type: topic
272 queue_options:
273 name: 'wallabag.import.pocket'
274 callback: wallabag_import.consumer.amqp.pocket
275 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
276 import_readability:
277 connection: default
278 exchange_options:
279 name: 'wallabag.import.readability'
280 type: topic
281 queue_options:
282 name: 'wallabag.import.readability'
283 callback: wallabag_import.consumer.amqp.readability
284 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
285 import_instapaper:
286 connection: default
287 exchange_options:
288 name: 'wallabag.import.instapaper'
289 type: topic
290 queue_options:
291 name: 'wallabag.import.instapaper'
292 callback: wallabag_import.consumer.amqp.instapaper
293 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
294 import_pinboard:
295 connection: default
296 exchange_options:
297 name: 'wallabag.import.pinboard'
298 type: topic
299 queue_options:
300 name: 'wallabag.import.pinboard'
301 callback: wallabag_import.consumer.amqp.pinboard
302 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
303 import_wallabag_v1:
304 connection: default
305 exchange_options:
306 name: 'wallabag.import.wallabag_v1'
307 type: topic
308 queue_options:
309 name: 'wallabag.import.wallabag_v1'
310 callback: wallabag_import.consumer.amqp.wallabag_v1
311 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
312 import_wallabag_v2:
313 connection: default
314 exchange_options:
315 name: 'wallabag.import.wallabag_v2'
316 type: topic
317 queue_options:
318 name: 'wallabag.import.wallabag_v2'
319 callback: wallabag_import.consumer.amqp.wallabag_v2
320 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
321 import_firefox:
322 connection: default
323 exchange_options:
324 name: 'wallabag.import.firefox'
325 type: topic
326 queue_options:
327 name: 'wallabag.import.firefox'
328 callback: wallabag_import.consumer.amqp.firefox
329 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
330 import_chrome:
331 connection: default
332 exchange_options:
333 name: 'wallabag.import.chrome'
334 type: topic
335 queue_options:
336 name: 'wallabag.import.chrome'
337 callback: wallabag_import.consumer.amqp.chrome
338 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
339
340 fos_js_routing:
341 routes_to_expose:
342 - homepage
343 - starred
344 - archive
345 - all
346 - tag
347 - config
348 - import
349 - developer
350 - howto
351 - fos_user_security_logout
352 - new