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