Adding proxy-mtproto configuration draft.

This commit is contained in:
Alexey Skobkin 2019-04-10 21:06:49 +03:00
parent 70399cdebf
commit 38d8970f57
3 changed files with 24 additions and 0 deletions

12
proxy-mtproto/.env.dist Normal file
View file

@ -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=

1
proxy-mtproto/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
.env

View file

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