]> git.immae.eu Git - github/wallabag/wallabag.git/blob - app/config/config.yml
Fixed version in documentation
[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']
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 consumers:
250 import_pocket:
251 connection: default
252 exchange_options:
253 name: 'wallabag.import.pocket'
254 type: topic
255 queue_options:
256 name: 'wallabag.import.pocket'
257 callback: wallabag_import.consumer.amqp.pocket
258 import_readability:
259 connection: default
260 exchange_options:
261 name: 'wallabag.import.readability'
262 type: topic
263 queue_options:
264 name: 'wallabag.import.readability'
265 callback: wallabag_import.consumer.amqp.readability
266 import_wallabag_v1:
267 connection: default
268 exchange_options:
269 name: 'wallabag.import.wallabag_v1'
270 type: topic
271 queue_options:
272 name: 'wallabag.import.wallabag_v1'
273 callback: wallabag_import.consumer.amqp.wallabag_v1
274 import_wallabag_v2:
275 connection: default
276 exchange_options:
277 name: 'wallabag.import.wallabag_v2'
278 type: topic
279 queue_options:
280 name: 'wallabag.import.wallabag_v2'
281 callback: wallabag_import.consumer.amqp.wallabag_v2