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