]> git.immae.eu Git - github/wallabag/wallabag.git/blob - app/config/config.yml
Merge pull request #2323 from wallabag/footer-stats
[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.0
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: en
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 server_version: 5.6
81
82 orm:
83 auto_generate_proxy_classes: "%kernel.debug%"
84 entity_managers:
85 default:
86 auto_mapping: true
87
88 stof_doctrine_extensions:
89 default_locale: "%locale%"
90 translation_fallback: true
91 orm:
92 default:
93 tree: true
94 sluggable: true
95
96 doctrine_migrations:
97 dir_name: "%kernel.root_dir%/DoctrineMigrations"
98 namespace: Application\Migrations
99 table_name: migration_versions
100 name: Application Migrations
101
102 # Swiftmailer Configuration
103 swiftmailer:
104 transport: "%mailer_transport%"
105 host: "%mailer_host%"
106 username: "%mailer_user%"
107 password: "%mailer_password%"
108 spool:
109 type: memory
110
111 fos_rest:
112 param_fetcher_listener: true
113 body_listener: true
114 format_listener: true
115 view:
116 view_response_listener: 'force'
117 formats:
118 xml: true
119 json : true
120 templating_formats:
121 html: true
122 force_redirects:
123 html: true
124 failed_validation: HTTP_BAD_REQUEST
125 default_engine: twig
126 routing_loader:
127 default_format: json
128
129 nelmio_api_doc:
130 sandbox:
131 enabled: false
132 name: wallabag API documentation
133
134 nelmio_cors:
135 defaults:
136 allow_credentials: false
137 allow_origin: []
138 allow_headers: []
139 allow_methods: []
140 expose_headers: []
141 max_age: 0
142 hosts: []
143 #origin_regex: false
144 paths:
145 '^/api/':
146 allow_origin: ['*']
147 allow_headers: ['X-Custom-Auth']
148 allow_methods: ['POST', 'PUT', 'PATCH','GET', 'DELETE']
149 max_age: 3600
150 '^/oauth/':
151 allow_origin: ['*']
152 allow_headers: ['X-Custom-Auth']
153 allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
154 max_age: 3600
155 '^/':
156 #origin_regex: true
157 allow_origin: ['^http://localhost:[0-9]+']
158 allow_headers: ['X-Custom-Auth']
159 allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
160 max_age: 3600
161 hosts: ['^api\.']
162
163 liip_theme:
164 load_controllers: false
165 themes:
166 - baggy
167 - material
168 autodetect_theme: wallabag_core.helper.detect_active_theme
169
170 path_patterns:
171 bundle_resource:
172 - "%%bundle_path%%/Resources/views/themes/%%current_theme%%/%%template%%"
173
174 fos_user:
175 db_driver: orm
176 firewall_name: secured_area
177 user_class: Wallabag\UserBundle\Entity\User
178 registration:
179 confirmation:
180 enabled: "%fosuser_confirmation%"
181 from_email:
182 address: "%from_email%"
183 sender_name: wallabag
184 fos_oauth_server:
185 db_driver: orm
186 client_class: Wallabag\ApiBundle\Entity\Client
187 access_token_class: Wallabag\ApiBundle\Entity\AccessToken
188 refresh_token_class: Wallabag\ApiBundle\Entity\RefreshToken
189 auth_code_class: Wallabag\ApiBundle\Entity\AuthCode
190 service:
191 user_provider: fos_user.user_manager
192
193 scheb_two_factor:
194 trusted_computer:
195 enabled: true
196 cookie_name: wllbg_trusted_computer
197 cookie_lifetime: 2592000
198
199 email:
200 enabled: "%twofactor_auth%"
201 sender_email: "%twofactor_sender%"
202 digits: 6
203 template: WallabagUserBundle:Authentication:form.html.twig
204 mailer: wallabag_user.auth_code_mailer
205
206 kphoen_rulerz:
207 executors:
208 doctrine: true
209
210 lexik_maintenance:
211 authorized:
212 ips: ['127.0.0.1']
213 driver:
214 ttl: 3600
215 class: 'Lexik\Bundle\MaintenanceBundle\Drivers\DatabaseDriver'
216 response:
217 code: 503
218 status: "wallabag Service Temporarily Unavailable"
219
220 old_sound_rabbit_mq:
221 connections:
222 default:
223 host: "%rabbitmq_host%"
224 port: "%rabbitmq_port%"
225 user: "%rabbitmq_user%"
226 password: "%rabbitmq_password%"
227 vhost: /
228 lazy: true
229 producers:
230 import_pocket:
231 connection: default
232 exchange_options:
233 name: 'wallabag.import.pocket'
234 type: topic
235 import_readability:
236 connection: default
237 exchange_options:
238 name: 'wallabag.import.readability'
239 type: topic
240 import_instapaper:
241 connection: default
242 exchange_options:
243 name: 'wallabag.import.instapaper'
244 type: topic
245 import_wallabag_v1:
246 connection: default
247 exchange_options:
248 name: 'wallabag.import.wallabag_v1'
249 type: topic
250 import_wallabag_v2:
251 connection: default
252 exchange_options:
253 name: 'wallabag.import.wallabag_v2'
254 type: topic
255 import_firefox:
256 connection: default
257 exchange_options:
258 name: 'wallabag.import.firefox'
259 type: topic
260 import_chrome:
261 connection: default
262 exchange_options:
263 name: 'wallabag.import.chrome'
264 type: topic
265 consumers:
266 import_pocket:
267 connection: default
268 exchange_options:
269 name: 'wallabag.import.pocket'
270 type: topic
271 queue_options:
272 name: 'wallabag.import.pocket'
273 callback: wallabag_import.consumer.amqp.pocket
274 import_readability:
275 connection: default
276 exchange_options:
277 name: 'wallabag.import.readability'
278 type: topic
279 queue_options:
280 name: 'wallabag.import.readability'
281 callback: wallabag_import.consumer.amqp.readability
282 import_instapaper:
283 connection: default
284 exchange_options:
285 name: 'wallabag.import.instapaper'
286 type: topic
287 queue_options:
288 name: 'wallabag.import.instapaper'
289 callback: wallabag_import.consumer.amqp.instapaper
290 import_wallabag_v1:
291 connection: default
292 exchange_options:
293 name: 'wallabag.import.wallabag_v1'
294 type: topic
295 queue_options:
296 name: 'wallabag.import.wallabag_v1'
297 callback: wallabag_import.consumer.amqp.wallabag_v1
298 import_wallabag_v2:
299 connection: default
300 exchange_options:
301 name: 'wallabag.import.wallabag_v2'
302 type: topic
303 queue_options:
304 name: 'wallabag.import.wallabag_v2'
305 callback: wallabag_import.consumer.amqp.wallabag_v2
306 import_firefox:
307 connection: default
308 exchange_options:
309 name: 'wallabag.import.firefox'
310 type: topic
311 queue_options:
312 name: 'wallabag.import.firefox'
313 callback: wallabag_import.consumer.amqp.firefox
314 import_chrome:
315 connection: default
316 exchange_options:
317 name: 'wallabag.import.chrome'
318 type: topic
319 queue_options:
320 name: 'wallabag.import.chrome'
321 callback: wallabag_import.consumer.amqp.chrome