diff --git a/proxy-mtproto/.env.dist b/proxy-mtproto/.env.dist index 279ceb9..92bd312 100644 --- a/proxy-mtproto/.env.dist +++ b/proxy-mtproto/.env.dist @@ -1,11 +1,12 @@ # 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 +# https://github.com/9seconds/mtg#environment-variables +MTG_IPV4=123.456.789.012:444 + +# Internal port +INTERNAL_PORT=444 +EXTERNAL_PORT=444 # docker-compose.yml substitution: -MTPROTO_SECRET=dd -MTPROTO_TAG= \ No newline at end of file +PROXY_SECRET= +PROXY_TAG= \ No newline at end of file diff --git a/proxy-mtproto/docker-compose.yml b/proxy-mtproto/docker-compose.yml index 72b4092..e653e48 100644 --- a/proxy-mtproto/docker-compose.yml +++ b/proxy-mtproto/docker-compose.yml @@ -5,7 +5,7 @@ services: image: nineseconds/mtg:latest container_name: proxy-mtproto ports: - - "${MTG_IPV4_PORT}:${MTG_PORT}/tcp" + - "${EXTERNAL_PORT}:${INTERNAL_PORT}/tcp" env_file: .env restart: unless-stopped - command: "run ${MTPROTO_SECRET:-} ${MTPROTO_TAG:-}" + command: "run ${MTPROTO_SECRET} ${MTPROTO_TAG}"