Skip to content

Commit

Permalink
fixup! nixos/matrix-synapse: add UNIX domain socket listener support
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt committed Feb 6, 2024
1 parent 2b5e9bd commit df57896
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions nixos/modules/services/matrix/synapse.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1100,9 +1100,12 @@ in {
}
]
++ (map (listener: {
assertion = listener.path == null || (listener.bind_addresses == null && listener.port == null && listener.tls == null);
message = ''
Listener configured with UNIX domain socket (${toString listener.path}) ignores options `bind_addressees`, `port` and `tls`.
assertion = lib.traceVal listener.path != null && (listener.bind_addresses != null || listener.port != null || listener.tls != null);
message = let
formatKeyValue = key: value: lib.optionalString (value != null) " - ${key}=${toString value}\n";
in ''
Listener configured with UNIX domain socket (${toString listener.path}) ignores the following options:
${formatKeyValue "bind_addresses" listener.bind_addresses}${formatKeyValue "port" listener.port}${formatKeyValue "tls" listener.tls}
'';
}) cfg.settings.listeners)
++ (map (listener: {
Expand Down

0 comments on commit df57896

Please sign in to comment.