summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/ss/ssl-proxy/package.nix
blob: 0177143881ed86b039a192db3eb5a9f5fdb2786a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
  lib,
  buildGoModule,
  fetchFromGitHub,
}:

buildGoModule {
  pname = "ssl-proxy";
  version = "0.2.7-unstable-2024-02-05";

  src = fetchFromGitHub {
    owner = "suyashkumar";
    repo = "ssl-proxy";
    rev = "6b0f364be9bbf0de46520a6b85d30792fcc3cb80";
    hash = "sha256-tYAsz99YCOOEyxPp8Yp+PTn+q2Edir+xy4Vs0yyHWOQ=";
  };

  vendorHash = "sha256-PQ465+4AcH0wP4z2GsGdf/yABaGezaPq+eM0U2lu13o=";

  checkTarget = "test";

  meta = {
    homepage = "https://github.com/suyashkumar/ssl-proxy";
    description = "Simple single-command SSL reverse proxy with autogenerated certificates (LetsEncrypt, self-signed)";
    longDescription = ''
      A handy and simple way to add SSL to your thing running on a VM--be it your personal jupyter
      notebook or your team jenkins instance. ssl-proxy autogenerates SSL certs and proxies
      HTTPS traffic to an existing HTTP server in a single command.
    '';
    license = lib.licenses.mit;
    mainProgram = "ssl-proxy";
    maintainers = [ lib.maintainers.konst-aa ];
    platforms = lib.platforms.linux ++ lib.platforms.darwin ++ lib.platforms.windows;
  };
}