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}"