From f39f953b8a9c430c470aa8f6024c4ee3f15d73c9 Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Tue, 24 Nov 2020 15:44:59 +0100 Subject: [PATCH] Configure ejabberd nodes for HTTP upload service --- site-cookbooks/kosmos-ejabberd/recipes/default.rb | 10 ++++++++++ .../kosmos-ejabberd/templates/ejabberd.yml.erb | 4 ---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/site-cookbooks/kosmos-ejabberd/recipes/default.rb b/site-cookbooks/kosmos-ejabberd/recipes/default.rb index 2a73cdb..bc3a132 100644 --- a/site-cookbooks/kosmos-ejabberd/recipes/default.rb +++ b/site-cookbooks/kosmos-ejabberd/recipes/default.rb @@ -64,6 +64,11 @@ modules: max_user_conferences: 1000 default_room_options: mam: true + mod_http_upload: + put_url: "https://uploads.kosmos.chat/8af2c77" + external_secret: "#{ejabberd_credentials["uploads_secret"]}" + max_size: 104857600 + thumbnail: false # otherwise needs the identify command from ImageMagick installed EOF }, { @@ -89,6 +94,11 @@ modules: public_list: false persistent: true mam: true + mod_http_upload: + put_url: "https://uploads.kosmos.chat/2802cfe" + external_secret: "#{ejabberd_credentials["uploads_secret"]}" + max_size: 104857600 + thumbnail: false # otherwise needs the identify command from ImageMagick installed EOF } ] diff --git a/site-cookbooks/kosmos-ejabberd/templates/ejabberd.yml.erb b/site-cookbooks/kosmos-ejabberd/templates/ejabberd.yml.erb index 5ed892b..7889b20 100644 --- a/site-cookbooks/kosmos-ejabberd/templates/ejabberd.yml.erb +++ b/site-cookbooks/kosmos-ejabberd/templates/ejabberd.yml.erb @@ -191,10 +191,6 @@ modules: name: "abuse-addresses" urls: ["mailto:abuse@@HOST@"] mod_bosh: {} - mod_http_upload: - docroot: "/opt/ejabberd/uploads/xmpp.@HOST@/" - put_url: "https://xmpp.@HOST@:5443/upload" - thumbnail: false # otherwise needs the identify command from ImageMagick installed mod_last: {} mod_mam: default: always