From 38d8970f572541828237f0acc3fb938bbd628544 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Wed, 10 Apr 2019 21:06:49 +0300 Subject: [PATCH] Adding proxy-mtproto configuration draft. --- proxy-mtproto/.env.dist | 12 ++++++++++++ proxy-mtproto/.gitignore | 1 + proxy-mtproto/docker-compose.yml | 11 +++++++++++ 3 files changed, 24 insertions(+) create mode 100644 proxy-mtproto/.env.dist create mode 100644 proxy-mtproto/.gitignore create mode 100644 proxy-mtproto/docker-compose.yml diff --git a/proxy-mtproto/.env.dist b/proxy-mtproto/.env.dist new file mode 100644 index 0000000..cb69aea --- /dev/null +++ b/proxy-mtproto/.env.dist @@ -0,0 +1,12 @@ +# Proxy configuration variables +# see https://hub.docker.com/r/nineseconds/mtg +# IPv4 address of this proxy. This is required if you NAT your proxy or run it in a docker container. +MTG_IPV4=123.456.789.012 +# Which port should we bind to (listen on). +MTG_PORT=443 +# Which port should be public of IPv4 interface. This affects only generated links. +MTG_IPV4_PORT=444 + +# docker-compose.yml substitution: +MTPROTO_SECRET=dd +MTPROTO_TAG= \ No newline at end of file diff --git a/proxy-mtproto/.gitignore b/proxy-mtproto/.gitignore new file mode 100644 index 0000000..4c49bd7 --- /dev/null +++ b/proxy-mtproto/.gitignore @@ -0,0 +1 @@ +.env diff --git a/proxy-mtproto/docker-compose.yml b/proxy-mtproto/docker-compose.yml new file mode 100644 index 0000000..f6b0c5c --- /dev/null +++ b/proxy-mtproto/docker-compose.yml @@ -0,0 +1,11 @@ +version: '3.7' + +services: + mtg: + image: nineseconds/mtg:stable + container_name: proxy-mtproto + ports: + - "444:443/tcp" + env_file: .env + restart: unless-stopped + command: "${MTPROTO_SECRET} ${MTPROTO_TAG}"