aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/config
diff options
context:
space:
mode:
Diffstat (limited to 'app/config')
-rw-r--r--app/config/config.yml124
-rw-r--r--app/config/config_dev.yml11
-rw-r--r--app/config/parameters.yml.dist13
-rw-r--r--app/config/parameters_test.yml2
-rw-r--r--app/config/security.yml1
-rw-r--r--app/config/services.yml5
6 files changed, 137 insertions, 19 deletions
diff --git a/app/config/config.yml b/app/config/config.yml
index 2b11937c..b5d82ed9 100644
--- a/app/config/config.yml
+++ b/app/config/config.yml
@@ -30,7 +30,7 @@ framework:
30 assets: ~ 30 assets: ~
31 31
32wallabag_core: 32wallabag_core:
33 version: 2.0.8 33 version: 2.1.0
34 paypal_url: "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9UBA65LG3FX9Y&lc=gb" 34 paypal_url: "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9UBA65LG3FX9Y&lc=gb"
35 languages: 35 languages:
36 en: 'English' 36 en: 'English'
@@ -49,9 +49,13 @@ wallabag_core:
49 language: en 49 language: en
50 rss_limit: 50 50 rss_limit: 50
51 reading_speed: 1 51 reading_speed: 1
52 cache_lifetime: 10
53
54wallabag_user:
55 registration_enabled: "%fosuser_registration%"
52 56
53wallabag_import: 57wallabag_import:
54 allow_mimetypes: ['application/octet-stream', 'application/json', 'text/plain'] 58 allow_mimetypes: ['application/octet-stream', 'application/json', 'text/plain', 'text/csv']
55 resource_dir: "%kernel.root_dir%/../web/uploads/import" 59 resource_dir: "%kernel.root_dir%/../web/uploads/import"
56 60
57# Twig Configuration 61# Twig Configuration
@@ -61,19 +65,6 @@ twig:
61 form_themes: 65 form_themes:
62 - "LexikFormFilterBundle:Form:form_div_layout.html.twig" 66 - "LexikFormFilterBundle:Form:form_div_layout.html.twig"
63 67
64# Assetic Configuration
65assetic:
66 debug: "%kernel.debug%"
67 use_controller: false
68 bundles: [ ]
69 #java: /usr/bin/java
70 filters:
71 cssrewrite: ~
72 #closure:
73 # jar: "%kernel.root_dir%/Resources/java/compiler.jar"
74 #yui_css:
75 # jar: "%kernel.root_dir%/Resources/java/yuicompressor-2.4.7.jar"
76
77# Doctrine Configuration 68# Doctrine Configuration
78doctrine: 69doctrine:
79 dbal: 70 dbal:
@@ -224,3 +215,106 @@ lexik_maintenance:
224 response: 215 response:
225 code: 503 216 code: 503
226 status: "wallabag Service Temporarily Unavailable" 217 status: "wallabag Service Temporarily Unavailable"
218
219old_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_instapaper:
240 connection: default
241 exchange_options:
242 name: 'wallabag.import.instapaper'
243 type: topic
244 import_wallabag_v1:
245 connection: default
246 exchange_options:
247 name: 'wallabag.import.wallabag_v1'
248 type: topic
249 import_wallabag_v2:
250 connection: default
251 exchange_options:
252 name: 'wallabag.import.wallabag_v2'
253 type: topic
254 import_firefox:
255 connection: default
256 exchange_options:
257 name: 'wallabag.import.firefox'
258 type: topic
259 import_chrome:
260 connection: default
261 exchange_options:
262 name: 'wallabag.import.chrome'
263 type: topic
264 consumers:
265 import_pocket:
266 connection: default
267 exchange_options:
268 name: 'wallabag.import.pocket'
269 type: topic
270 queue_options:
271 name: 'wallabag.import.pocket'
272 callback: wallabag_import.consumer.amqp.pocket
273 import_readability:
274 connection: default
275 exchange_options:
276 name: 'wallabag.import.readability'
277 type: topic
278 queue_options:
279 name: 'wallabag.import.readability'
280 callback: wallabag_import.consumer.amqp.readability
281 import_instapaper:
282 connection: default
283 exchange_options:
284 name: 'wallabag.import.instapaper'
285 type: topic
286 queue_options:
287 name: 'wallabag.import.instapaper'
288 callback: wallabag_import.consumer.amqp.instapaper
289 import_wallabag_v1:
290 connection: default
291 exchange_options:
292 name: 'wallabag.import.wallabag_v1'
293 type: topic
294 queue_options:
295 name: 'wallabag.import.wallabag_v1'
296 callback: wallabag_import.consumer.amqp.wallabag_v1
297 import_wallabag_v2:
298 connection: default
299 exchange_options:
300 name: 'wallabag.import.wallabag_v2'
301 type: topic
302 queue_options:
303 name: 'wallabag.import.wallabag_v2'
304 callback: wallabag_import.consumer.amqp.wallabag_v2
305 import_firefox:
306 connection: default
307 exchange_options:
308 name: 'wallabag.import.firefox'
309 type: topic
310 queue_options:
311 name: 'wallabag.import.firefox'
312 callback: wallabag_import.consumer.amqp.firefox
313 import_chrome:
314 connection: default
315 exchange_options:
316 name: 'wallabag.import.chrome'
317 type: topic
318 queue_options:
319 name: 'wallabag.import.chrome'
320 callback: wallabag_import.consumer.amqp.chrome
diff --git a/app/config/config_dev.yml b/app/config/config_dev.yml
index 0fa23dbf..3b67d8f6 100644
--- a/app/config/config_dev.yml
+++ b/app/config/config_dev.yml
@@ -35,11 +35,16 @@ monolog:
35 VERBOSITY_DEBUG: DEBUG 35 VERBOSITY_DEBUG: DEBUG
36 channels: [doctrine] 36 channels: [doctrine]
37 37
38assetic:
39 use_controller: true
40
41swiftmailer: 38swiftmailer:
42 # see http://mailcatcher.me/ 39 # see http://mailcatcher.me/
43 transport: smtp 40 transport: smtp
44 host: 'localhost' 41 host: 'localhost'
45 port: 1025 42 port: 1025
43
44# If you want to use cache for queries used in WallabagExtension
45# Uncomment the following lines
46#doctrine:
47# orm:
48# metadata_cache_driver: apcu
49# result_cache_driver: apcu
50# query_cache_driver: apcu
diff --git a/app/config/parameters.yml.dist b/app/config/parameters.yml.dist
index d45839f4..f2e5bec3 100644
--- a/app/config/parameters.yml.dist
+++ b/app/config/parameters.yml.dist
@@ -34,6 +34,19 @@ parameters:
34 twofactor_sender: no-reply@wallabag.org 34 twofactor_sender: no-reply@wallabag.org
35 35
36 # fosuser stuff 36 # fosuser stuff
37 fosuser_registration: true
37 fosuser_confirmation: true 38 fosuser_confirmation: true
38 39
39 from_email: no-reply@wallabag.org 40 from_email: no-reply@wallabag.org
41
42 rss_limit: 50
43
44 # RabbitMQ processing
45 rabbitmq_host: localhost
46 rabbitmq_port: 5672
47 rabbitmq_user: guest
48 rabbitmq_password: guest
49
50 # Redis processing
51 redis_host: localhost
52 redis_port: 6379
diff --git a/app/config/parameters_test.yml b/app/config/parameters_test.yml
index 696c95ef..2943b27a 100644
--- a/app/config/parameters_test.yml
+++ b/app/config/parameters_test.yml
@@ -5,4 +5,4 @@ parameters:
5 test_database_name: null 5 test_database_name: null
6 test_database_user: null 6 test_database_user: null
7 test_database_password: null 7 test_database_password: null
8 test_database_path: '%kernel.root_dir%/../data/db/wallabag_testYO.sqlite' 8 test_database_path: '%kernel.root_dir%/../data/db/wallabag_test.sqlite'
diff --git a/app/config/security.yml b/app/config/security.yml
index e24e03df..1f30e58b 100644
--- a/app/config/security.yml
+++ b/app/config/security.yml
@@ -60,6 +60,7 @@ security:
60 - { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY } 60 - { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY }
61 - { path: ^/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY } 61 - { path: ^/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY }
62 - { path: /(unread|starred|archive).xml$, roles: IS_AUTHENTICATED_ANONYMOUSLY } 62 - { path: /(unread|starred|archive).xml$, roles: IS_AUTHENTICATED_ANONYMOUSLY }
63 - { path: ^/share, roles: IS_AUTHENTICATED_ANONYMOUSLY }
63 - { path: ^/settings, roles: ROLE_SUPER_ADMIN } 64 - { path: ^/settings, roles: ROLE_SUPER_ADMIN }
64 - { path: ^/annotations, roles: ROLE_USER } 65 - { path: ^/annotations, roles: ROLE_USER }
65 - { path: ^/, roles: ROLE_USER } 66 - { path: ^/, roles: ROLE_USER }
diff --git a/app/config/services.yml b/app/config/services.yml
index 480408d9..76bbce27 100644
--- a/app/config/services.yml
+++ b/app/config/services.yml
@@ -16,6 +16,11 @@ services:
16 wallabag.twig_extension: 16 wallabag.twig_extension:
17 class: Wallabag\CoreBundle\Twig\WallabagExtension 17 class: Wallabag\CoreBundle\Twig\WallabagExtension
18 public: false 18 public: false
19 arguments:
20 - "@wallabag_core.entry_repository"
21 - "@wallabag_core.tag_repository"
22 - "@security.token_storage"
23 - "%wallabag_core.cache_lifetime%"
19 tags: 24 tags:
20 - { name: twig.extension } 25 - { name: twig.extension }
21 26