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