Unverified Commit 58aa6d56 authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

nixos/matrix-appservice-irc: allow disabling the ttl by setting it to 0 (#340841)

parents 53bdfbc9 42039888
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -147,10 +147,13 @@ in {
                    '';
                  };
                  ttlSeconds = lib.mkOption {
                    type = ints.positive;
                    type = ints.unsigned;
                    default = 3600;
                    example = 0;
                    description = ''
                      Lifetime in seconds, that generated URLs stay valid.

                      Set the lifetime to 0 to prevent URLs from becoming invalid.
                    '';
                  };
                  bindPort = lib.mkOption {
+4 −1
Original line number Diff line number Diff line
@@ -84,7 +84,10 @@
                  aliasTemplate = "#irc_$CHANNEL";
                };
              };
              mediaProxy.publicUrl = "http://localhost:11111/media";
              mediaProxy = {
                publicUrl = "http://localhost:11111/media";
                ttl = 0;
              };
            };
          };
        };