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