Add script for fast deployment

This commit is contained in:
9seconds
2019-11-18 10:49:03 +03:00
parent 6dce3944e4
commit b6251608d9
3 changed files with 74 additions and 7 deletions
+16
View File
@@ -144,6 +144,13 @@ $ mtg generate-secret -c google.com tls
ee852380f362a09343efb4690c4e17862e676f6f676c652e636f6d
```
Or, if you prefer docker:
```console
$ docker run --rm nineseconds/mtg generate-secret tls -c bing.com
eedf71035a8ed48a623d8e83e66aec4d0562696e672e636f6d
```
## Antireplay cache
To prevent replay attacks, we have internal storage of first frames
@@ -215,6 +222,15 @@ $ mtg run <secret> <adtag>
This tool will listen on port 3128 by default with the given secret.
# oneliner to run this proxy
Please ensure that docker is installed. After that just execute
```console
curl -sfL https:// | bash
```
# statsd integration
mtg provides an integration with statsd, you can enable it with command