]> git.immae.eu Git - github/wallabag/wallabag.git/blame - app/config/config.yml
Added migration for user group
[github/wallabag/wallabag.git] / app / config / config.yml
CommitLineData
93fd4692
NL
1imports:
2 - { resource: parameters.yml }
3 - { resource: security.yml }
4 - { resource: services.yml }
bf7f0cb5 5 - { resource: wallabag.yml }
93fd4692 6
64f81bc3 7parameters:
e35f8439 8 # Allows to use the live reload feature for changes in assets
8655913e 9 use_webpack_dev_server: false
3b792787 10 craue_config.cache_adapter.class: Craue\ConfigBundle\CacheAdapter\SymfonyCacheComponentAdapter
64f81bc3 11
93fd4692
NL
12framework:
13 #esi: ~
2bc9cad7
JB
14 translator:
15 enabled: true
16 fallback: "%locale%"
17 secret: "%secret%"
93fd4692
NL
18 router:
19 resource: "%kernel.root_dir%/config/routing.yml"
20 strict_requirements: ~
2bc9cad7 21 form: ~
93fd4692 22 csrf_protection: ~
2bc9cad7
JB
23 validation:
24 enable_annotations: true
93fd4692
NL
25 templating:
26 engines: ['twig']
2bc9cad7
JB
27 default_locale: "%locale%"
28 trusted_hosts: ~
93fd4692
NL
29 trusted_proxies: ~
30 session:
31 # handler_id set to null will use default session handler from php.ini
2bc9cad7
JB
32 handler_id: session.handler.native_file
33 save_path: "%kernel.root_dir%/../var/sessions/%kernel.environment%"
34 fragments: ~
93fd4692 35 http_method_override: true
d8dbe76b 36 assets: ~
93fd4692
NL
37
38# Twig Configuration
39twig:
2bc9cad7 40 debug: "%kernel.debug%"
93fd4692 41 strict_variables: "%kernel.debug%"
5c895a7f
JB
42 form_themes:
43 - "LexikFormFilterBundle:Form:form_div_layout.html.twig"
40e21962 44 exception_controller: wallabag_core.exception_controller:showAction
6682139e 45
93fd4692
NL
46# Doctrine Configuration
47doctrine:
48 dbal:
2bc9cad7 49 driver: "%database_driver%"
61b9fdd5
NL
50 host: "%database_host%"
51 port: "%database_port%"
52 dbname: "%database_name%"
53 user: "%database_user%"
54 password: "%database_password%"
98efffc2 55 charset: "%database_charset%"
2bc9cad7 56 path: "%database_path%"
6d204f53 57 unix_socket: "%database_socket%"
69c21157 58 server_version: 5.6
93fd4692
NL
59
60 orm:
61 auto_generate_proxy_classes: "%kernel.debug%"
164bd801
J
62 entity_managers:
63 default:
164bd801 64 auto_mapping: true
93fd4692 65
3c65dfb7
NL
66stof_doctrine_extensions:
67 default_locale: "%locale%"
68 translation_fallback: true
69 orm:
70 default:
71 tree: true
72 sluggable: true
73
292c1324
NL
74doctrine_migrations:
75 dir_name: "%kernel.root_dir%/DoctrineMigrations"
76 namespace: Application\Migrations
77 table_name: migration_versions
78 name: Application Migrations
79
93fd4692
NL
80# Swiftmailer Configuration
81swiftmailer:
82 transport: "%mailer_transport%"
2bc9cad7
JB
83 host: "%mailer_host%"
84 username: "%mailer_user%"
85 password: "%mailer_password%"
86 spool:
87 type: memory
e4788de5
NL
88
89fos_rest:
90 param_fetcher_listener: true
91 body_listener: true
e4788de5 92 view:
f1c3f68e
JB
93 mime_types:
94 csv:
95 - 'text/csv'
96 - 'text/plain'
97 pdf:
98 - 'application/pdf'
99 epub:
100 - 'application/epub+zip'
101 mobi:
102 - 'application/x-mobipocket-ebook'
e4788de5
NL
103 view_response_listener: 'force'
104 formats:
105 xml: true
f1c3f68e
JB
106 json: true
107 txt: true
108 csv: true
109 pdf: true
110 epub: true
111 mobi: true
e4788de5
NL
112 templating_formats:
113 html: true
114 force_redirects:
115 html: true
116 failed_validation: HTTP_BAD_REQUEST
117 default_engine: twig
118 routing_loader:
a65f5d55 119 default_format: json
f1c3f68e
JB
120 format_listener:
121 enabled: true
122 rules:
0bacc9e1
NL
123 - { path: "^/api/entries/([0-9]+)/export.(.*)", priorities: ['epub', 'mobi', 'pdf', 'txt', 'csv'], fallback_format: json, prefer_extension: false }
124 - { path: "^/api", priorities: ['json', 'xml'], fallback_format: json, prefer_extension: false }
125 - { path: "^/annotations", priorities: ['json', 'xml'], fallback_format: json, prefer_extension: false }
f1c3f68e
JB
126 # for an unknown reason, EACH REQUEST goes to FOS\RestBundle\EventListener\FormatListener
127 # so we need to add custom rule for custom api export but also for all other routes of the application...
128 - { path: '^/', priorities: ['text/html', '*/*'], fallback_format: html, prefer_extension: false }
e4788de5 129
cd1298d6
NL
130nelmio_api_doc:
131 sandbox:
132 enabled: false
3f3a6087
JB
133 cache:
134 enabled: true
3c65dfb7 135 name: wallabag API documentation
fca3c757
NL
136
137nelmio_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']
41c9eecf 151 allow_methods: ['POST', 'PUT', 'PATCH','GET', 'DELETE']
fca3c757 152 max_age: 3600
848c2e1b 153 '^/oauth/':
fca3c757
NL
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\.']
32da2a70
J
165
166liip_theme:
167 load_controllers: false
168 themes:
169 - baggy
9948d899 170 - material
32da2a70
J
171 autodetect_theme: wallabag_core.helper.detect_active_theme
172
173 path_patterns:
32da2a70 174 bundle_resource:
23634d5d 175 - "%%bundle_path%%/Resources/views/themes/%%current_theme%%/%%template%%"
a1691859
NL
176
177fos_user:
178 db_driver: orm
fdc90ceb 179 firewall_name: secured_area
1210dae1 180 user_class: Wallabag\UserBundle\Entity\User
f1900b68
NL
181 group:
182 group_class: Wallabag\UserBundle\Entity\Group
fcb1fba5 183 registration:
fcb1fba5 184 confirmation:
23634d5d 185 enabled: "%fosuser_confirmation%"
a40dd989 186 from_email:
23634d5d 187 address: "%from_email%"
a40dd989 188 sender_name: wallabag
5066c3e0 189
fcb1fba5
NL
190fos_oauth_server:
191 db_driver: orm
192 client_class: Wallabag\ApiBundle\Entity\Client
193 access_token_class: Wallabag\ApiBundle\Entity\AccessToken
194 refresh_token_class: Wallabag\ApiBundle\Entity\RefreshToken
195 auth_code_class: Wallabag\ApiBundle\Entity\AuthCode
196 service:
5066c3e0 197 user_provider: fos_user.user_provider.username_email
05cdd393
YE
198 options:
199 refresh_token_lifetime: 1209600
5066c3e0 200
2db616b5 201scheb_two_factor:
2db616b5
NL
202 trusted_computer:
203 enabled: true
204 cookie_name: wllbg_trusted_computer
0d6a7929 205 cookie_lifetime: 2592000
2db616b5
NL
206
207 email:
23634d5d
JB
208 enabled: "%twofactor_auth%"
209 sender_email: "%twofactor_sender%"
2db616b5
NL
210 digits: 6
211 template: WallabagUserBundle:Authentication:form.html.twig
23ff8d36 212 mailer: wallabag_user.auth_code_mailer
625acf33
KG
213
214kphoen_rulerz:
177c5510 215 targets:
625acf33 216 doctrine: true
fbbda941 217
56c778b4
NL
218old_sound_rabbit_mq:
219 connections:
220 default:
ef75e122
JB
221 host: "%rabbitmq_host%"
222 port: "%rabbitmq_port%"
223 user: "%rabbitmq_user%"
224 password: "%rabbitmq_password%"
56c778b4 225 vhost: /
ef75e122 226 lazy: true
56c778b4 227 producers:
c98db1b6 228 import_pocket:
56c778b4
NL
229 connection: default
230 exchange_options:
ef75e122 231 name: 'wallabag.import.pocket'
56c778b4 232 type: topic
c98db1b6
JB
233 import_readability:
234 connection: default
235 exchange_options:
236 name: 'wallabag.import.readability'
237 type: topic
9ab024b4
JB
238 import_pinboard:
239 connection: default
240 exchange_options:
241 name: 'wallabag.import.pinboard'
242 type: topic
c7ea9b41
JB
243 import_instapaper:
244 connection: default
245 exchange_options:
246 name: 'wallabag.import.instapaper'
247 type: topic
c98db1b6
JB
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
2c61db30
TC
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
56c778b4 268 consumers:
c98db1b6 269 import_pocket:
56c778b4
NL
270 connection: default
271 exchange_options:
ef75e122 272 name: 'wallabag.import.pocket'
56c778b4
NL
273 type: topic
274 queue_options:
ef75e122 275 name: 'wallabag.import.pocket'
ac87e0db 276 callback: wallabag_import.consumer.amqp.pocket
881b0578 277 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
c98db1b6
JB
278 import_readability:
279 connection: default
280 exchange_options:
281 name: 'wallabag.import.readability'
282 type: topic
283 queue_options:
284 name: 'wallabag.import.readability'
ac87e0db 285 callback: wallabag_import.consumer.amqp.readability
881b0578 286 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
c7ea9b41
JB
287 import_instapaper:
288 connection: default
289 exchange_options:
290 name: 'wallabag.import.instapaper'
291 type: topic
292 queue_options:
293 name: 'wallabag.import.instapaper'
294 callback: wallabag_import.consumer.amqp.instapaper
881b0578 295 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
9ab024b4
JB
296 import_pinboard:
297 connection: default
298 exchange_options:
299 name: 'wallabag.import.pinboard'
300 type: topic
301 queue_options:
302 name: 'wallabag.import.pinboard'
303 callback: wallabag_import.consumer.amqp.pinboard
881b0578 304 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
c98db1b6
JB
305 import_wallabag_v1:
306 connection: default
307 exchange_options:
308 name: 'wallabag.import.wallabag_v1'
309 type: topic
310 queue_options:
311 name: 'wallabag.import.wallabag_v1'
ac87e0db 312 callback: wallabag_import.consumer.amqp.wallabag_v1
881b0578 313 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
c98db1b6
JB
314 import_wallabag_v2:
315 connection: default
316 exchange_options:
317 name: 'wallabag.import.wallabag_v2'
318 type: topic
319 queue_options:
320 name: 'wallabag.import.wallabag_v2'
ac87e0db 321 callback: wallabag_import.consumer.amqp.wallabag_v2
881b0578 322 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
2c61db30
TC
323 import_firefox:
324 connection: default
325 exchange_options:
326 name: 'wallabag.import.firefox'
327 type: topic
328 queue_options:
329 name: 'wallabag.import.firefox'
330 callback: wallabag_import.consumer.amqp.firefox
881b0578 331 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
2c61db30
TC
332 import_chrome:
333 connection: default
334 exchange_options:
335 name: 'wallabag.import.chrome'
336 type: topic
337 queue_options:
338 name: 'wallabag.import.chrome'
339 callback: wallabag_import.consumer.amqp.chrome
881b0578 340 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
3cc78f06
NL
341
342fos_js_routing:
49c5d0ad
NL
343 routes_to_expose:
344 - homepage
345 - starred
346 - archive
347 - all
348 - tag
349 - config
350 - import
351 - developer
352 - howto
66e9dde0 353 - fos_user_security_logout
995c2044 354 - new