Configure ejabberd nodes for HTTP upload service

This commit is contained in:
Basti 2020-11-24 15:44:59 +01:00
parent 0e29c930ed
commit f39f953b8a
Signed by untrusted user: basti
GPG Key ID: 9F88009D31D99C72
2 changed files with 10 additions and 4 deletions

View File

@ -64,6 +64,11 @@ modules:
max_user_conferences: 1000 max_user_conferences: 1000
default_room_options: default_room_options:
mam: true 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 EOF
}, },
{ {
@ -89,6 +94,11 @@ modules:
public_list: false public_list: false
persistent: true persistent: true
mam: 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 EOF
} }
] ]

View File

@ -191,10 +191,6 @@ modules:
name: "abuse-addresses" name: "abuse-addresses"
urls: ["mailto:abuse@@HOST@"] urls: ["mailto:abuse@@HOST@"]
mod_bosh: {} 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_last: {}
mod_mam: mod_mam:
default: always default: always