This commit is contained in:
mguschin
2026-02-02 20:12:50 +03:00
parent b8f89cd286
commit 6b54303482
11 changed files with 4276 additions and 1 deletions

View 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"