mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
75 lines
2.1 KiB
Lua
75 lines
2.1 KiB
Lua
VirtualHost "{{ domain }}"
|
|
enable = true
|
|
ssl = {
|
|
key = "/etc/yunohost/certs/{{ domain }}/key.pem";
|
|
certificate = "/etc/yunohost/certs/{{ domain }}/crt.pem";
|
|
}
|
|
authentication = "ldap2"
|
|
ldap = {
|
|
hostname = "localhost",
|
|
user = {
|
|
basedn = "ou=users,dc=yunohost,dc=org",
|
|
filter = "(&(objectClass=posixAccount)(mail=*@{{ domain }})(permission=cn=xmpp.main,ou=permission,dc=yunohost,dc=org))",
|
|
usernamefield = "mail",
|
|
namefield = "cn",
|
|
},
|
|
}
|
|
|
|
-- Discovery items
|
|
disco_items = {
|
|
{ "muc.{{ domain }}" },
|
|
{ "pubsub.{{ domain }}" },
|
|
{ "jabber.{{ domain }}" },
|
|
{ "vjud.{{ domain }}" },
|
|
{ "xmpp-upload.{{ domain }}" },
|
|
};
|
|
|
|
-- contact_info = {
|
|
-- abuse = { "mailto:abuse@{{ domain }}", "xmpp:admin@{{ domain }}" };
|
|
-- admin = { "mailto:root@{{ domain }}", "xmpp:admin@{{ domain }}" };
|
|
-- };
|
|
|
|
------ Components ------
|
|
-- You can specify components to add hosts that provide special services,
|
|
-- like multi-user conferences, and transports.
|
|
|
|
---Set up a MUC (multi-user chat) room server
|
|
Component "muc.{{ domain }}" "muc"
|
|
name = "{{ domain }} Chatrooms"
|
|
|
|
modules_enabled = {
|
|
"muc_limits";
|
|
"muc_log";
|
|
"muc_log_mam";
|
|
"muc_log_http";
|
|
"muc_vcard";
|
|
}
|
|
|
|
muc_event_rate = 0.5
|
|
muc_burst_factor = 10
|
|
room_default_config = {
|
|
logging = true,
|
|
persistent = true
|
|
};
|
|
|
|
---Set up a PubSub server
|
|
Component "pubsub.{{ domain }}" "pubsub"
|
|
name = "{{ domain }} Publish/Subscribe"
|
|
|
|
unrestricted_node_creation = true -- Anyone can create a PubSub node (from any server)
|
|
|
|
---Set up a HTTP Upload service
|
|
Component "xmpp-upload.{{ domain }}" "http_upload"
|
|
name = "{{ domain }} Sharing Service"
|
|
|
|
http_file_path = "/var/xmpp-upload/{{ domain }}/upload"
|
|
http_external_url = "https://xmpp-upload.{{ domain }}:443"
|
|
http_file_base_path = "/upload"
|
|
http_file_size_limit = 6*1024*1024
|
|
http_file_quota = 60*1024*1024
|
|
http_upload_file_size_limit = 100 * 1024 * 1024 -- bytes
|
|
http_upload_quota = 10 * 1024 * 1024 * 1024 -- bytes
|
|
|
|
---Set up a VJUD service
|
|
Component "vjud.{{ domain }}" "vjud"
|
|
vjud_disco_name = "{{ domain }} User Directory"
|