Init.
This commit is contained in:
81
data/prosody/configuration/prosody.cfg.lua
Normal file
81
data/prosody/configuration/prosody.cfg.lua
Normal file
@@ -0,0 +1,81 @@
|
||||
-- Prosody XMPP Server Configuration
|
||||
-- Domain: xmpp.guschin.info
|
||||
|
||||
admins = { "admin@guschin.info" }
|
||||
|
||||
modules_enabled = {
|
||||
-- Generally required
|
||||
"roster";
|
||||
"saslauth";
|
||||
"tls";
|
||||
"dialback";
|
||||
"disco";
|
||||
|
||||
-- Not essential, but recommended
|
||||
"carbons";
|
||||
"pep";
|
||||
"private";
|
||||
"vcard";
|
||||
"version";
|
||||
"uptime";
|
||||
"time";
|
||||
"ping";
|
||||
"register";
|
||||
|
||||
-- Admin interface
|
||||
"admin_adhoc";
|
||||
};
|
||||
|
||||
modules_disabled = {
|
||||
-- "offline";
|
||||
"posix"; -- Disable posix module to avoid threading issues in Docker
|
||||
};
|
||||
|
||||
-- Logging configuration
|
||||
log = {
|
||||
info = "/var/log/prosody/prosody.log";
|
||||
error = "/var/log/prosody/prosody.err";
|
||||
};
|
||||
|
||||
-- Storage configuration for MySQL
|
||||
storage = "sql"
|
||||
sql = {
|
||||
driver = "MySQL";
|
||||
database = os.getenv("MYSQL_DATABASE") or "prosody";
|
||||
username = os.getenv("MYSQL_USER") or "prosody";
|
||||
password = os.getenv("MYSQL_PASSWORD") or "prosodypass";
|
||||
host = os.getenv("MYSQL_HOST") or "localhost";
|
||||
port = 3306;
|
||||
}
|
||||
|
||||
-- Port configuration (global section)
|
||||
c2s_ports = { 5222 }
|
||||
s2s_ports = { 5269 }
|
||||
component_ports = { 5347 }
|
||||
http_ports = { 5280 }
|
||||
https_ports = { 5281 }
|
||||
|
||||
-- Disable TLS on c2s/s2s by default for docker
|
||||
c2s_require_encryption = false
|
||||
s2s_require_encryption = false
|
||||
|
||||
-- Disable SASLauth external authentication
|
||||
authentication = "internal_plain"
|
||||
|
||||
-- Virtual host definition
|
||||
VirtualHost "guschin.info"
|
||||
ssl = {
|
||||
key = "/etc/prosody/certs/xmpp.guschin.info.key";
|
||||
certificate = "/etc/prosody/certs/xmpp.guschin.info.crt";
|
||||
}
|
||||
|
||||
-- Component for MUC (Multi-User Chat)
|
||||
Component "muc.guschin.info" "muc"
|
||||
modules_enabled = { "muc_mam" }
|
||||
storage = "sql"
|
||||
|
||||
-- Set a default realm for the server
|
||||
default_realm = "guschin.info"
|
||||
|
||||
-- Certificates
|
||||
certificates = "/etc/prosody/certs"
|
||||
Reference in New Issue
Block a user