|
|
@@ -224,6 +224,16 @@ $ mtg generate-secret --hex google.com
|
|
224
|
224
|
ee473ce5d4958eb5f968c87680a23854a0676f6f676c652e636f6d
|
|
225
|
225
|
```
|
|
226
|
226
|
|
|
|
227
|
+equivalent commands with docker:
|
|
|
228
|
+
|
|
|
229
|
+```console
|
|
|
230
|
+$ docker run --rm nineseconds/mtg:2 generate-secret google.com
|
|
|
231
|
+7ibaERuTSGPH1RdztfYnN4tnb29nbGUuY29t
|
|
|
232
|
+
|
|
|
233
|
+$ docker run --rm nineseconds/mtg:2 generate-secret --hex google.com
|
|
|
234
|
+ee473ce5d4958eb5f968c87680a23854a0676f6f676c652e636f6d
|
|
|
235
|
+```
|
|
|
236
|
+
|
|
227
|
237
|
This secret is a keystone for a proxy and your password for a client.
|
|
228
|
238
|
You need to keep it secured.
|
|
229
|
239
|
|
|
|
@@ -324,7 +334,7 @@ $ sudo systemctl start mtg
|
|
324
|
334
|
or you can run a docker image
|
|
325
|
335
|
|
|
326
|
336
|
```console
|
|
327
|
|
-docker run -d -v /etc/mtg.toml:/config.toml -p 443:3128 --restart=unless-stopped nineseconds/mtg:2
|
|
|
337
|
+docker run -d -v /etc/mtg.toml:/config.toml -p 443:3128 --name mtg-proxy --restart=unless-stopped nineseconds/mtg:2
|
|
328
|
338
|
```
|
|
329
|
339
|
|
|
330
|
340
|
where _443_ is a host port (a port you want to connect to from a
|
|
|
@@ -353,6 +363,12 @@ $ mtg access /etc/mtg.toml
|
|
353
|
363
|
}
|
|
354
|
364
|
```
|
|
355
|
365
|
|
|
|
366
|
+or if you are using docker:
|
|
|
367
|
+
|
|
|
368
|
+```console
|
|
|
369
|
+$ docker exec mtg-proxy /mtg access /config.toml
|
|
|
370
|
+```
|
|
|
371
|
+
|
|
356
|
372
|
## Metrics
|
|
357
|
373
|
|
|
358
|
374
|
Out of the box, mtg works with
|