diff options
author | Ben Sima <ben@bsima.me> | 2025-01-03 16:56:39 -0500 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2025-01-03 16:56:39 -0500 |
commit | 178a4fab6cdb5cbde6535d131d3341dba811db32 (patch) | |
tree | b64d1a6bec4342dda603cf7b1f626f2085e6473f /Omni/Cloud/Comms/Xmpp.nix | |
parent | 34ed368a9f95e49fe0fe9bce28dd20714edbb155 (diff) |
Get xmpp uploads working again
The problem was that the ssl cert wasn't renewing. I added the domains to the
nginx config, and cleaned up some other stuff. During debug I also udpated
nixos-mailserver and nixos stable because I thought it would fix something; it
didn't but I might as well use the updated versions of stuff since it seems to
still work fine.
Diffstat (limited to 'Omni/Cloud/Comms/Xmpp.nix')
-rw-r--r-- | Omni/Cloud/Comms/Xmpp.nix | 40 |
1 files changed, 7 insertions, 33 deletions
diff --git a/Omni/Cloud/Comms/Xmpp.nix b/Omni/Cloud/Comms/Xmpp.nix index 5a8264b..ea50ed9 100644 --- a/Omni/Cloud/Comms/Xmpp.nix +++ b/Omni/Cloud/Comms/Xmpp.nix @@ -29,8 +29,8 @@ in { package = pkgs.prosody.override {withCommunityModules = ["conversejs"];}; - # when i learn how to use security.acme better, and use separate certs, then i - # can fix this group + # this is necessary bc prosody needs access to the acme certs managed in Omni/Cloud/Web.nix, when + # i learn how to use security.acme better, and use separate certs, then i can fix this group group = "nginx"; admins = ["bsima@${rootDomain}"]; allowRegistration = true; @@ -51,7 +51,7 @@ in { dialback = true; disco = true; groups = true; - http_files = false; # hm, look into this + http_files = false; # https://prosody.im/doc/modules/mod_http_files motd = true; pep = true; ping = true; @@ -108,17 +108,6 @@ in { roomDefaultModerated = true; roomDefaultPublic = false; } - { - domain = "chat.${rootDomain}"; - maxHistoryMessages = 10000; - name = "Chat Rooms"; - restrictRoomCreation = false; - roomDefaultHistoryLength = 200; - roomDefaultMembersOnly = false; - roomDefaultModerated = false; - roomDefaultPublic = true; - roomDefaultPublicJids = true; - } ]; virtualHosts = { @@ -192,23 +181,8 @@ in { users.users.nginx.extraGroups = ["prosody"]; - security.acme.certs.${rootDomain}.extraDomainNames = [ - # these stopped working idk why - #"upload.${rootDomain}" - #"conference.${rootDomain}" - "anon.${rootDomain}" - "chat.${rootDomain}" - ]; - - #security.acme.certs.prosody = { - # domain = "${domain}"; - # group = "prosody"; - # dnsProvider = "rfc2136"; - # #credentialsFile = config.secrets.files.dns_creds.path; - # postRun = "systemctl restart prosody"; - # extraDomainNames = [ - # domain - # "upload.${domain}" - # ]; - #}; + # restart prosody when we renew the main cert + # https://github.com/NixOS/nixpkgs/issues/133904 + systemd.services.prosody.requires = ["acme-finished-${rootDomain}.target"]; + systemd.services.prosody.after = ["acme-finished-${rootDomain}.target"]; } |