nixos/matrix-appservice-irc: allow disabling media lifetime

Posting media URLs to IRC that vanish, when they can be refetched from
the remote server they were originated from is not great UX.
This commit is contained in:
Martin Weinelt 2024-09-09 20:21:53 +02:00
parent 4b9592ba68
commit 420398889e
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759
2 changed files with 8 additions and 2 deletions

View File

@ -147,10 +147,13 @@ in {
''; '';
}; };
ttlSeconds = lib.mkOption { ttlSeconds = lib.mkOption {
type = ints.positive; type = ints.unsigned;
default = 3600; default = 3600;
example = 0;
description = '' description = ''
Lifetime in seconds, that generated URLs stay valid. Lifetime in seconds, that generated URLs stay valid.
Set the lifetime to 0 to prevent URLs from becoming invalid.
''; '';
}; };
bindPort = lib.mkOption { bindPort = lib.mkOption {

View File

@ -84,7 +84,10 @@
aliasTemplate = "#irc_$CHANNEL"; aliasTemplate = "#irc_$CHANNEL";
}; };
}; };
mediaProxy.publicUrl = "http://localhost:11111/media"; mediaProxy = {
publicUrl = "http://localhost:11111/media";
ttl = 0;
};
}; };
}; };
}; };