2022-03-08 14:29:52 +00:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
2018-05-30 17:10:36 +01:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "morty";
|
2018-05-30 17:10:36 +01:00
|
|
|
version = "0.2.0";
|
|
|
|
|
|
|
|
goPackagePath = "github.com/asciimoo/morty";
|
|
|
|
|
2022-03-08 14:29:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "asciimoo";
|
|
|
|
repo = "morty";
|
2018-05-30 17:10:36 +01:00
|
|
|
rev = "v${version}";
|
2022-03-08 14:29:52 +00:00
|
|
|
sha256 = "sha256-NWfsqJKJcRPKR8gWQbgal1JsenDesczPcz/+uzhtefM=";
|
2018-05-30 17:10:36 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
goDeps = ./deps.nix;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-05-30 17:10:36 +01:00
|
|
|
homepage = "https://github.com/asciimoo/morty";
|
|
|
|
maintainers = with maintainers; [ leenaars ];
|
2018-08-06 11:43:58 +01:00
|
|
|
license = licenses.agpl3;
|
2018-05-30 17:10:36 +01:00
|
|
|
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
|
2022-03-08 14:29:52 +00:00
|
|
|
'';
|
|
|
|
};
|
2018-05-30 17:10:36 +01:00
|
|
|
}
|