2021-03-12 16:25:55 +00:00
|
|
|
-- these global settings can affect an existing Prosody installation.
|
|
|
|
-- Use them with care.
|
|
|
|
-- NB: prosody http will be behind the nginx reverse proxy.
|
2021-02-19 18:38:39 +00:00
|
|
|
cross_domain_bosh = false;
|
|
|
|
consider_bosh_secure = true;
|
2021-03-12 16:25:55 +00:00
|
|
|
cross_domain_websocket = false;
|
2021-02-21 15:10:52 +00:00
|
|
|
consider_websocket_secure = true;
|
2021-03-12 16:25:55 +00:00
|
|
|
https_ports = {};
|
|
|
|
trusted_proxies = { "127.0.0.1", "::1" }
|
2021-02-19 18:38:39 +00:00
|
|
|
|
2021-03-12 16:25:55 +00:00
|
|
|
VirtualHost "your_domain"
|
2021-02-19 18:38:39 +00:00
|
|
|
authentication = "anonymous"
|
|
|
|
allow_anonymous_s2s = false
|
|
|
|
ssl = {
|
2021-03-12 16:25:55 +00:00
|
|
|
key = "/etc/prosody/certs/your_domain.key";
|
|
|
|
certificate = "/etc/prosody/certs/your_domain.crt";
|
|
|
|
}
|
2021-02-19 18:38:39 +00:00
|
|
|
modules_enabled = {
|
2021-03-12 16:25:55 +00:00
|
|
|
"http";
|
|
|
|
"bosh";
|
|
|
|
"ping";
|
|
|
|
"websocket";
|
2021-02-19 18:38:39 +00:00
|
|
|
}
|
2021-03-12 16:25:55 +00:00
|
|
|
http_host = "your_domain"
|
|
|
|
http_external_url = "http://your_domain"
|
2021-02-22 15:36:40 +00:00
|
|
|
admins = { "admin@your_xmpp_provider_domain" }
|
2021-02-19 18:38:39 +00:00
|
|
|
|
2021-03-12 16:25:55 +00:00
|
|
|
Component "room.your_domain" "muc"
|
2021-02-22 15:36:40 +00:00
|
|
|
admins = { "admin@your_xmpp_provider_domain" }
|
2021-02-19 18:38:39 +00:00
|
|
|
restrict_room_creation = "local"
|
|
|
|
muc_room_locking = false
|
|
|
|
muc_tombstones = false
|
|
|
|
muc_room_default_language = "fr"
|
|
|
|
muc_room_default_public = true
|
|
|
|
muc_room_default_persistent = false
|
|
|
|
muc_room_default_members_only = false
|
|
|
|
muc_room_default_moderated = false
|
|
|
|
muc_room_default_public_jids = false
|
|
|
|
muc_room_default_change_subject = false
|
|
|
|
muc_room_default_history_length = 20
|