Newer
Older
percord / nix / modules / default / lib.nix
@Rory& Rory& on 25 Dec 228 bytes WIP nix stuff
{
  mkEndpoint = domain: port: ssl: {
    host = domain;
    localPort = port;
    useSsl = ssl;
    publicPort =
      if ssl then
        443
      else if domain == "localhost" then
        port
      else
        80;
  };
}