mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nixos/matrix-appservice-irc: allow disabling the ttl by setting it to 0 (#340841)
This commit is contained in:
commit
58aa6d56f6
2 changed files with 8 additions and 2 deletions
|
@ -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 {
|
||||||
|
|
|
@ -84,7 +84,10 @@
|
||||||
aliasTemplate = "#irc_$CHANNEL";
|
aliasTemplate = "#irc_$CHANNEL";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
mediaProxy.publicUrl = "http://localhost:11111/media";
|
mediaProxy = {
|
||||||
|
publicUrl = "http://localhost:11111/media";
|
||||||
|
ttl = 0;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue