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