2024-06-01 18:53:10 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
services.prosody = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
# TODO: setup a MUC to be compliant
|
|
|
|
xmppComplianceSuite = false;
|
|
|
|
|
|
|
|
uploadHttp = {
|
|
|
|
domain = "xu.isomorphis.me";
|
|
|
|
};
|
|
|
|
|
|
|
|
ssl = {
|
|
|
|
cert = config.security.acme.certs."prosody".directory + "/cert.pem";
|
|
|
|
key = config.security.acme.certs."prosody".directory + "/key.pem";
|
|
|
|
};
|
|
|
|
|
|
|
|
virtualHosts."isomorphisme" = {
|
|
|
|
enabled = true;
|
|
|
|
domain = "isomorphis.me";
|
|
|
|
};
|
|
|
|
|
|
|
|
admins = [ "armael@isomorphis.me" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
security.acme.certs."prosody" = {
|
|
|
|
domain = "isomorphis.me";
|
|
|
|
extraDomainNames = [
|
|
|
|
"xmpp.isomorphis.me"
|
|
|
|
"xmppproxy.isomorphis.me"
|
|
|
|
"xu.isomorphis.me"
|
|
|
|
];
|
|
|
|
group = config.services.prosody.group;
|
2024-08-30 20:03:10 +00:00
|
|
|
reloadServices = [ "prosody" ];
|
2024-06-01 18:53:10 +00:00
|
|
|
};
|
|
|
|
|
2024-08-30 20:03:10 +00:00
|
|
|
}
|