]> git.immae.eu Git - github/wallabag/wallabag.git/blob - app/config/config.yml
ApiDoc & Route annotation were conflicted
[github/wallabag/wallabag.git] / app / config / config.yml
1 imports:
2 - { resource: parameters.yml }
3 - { resource: security.yml }
4 - { resource: services.yml }
5
6 framework:
7 #esi: ~
8 translator:
9 enabled: true
10 fallback: "%locale%"
11 secret: "%secret%"
12 router:
13 resource: "%kernel.root_dir%/config/routing.yml"
14 strict_requirements: ~
15 form: ~
16 csrf_protection: ~
17 validation:
18 enable_annotations: true
19 templating:
20 engines: ['twig']
21 default_locale: "%locale%"
22 trusted_hosts: ~
23 trusted_proxies: ~
24 session:
25 # handler_id set to null will use default session handler from php.ini
26 handler_id: session.handler.native_file
27 save_path: "%kernel.root_dir%/../var/sessions/%kernel.environment%"
28 fragments: ~
29 http_method_override: true
30 assets: ~
31
32 wallabag_core:
33 version: 2.1.2-dev
34 paypal_url: "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9UBA65LG3FX9Y&lc=gb"
35 languages:
36 en: 'English'
37 fr: 'Français'
38 de: 'Deutsch'
39 tr: 'Türkçe'
40 fa: 'فارسی'
41 ro: 'Română'
42 pl: 'Polish'
43 da: 'Dansk'
44 es: 'Español'
45 oc: 'Occitan'
46 it: 'Italiano'
47 items_on_page: 12
48 theme: material
49 language: '%locale%'
50 rss_limit: 50
51 reading_speed: 1
52 cache_lifetime: 10
53
54 wallabag_user:
55 registration_enabled: "%fosuser_registration%"
56
57 wallabag_import:
58 allow_mimetypes: ['application/octet-stream', 'application/json', 'text/plain', 'text/csv']
59 resource_dir: "%kernel.root_dir%/../web/uploads/import"
60
61 # Twig Configuration
62 twig:
63 debug: "%kernel.debug%"
64 strict_variables: "%kernel.debug%"
65 form_themes:
66 - "LexikFormFilterBundle:Form:form_div_layout.html.twig"
67 exception_controller: wallabag_core.exception_controller:showAction
68
69 # Doctrine Configuration
70 doctrine:
71 dbal:
72 driver: "%database_driver%"
73 host: "%database_host%"
74 port: "%database_port%"
75 dbname: "%database_name%"
76 user: "%database_user%"
77 password: "%database_password%"
78 charset: UTF8
79 path: "%database_path%"
80 unix_socket: "%database_socket%"
81 server_version: 5.6
82
83 orm:
84 auto_generate_proxy_classes: "%kernel.debug%"
85 entity_managers:
86 default:
87 auto_mapping: true
88
89 stof_doctrine_extensions:
90 default_locale: "%locale%"
91 translation_fallback: true
92 orm:
93 default:
94 tree: true
95 sluggable: true
96
97 doctrine_migrations:
98 dir_name: "%kernel.root_dir%/DoctrineMigrations"
99 namespace: Application\Migrations
100 table_name: migration_versions
101 name: Application Migrations
102
103 # Swiftmailer Configuration
104 swiftmailer:
105 transport: "%mailer_transport%"
106 host: "%mailer_host%"
107 username: "%mailer_user%"
108 password: "%mailer_password%"
109 spool:
110 type: memory
111
112 fos_rest:
113 param_fetcher_listener: true
114 body_listener: true
115 view:
116 mime_types:
117 csv:
118 - 'text/csv'
119 - 'text/plain'
120 pdf:
121 - 'application/pdf'
122 epub:
123 - 'application/epub+zip'
124 mobi:
125 - 'application/x-mobipocket-ebook'
126 view_response_listener: 'force'
127 formats:
128 xml: true
129 json: true
130 txt: true
131 csv: true
132 pdf: true
133 epub: true
134 mobi: true
135 templating_formats:
136 html: true
137 force_redirects:
138 html: true
139 failed_validation: HTTP_BAD_REQUEST
140 default_engine: twig
141 routing_loader:
142 default_format: json
143 format_listener:
144 enabled: true
145 rules:
146 - { path: "^/api/entries/([0-9]+)/export.(.*)", priorities: ['epub', 'mobi', 'pdf', 'txt', 'csv'], fallback_format: false, prefer_extension: false }
147 - { path: "^/api", priorities: ['json', 'xml'], fallback_format: false, prefer_extension: false }
148 - { path: "^/annotations", priorities: ['json', 'xml'], fallback_format: false, prefer_extension: false }
149 # for an unknown reason, EACH REQUEST goes to FOS\RestBundle\EventListener\FormatListener
150 # so we need to add custom rule for custom api export but also for all other routes of the application...
151 - { path: '^/', priorities: ['text/html', '*/*'], fallback_format: html, prefer_extension: false }
152
153 nelmio_api_doc:
154 sandbox:
155 enabled: false
156 cache:
157 enabled: true
158 name: wallabag API documentation
159
160 nelmio_cors:
161 defaults:
162 allow_credentials: false
163 allow_origin: []
164 allow_headers: []
165 allow_methods: []
166 expose_headers: []
167 max_age: 0
168 hosts: []
169 #origin_regex: false
170 paths:
171 '^/api/':
172 allow_origin: ['*']
173 allow_headers: ['X-Custom-Auth']
174 allow_methods: ['POST', 'PUT', 'PATCH','GET', 'DELETE']
175 max_age: 3600
176 '^/oauth/':
177 allow_origin: ['*']
178 allow_headers: ['X-Custom-Auth']
179 allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
180 max_age: 3600
181 '^/':
182 #origin_regex: true
183 allow_origin: ['^http://localhost:[0-9]+']
184 allow_headers: ['X-Custom-Auth']
185 allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
186 max_age: 3600
187 hosts: ['^api\.']
188
189 liip_theme:
190 load_controllers: false
191 themes:
192 - baggy
193 - material
194 autodetect_theme: wallabag_core.helper.detect_active_theme
195
196 path_patterns:
197 bundle_resource:
198 - "%%bundle_path%%/Resources/views/themes/%%current_theme%%/%%template%%"
199
200 fos_user:
201 db_driver: orm
202 firewall_name: secured_area
203 user_class: Wallabag\UserBundle\Entity\User
204 registration:
205 confirmation:
206 enabled: "%fosuser_confirmation%"
207 from_email:
208 address: "%from_email%"
209 sender_name: wallabag
210 fos_oauth_server:
211 db_driver: orm
212 client_class: Wallabag\ApiBundle\Entity\Client
213 access_token_class: Wallabag\ApiBundle\Entity\AccessToken
214 refresh_token_class: Wallabag\ApiBundle\Entity\RefreshToken
215 auth_code_class: Wallabag\ApiBundle\Entity\AuthCode
216 service:
217 user_provider: fos_user.user_manager
218
219 scheb_two_factor:
220 trusted_computer:
221 enabled: true
222 cookie_name: wllbg_trusted_computer
223 cookie_lifetime: 2592000
224
225 email:
226 enabled: "%twofactor_auth%"
227 sender_email: "%twofactor_sender%"
228 digits: 6
229 template: WallabagUserBundle:Authentication:form.html.twig
230 mailer: wallabag_user.auth_code_mailer
231
232 kphoen_rulerz:
233 executors:
234 doctrine: true
235
236 lexik_maintenance:
237 authorized:
238 ips: ['127.0.0.1']
239 driver:
240 ttl: 3600
241 class: 'Lexik\Bundle\MaintenanceBundle\Drivers\DatabaseDriver'
242 response:
243 code: 503
244 status: "wallabag Service Temporarily Unavailable"
245
246 old_sound_rabbit_mq:
247 connections:
248 default:
249 host: "%rabbitmq_host%"
250 port: "%rabbitmq_port%"
251 user: "%rabbitmq_user%"
252 password: "%rabbitmq_password%"
253 vhost: /
254 lazy: true
255 producers:
256 import_pocket:
257 connection: default
258 exchange_options:
259 name: 'wallabag.import.pocket'
260 type: topic
261 import_readability:
262 connection: default
263 exchange_options:
264 name: 'wallabag.import.readability'
265 type: topic
266 import_instapaper:
267 connection: default
268 exchange_options:
269 name: 'wallabag.import.instapaper'
270 type: topic
271 import_wallabag_v1:
272 connection: default
273 exchange_options:
274 name: 'wallabag.import.wallabag_v1'
275 type: topic
276 import_wallabag_v2:
277 connection: default
278 exchange_options:
279 name: 'wallabag.import.wallabag_v2'
280 type: topic
281 import_firefox:
282 connection: default
283 exchange_options:
284 name: 'wallabag.import.firefox'
285 type: topic
286 import_chrome:
287 connection: default
288 exchange_options:
289 name: 'wallabag.import.chrome'
290 type: topic
291 consumers:
292 import_pocket:
293 connection: default
294 exchange_options:
295 name: 'wallabag.import.pocket'
296 type: topic
297 queue_options:
298 name: 'wallabag.import.pocket'
299 callback: wallabag_import.consumer.amqp.pocket
300 import_readability:
301 connection: default
302 exchange_options:
303 name: 'wallabag.import.readability'
304 type: topic
305 queue_options:
306 name: 'wallabag.import.readability'
307 callback: wallabag_import.consumer.amqp.readability
308 import_instapaper:
309 connection: default
310 exchange_options:
311 name: 'wallabag.import.instapaper'
312 type: topic
313 queue_options:
314 name: 'wallabag.import.instapaper'
315 callback: wallabag_import.consumer.amqp.instapaper
316 import_wallabag_v1:
317 connection: default
318 exchange_options:
319 name: 'wallabag.import.wallabag_v1'
320 type: topic
321 queue_options:
322 name: 'wallabag.import.wallabag_v1'
323 callback: wallabag_import.consumer.amqp.wallabag_v1
324 import_wallabag_v2:
325 connection: default
326 exchange_options:
327 name: 'wallabag.import.wallabag_v2'
328 type: topic
329 queue_options:
330 name: 'wallabag.import.wallabag_v2'
331 callback: wallabag_import.consumer.amqp.wallabag_v2
332 import_firefox:
333 connection: default
334 exchange_options:
335 name: 'wallabag.import.firefox'
336 type: topic
337 queue_options:
338 name: 'wallabag.import.firefox'
339 callback: wallabag_import.consumer.amqp.firefox
340 import_chrome:
341 connection: default
342 exchange_options:
343 name: 'wallabag.import.chrome'
344 type: topic
345 queue_options:
346 name: 'wallabag.import.chrome'
347 callback: wallabag_import.consumer.amqp.chrome