Skip to content

Instantly share code, notes, and snippets.

@exec
Created October 29, 2014 19:05
Show Gist options
  • Save exec/3ec97f0f703a41f51c72 to your computer and use it in GitHub Desktop.
Save exec/3ec97f0f703a41f51c72 to your computer and use it in GitHub Desktop.
Some good prosody config ideas
ssl = {
key = "/etc/prosody/certs/domain-private.key";
certificate = "/etc/prosody/certs/domain-cert.crt";
options = { "no_sslv2", "no_sslv3", "no_ticket", "no_compression", "cipher_server_preference" };
ciphers = "kECDH:HIGH:!MEDIUM:!LOW:!NULL:!DSS:!AES128-SHA:!AES128-SHA256:!CAMELLIA128-SHA:!aNULL@STRENGTH";
dhparam = "/etc/prosody/dhparam.pem";
};
c2s_require_encryption = true
s2s_secure_auth = true
s2s_insecure_domains = { "exploit.im", "pidgin.su" } -- Too many people use these insecure services
pidfile = "/var/run/prosody/prosody.pid"
authentication = "internal_hashed"
storage = "sql" -- SQL is much faster, I recommend it :)
sql = { driver = "MySQL", database = "dbname", username = "user", password = "password1231337(notmyactualpassword)", host = "my.sql.xeru.me" }
log = {
error = "/var/log/prosody/prosody.err"
};
conflict_resolve = "increment"
@binarydad
Copy link

What benefit are you seeing by using conflict_resolve = "increment"? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment