]> git.immae.eu Git - github/wallabag/wallabag.git/blob - app/config/config.yml
Prepare wallabag 2.1.6 :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.6
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 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 executors:
214 doctrine: true
215
216 lexik_maintenance:
217 authorized:
218 ips: ['127.0.0.1']
219 driver:
220 ttl: 3600
221 class: 'Lexik\Bundle\MaintenanceBundle\Drivers\DatabaseDriver'
222 response:
223 code: 503
224 status: "wallabag Service Temporarily Unavailable"
225
226 old_sound_rabbit_mq:
227 connections:
228 default:
229 host: "%rabbitmq_host%"
230 port: "%rabbitmq_port%"
231 user: "%rabbitmq_user%"
232 password: "%rabbitmq_password%"
233 vhost: /
234 lazy: true
235 producers:
236 import_pocket:
237 connection: default
238 exchange_options:
239 name: 'wallabag.import.pocket'
240 type: topic
241 import_readability:
242 connection: default
243 exchange_options:
244 name: 'wallabag.import.readability'
245 type: topic
246 import_instapaper:
247 connection: default
248 exchange_options:
249 name: 'wallabag.import.instapaper'
250 type: topic
251 import_wallabag_v1:
252 connection: default
253 exchange_options:
254 name: 'wallabag.import.wallabag_v1'
255 type: topic
256 import_wallabag_v2:
257 connection: default
258 exchange_options:
259 name: 'wallabag.import.wallabag_v2'
260 type: topic
261 import_firefox:
262 connection: default
263 exchange_options:
264 name: 'wallabag.import.firefox'
265 type: topic
266 import_chrome:
267 connection: default
268 exchange_options:
269 name: 'wallabag.import.chrome'
270 type: topic
271 consumers:
272 import_pocket:
273 connection: default
274 exchange_options:
275 name: 'wallabag.import.pocket'
276 type: topic
277 queue_options:
278 name: 'wallabag.import.pocket'
279 callback: wallabag_import.consumer.amqp.pocket
280 import_readability:
281 connection: default
282 exchange_options:
283 name: 'wallabag.import.readability'
284 type: topic
285 queue_options:
286 name: 'wallabag.import.readability'
287 callback: wallabag_import.consumer.amqp.readability
288 import_instapaper:
289 connection: default
290 exchange_options:
291 name: 'wallabag.import.instapaper'
292 type: topic
293 queue_options:
294 name: 'wallabag.import.instapaper'
295 callback: wallabag_import.consumer.amqp.instapaper
296 import_wallabag_v1:
297 connection: default
298 exchange_options:
299 name: 'wallabag.import.wallabag_v1'
300 type: topic
301 queue_options:
302 name: 'wallabag.import.wallabag_v1'
303 callback: wallabag_import.consumer.amqp.wallabag_v1
304 import_wallabag_v2:
305 connection: default
306 exchange_options:
307 name: 'wallabag.import.wallabag_v2'
308 type: topic
309 queue_options:
310 name: 'wallabag.import.wallabag_v2'
311 callback: wallabag_import.consumer.amqp.wallabag_v2
312 import_firefox:
313 connection: default
314 exchange_options:
315 name: 'wallabag.import.firefox'
316 type: topic
317 queue_options:
318 name: 'wallabag.import.firefox'
319 callback: wallabag_import.consumer.amqp.firefox
320 import_chrome:
321 connection: default
322 exchange_options:
323 name: 'wallabag.import.chrome'
324 type: topic
325 queue_options:
326 name: 'wallabag.import.chrome'
327 callback: wallabag_import.consumer.amqp.chrome