source: code/trunk/README.md@ 129

Last change on this file since 129 was 106, checked in by asciimoo, 5 years ago

Merge pull request #84 from pataquets/patch-2

Readme: Add Docker pulls badge

File size: 2.0 KB
RevLine 
[1]1# Morty
2
[86]3[![Build Status](https://travis-ci.org/asciimoo/morty.svg)](https://travis-ci.org/asciimoo/morty)
[84]4[![License: AGPL v3](https://img.shields.io/badge/License-AGPL%20v3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0)
[105]5[![Docker Pulls](https://img.shields.io/docker/pulls/dalf/morty)](https://hub.docker.com/r/dalf/morty)
[81]6
[1]7Web content sanitizer proxy as a service
8
[19]9Morty rewrites web pages to exclude malicious HTML tags and attributes. It also replaces external resource references to prevent third party information leaks.
[1]10
[6]11The main goal of morty is to provide a result proxy for [searx](https://asciimoo.github.com/searx/), but it can be used as a standalone sanitizer service too.
[1]12
[6]13Features:
[1]14
[19]15 - HTML sanitization
16 - Rewrites HTML/CSS external references to locals
[6]17 - JavaScript blocking
[19]18 - No Cookies forwarded
19 - No Referrers
20 - No Caching/Etag
[6]21 - Supports GET/POST forms and IFrames
[1]22 - Optional HMAC URL verifier key to prevent service abuse
23
24
25## Installation and setup
[82]26Requirement: Go version 1.10 or higher.
[1]27
28```
29$ go get github.com/asciimoo/morty
30$ "$GOPATH/bin/morty" --help
31```
32
[101]33### Environment variables
[1]34
[101]35Morty can be configured using the following environment variables:
36- `MORTY_ADDRESS`: Listen address (default to `127.0.0.1:3000`)
37- `MORTY_KEY`: HMAC url validation key (base64 encoded) to prevent direct URL opening. Leave blank to disable validation. Use `openssl rand -base64 33` to generate.
38- `DEBUG`: Enable/disable proxy and redirection logs (default to `true`). Set to `false` to disable.
39
40### Docker
41
42```
43docker run -e DEBUG=false -e MORTY_ADDRESS=0.0.0.0:3000 -v ./rules.json:/etc/filtron/rules.json:rw dalf/morty
44```
45
46```
47docker run -e DEBUG=false -v ./rules.json:/etc/filtron/rules.json:rw dalf/morty -listen 0.0.0.0:3000
48```
49
50
[48]51### Test
52
53```
54$ cd "$GOPATH/src/github.com/asciimoo/morty"
55$ go test
56```
57
58
59### Benchmark
60
61```
62$ cd "$GOPATH/src/github.com/asciimoo/morty"
63$ go test -benchmem -bench .
64```
65
66
[1]67## Bugs
68
[101]69Bugs or suggestions? Visit the [issue tracker](https://github.com/asciimoo/morty/issues).
Note: See TracBrowser for help on using the repository browser.