]> git.immae.eu Git - github/wallabag/wallabag.git/blob - app/config/config.yml
Prepare wallabag 2.1.4 :rocket:
[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.4
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 pt: 'Português'
48 items_on_page: 12
49 theme: material
50 language: '%locale%'
51 rss_limit: 50
52 reading_speed: 1
53 cache_lifetime: 10
54 fetching_error_message: |
55 wallabag can't retrieve contents for this article. Please <a href="http://doc.wallabag.org/en/master/user/errors_during_fetching.html#how-can-i-help-to-fix-that">troubleshoot this issue</a>.
56
57 wallabag_user:
58 registration_enabled: "%fosuser_registration%"
59
60 wallabag_import:
61 allow_mimetypes: ['application/octet-stream', 'application/json', 'text/plain', 'text/csv']
62 resource_dir: "%kernel.root_dir%/../web/uploads/import"
63
64 # Twig Configuration
65 twig:
66 debug: "%kernel.debug%"
67 strict_variables: "%kernel.debug%"
68 form_themes:
69 - "LexikFormFilterBundle:Form:form_div_layout.html.twig"
70 exception_controller: wallabag_core.exception_controller:showAction
71
72 # Doctrine Configuration
73 doctrine:
74 dbal:
75 driver: "%database_driver%"
76 host: "%database_host%"
77 port: "%database_port%"
78 dbname: "%database_name%"
79 user: "%database_user%"
80 password: "%database_password%"
81 charset: UTF8
82 path: "%database_path%"
83 unix_socket: "%database_socket%"
84 server_version: 5.6
85
86 orm:
87 auto_generate_proxy_classes: "%kernel.debug%"
88 entity_managers:
89 default:
90 auto_mapping: true
91
92 stof_doctrine_extensions:
93 default_locale: "%locale%"
94 translation_fallback: true
95 orm:
96 default:
97 tree: true
98 sluggable: true
99
100 doctrine_migrations:
101 dir_name: "%kernel.root_dir%/DoctrineMigrations"
102 namespace: Application\Migrations
103 table_name: migration_versions
104 name: Application Migrations
105
106 # Swiftmailer Configuration
107 swiftmailer:
108 transport: "%mailer_transport%"
109 host: "%mailer_host%"
110 username: "%mailer_user%"
111 password: "%mailer_password%"
112 spool:
113 type: memory
114
115 fos_rest:
116 param_fetcher_listener: true
117 body_listener: true
118 format_listener: true
119 view:
120 view_response_listener: 'force'
121 formats:
122 xml: true
123 json : true
124 templating_formats:
125 html: true
126 force_redirects:
127 html: true
128 failed_validation: HTTP_BAD_REQUEST
129 default_engine: twig
130 routing_loader:
131 default_format: json
132
133 nelmio_api_doc:
134 sandbox:
135 enabled: false
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 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_manager
196
197 scheb_two_factor:
198 trusted_computer:
199 enabled: true
200 cookie_name: wllbg_trusted_computer
201 cookie_lifetime: 2592000
202
203 email:
204 enabled: "%twofactor_auth%"
205 sender_email: "%twofactor_sender%"
206 digits: 6
207 template: WallabagUserBundle:Authentication:form.html.twig
208 mailer: wallabag_user.auth_code_mailer
209
210 kphoen_rulerz:
211 executors:
212 doctrine: true
213
214 lexik_maintenance:
215 authorized:
216 ips: ['127.0.0.1']
217 driver:
218 ttl: 3600
219 class: 'Lexik\Bundle\MaintenanceBundle\Drivers\DatabaseDriver'
220 response:
221 code: 503
222 status: "wallabag Service Temporarily Unavailable"
223
224 old_sound_rabbit_mq:
225 connections:
226 default:
227 host: "%rabbitmq_host%"
228 port: "%rabbitmq_port%"
229 user: "%rabbitmq_user%"
230 password: "%rabbitmq_password%"
231 vhost: /
232 lazy: true
233 producers:
234 import_pocket:
235 connection: default
236 exchange_options:
237 name: 'wallabag.import.pocket'
238 type: topic
239 import_readability:
240 connection: default
241 exchange_options:
242 name: 'wallabag.import.readability'
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 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 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 import_wallabag_v1:
295 connection: default
296 exchange_options:
297 name: 'wallabag.import.wallabag_v1'
298 type: topic
299 queue_options:
300 name: 'wallabag.import.wallabag_v1'
301 callback: wallabag_import.consumer.amqp.wallabag_v1
302 import_wallabag_v2:
303 connection: default
304 exchange_options:
305 name: 'wallabag.import.wallabag_v2'
306 type: topic
307 queue_options:
308 name: 'wallabag.import.wallabag_v2'
309 callback: wallabag_import.consumer.amqp.wallabag_v2
310 import_firefox:
311 connection: default
312 exchange_options:
313 name: 'wallabag.import.firefox'
314 type: topic
315 queue_options:
316 name: 'wallabag.import.firefox'
317 callback: wallabag_import.consumer.amqp.firefox
318 import_chrome:
319 connection: default
320 exchange_options:
321 name: 'wallabag.import.chrome'
322 type: topic
323 queue_options:
324 name: 'wallabag.import.chrome'
325 callback: wallabag_import.consumer.amqp.chrome