about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/web-apps/morty/default.nix
blob: 85731d14d63f61b1bcb5858944b32ce4c0f1b540 (plain) (blame)
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
36
37
38
39
40
41
42
43
{ lib, buildGoPackage, fetchFromGitHub }:

buildGoPackage rec {
  pname = "morty";
  version = "0.2.0";

  goPackagePath = "github.com/asciimoo/morty";

  src = fetchFromGitHub {
    owner = "asciimoo";
    repo = "morty";
    rev = "v${version}";
    sha256 = "sha256-NWfsqJKJcRPKR8gWQbgal1JsenDesczPcz/+uzhtefM=";
  };

  goDeps = ./deps.nix;

  meta = with lib; {
    homepage = "https://github.com/asciimoo/morty";
    maintainers = with maintainers; [ leenaars ];
    license = licenses.agpl3;
    description = "Privacy aware web content sanitizer proxy as a service";
    longDescription = ''
      Morty is a web content sanitizer proxy as a service. It rewrites web
      pages to exclude malicious HTML tags and attributes. It also replaces
      external resource references to prevent third party information leaks.

      The main goal of morty is to provide a result proxy for searx, but it
      can be used as a standalone sanitizer service too.

      Features:

      * HTML sanitization
      * Rewrites HTML/CSS external references to locals
      * JavaScript blocking
      * No Cookies forwarded
      * No Referrers
      * No Caching/Etag
      * Supports GET/POST forms and IFrames
      * Optional HMAC URL verifier key to prevent service abuse
    '';
  };
}