aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/config
diff options
context:
space:
mode:
Diffstat (limited to 'app/config')
-rw-r--r--app/config/config.yml81
-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, 96 insertions, 17 deletions
diff --git a/app/config/config.yml b/app/config/config.yml
index 2b11937c..b3d71304 100644
--- a/app/config/config.yml
+++ b/app/config/config.yml
@@ -49,6 +49,10 @@ 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']
@@ -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,67 @@ 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_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
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