aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/config
diff options
context:
space:
mode:
Diffstat (limited to 'app/config')
-rw-r--r--app/config/config.yml125
-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/routing.yml5
-rw-r--r--app/config/security.yml2
-rw-r--r--app/config/services.yml6
7 files changed, 145 insertions, 19 deletions
diff --git a/app/config/config.yml b/app/config/config.yml
index 2b11937c..fbebfee7 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
@@ -60,19 +64,7 @@ twig:
60 strict_variables: "%kernel.debug%" 64 strict_variables: "%kernel.debug%"
61 form_themes: 65 form_themes:
62 - "LexikFormFilterBundle:Form:form_div_layout.html.twig" 66 - "LexikFormFilterBundle:Form:form_div_layout.html.twig"
63 67 exception_controller: wallabag_core.exception_controller:showAction
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 68
77# Doctrine Configuration 69# Doctrine Configuration
78doctrine: 70doctrine:
@@ -224,3 +216,106 @@ lexik_maintenance:
224 response: 216 response:
225 code: 503 217 code: 503
226 status: "wallabag Service Temporarily Unavailable" 218 status: "wallabag Service Temporarily Unavailable"
219
220old_sound_rabbit_mq:
221 connections:
222 default:
223 host: "%rabbitmq_host%"
224 port: "%rabbitmq_port%"
225 user: "%rabbitmq_user%"
226 password: "%rabbitmq_password%"
227 vhost: /
228 lazy: true
229 producers:
230 import_pocket:
231 connection: default
232 exchange_options:
233 name: 'wallabag.import.pocket'
234 type: topic
235 import_readability:
236 connection: default
237 exchange_options:
238 name: 'wallabag.import.readability'
239 type: topic
240 import_instapaper:
241 connection: default
242 exchange_options:
243 name: 'wallabag.import.instapaper'
244 type: topic
245 import_wallabag_v1:
246 connection: default
247 exchange_options:
248 name: 'wallabag.import.wallabag_v1'
249 type: topic
250 import_wallabag_v2:
251 connection: default
252 exchange_options:
253 name: 'wallabag.import.wallabag_v2'
254 type: topic
255 import_firefox:
256 connection: default
257 exchange_options:
258 name: 'wallabag.import.firefox'
259 type: topic
260 import_chrome:
261 connection: default
262 exchange_options:
263 name: 'wallabag.import.chrome'
264 type: topic
265 consumers:
266 import_pocket:
267 connection: default
268 exchange_options:
269 name: 'wallabag.import.pocket'
270 type: topic
271 queue_options:
272 name: 'wallabag.import.pocket'
273 callback: wallabag_import.consumer.amqp.pocket
274 import_readability:
275 connection: default
276 exchange_options:
277 name: 'wallabag.import.readability'
278 type: topic
279 queue_options:
280 name: 'wallabag.import.readability'
281 callback: wallabag_import.consumer.amqp.readability
282 import_instapaper:
283 connection: default
284 exchange_options:
285 name: 'wallabag.import.instapaper'
286 type: topic
287 queue_options:
288 name: 'wallabag.import.instapaper'
289 callback: wallabag_import.consumer.amqp.instapaper
290 import_wallabag_v1:
291 connection: default
292 exchange_options:
293 name: 'wallabag.import.wallabag_v1'
294 type: topic
295 queue_options:
296 name: 'wallabag.import.wallabag_v1'
297 callback: wallabag_import.consumer.amqp.wallabag_v1
298 import_wallabag_v2:
299 connection: default
300 exchange_options:
301 name: 'wallabag.import.wallabag_v2'
302 type: topic
303 queue_options:
304 name: 'wallabag.import.wallabag_v2'
305 callback: wallabag_import.consumer.amqp.wallabag_v2
306 import_firefox:
307 connection: default
308 exchange_options:
309 name: 'wallabag.import.firefox'
310 type: topic
311 queue_options:
312 name: 'wallabag.import.firefox'
313 callback: wallabag_import.consumer.amqp.firefox
314 import_chrome:
315 connection: default
316 exchange_options:
317 name: 'wallabag.import.chrome'
318 type: topic
319 queue_options:
320 name: 'wallabag.import.chrome'
321 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/routing.yml b/app/config/routing.yml
index 40cc7165..2be74d7f 100644
--- a/app/config/routing.yml
+++ b/app/config/routing.yml
@@ -7,6 +7,11 @@ wallabag_import:
7 type: annotation 7 type: annotation
8 prefix: /import 8 prefix: /import
9 9
10wallabag_user:
11 resource: "@WallabagUserBundle/Controller/"
12 type: annotation
13 prefix: /users
14
10wallabag_api: 15wallabag_api:
11 resource: "@WallabagApiBundle/Resources/config/routing.yml" 16 resource: "@WallabagApiBundle/Resources/config/routing.yml"
12 prefix: / 17 prefix: /
diff --git a/app/config/security.yml b/app/config/security.yml
index e24e03df..efb00a53 100644
--- a/app/config/security.yml
+++ b/app/config/security.yml
@@ -60,6 +60,8 @@ 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 }
66 - { path: ^/users, roles: ROLE_SUPER_ADMIN }
65 - { path: ^/, roles: ROLE_USER } 67 - { path: ^/, roles: ROLE_USER }
diff --git a/app/config/services.yml b/app/config/services.yml
index 480408d9..a57ef0f3 100644
--- a/app/config/services.yml
+++ b/app/config/services.yml
@@ -16,6 +16,12 @@ 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%"
24 - "@translator"
19 tags: 25 tags:
20 - { name: twig.extension } 26 - { name: twig.extension }
21 27