diff --git a/site-cookbooks/kosmos-ejabberd/metadata.rb b/site-cookbooks/kosmos-ejabberd/metadata.rb index 1fcf0e6..7cb7483 100644 --- a/site-cookbooks/kosmos-ejabberd/metadata.rb +++ b/site-cookbooks/kosmos-ejabberd/metadata.rb @@ -21,3 +21,4 @@ chef_version '>= 12.14' if respond_to?(:chef_version) depends "kosmos-postgresql" depends "database" +depends "backup" diff --git a/site-cookbooks/kosmos-ejabberd/templates/ejabberd.yml.erb b/site-cookbooks/kosmos-ejabberd/templates/ejabberd.yml.erb index 81a6328..a9e25e8 100644 --- a/site-cookbooks/kosmos-ejabberd/templates/ejabberd.yml.erb +++ b/site-cookbooks/kosmos-ejabberd/templates/ejabberd.yml.erb @@ -61,14 +61,13 @@ listen: ip: "::" module: ejabberd_http request_handlers: - "/api": mod_http_api - "/bosh": mod_bosh "/upload": mod_http_upload - "/ws": ejabberd_http_ws - "/oauth": ejabberd_oauth - web_admin: true - captcha: false tls: true + custom_headers: + "Access-Control-Allow-Origin": "*" + "Access-Control-Allow-Methods": "OPTIONS, HEAD, GET, PUT" + "Access-Control-Allow-Headers": "Authorization" + "Access-Control-Allow-Credentials": "true" s2s_use_starttls: optional @@ -183,9 +182,10 @@ modules: put_url: "https://xmpp.@HOST@:5443/upload" mod_last: {} mod_mam: + default: always db_type: sql assume_mam_usage: true - default: always + request_activates_archiving: true mod_muc: access: - allow @@ -229,11 +229,13 @@ modules: ip_access: trusted_network mod_roster: versioning: true + store_current_id: true mod_s2s_dialback: {} mod_shared_roster: {} mod_stream_mgmt: resend_on_timeout: if_offline - mod_vcard: {} + mod_vcard: + search: false mod_vcard_xupdate: {} mod_version: show_os: false @@ -249,6 +251,8 @@ host_config: - allow: admin access_create: muc_create access_persistent: muc_create + default_room_options: + mam: true "5apps.com": modules: mod_muc: @@ -259,6 +263,9 @@ host_config: - allow: admin access_create: muc_create access_persistent: muc_create + default_room_options: + mam: true +allow_contrib_modules: true ### Local Variables: ### mode: yaml