proxy-mtproto. Changing config.

This commit is contained in:
Alexey Skobkin 2020-05-12 02:18:20 +03:00
parent 25957a26b5
commit 63e7cecd9d
No known key found for this signature in database
GPG Key ID: 5D5CEF6F221278E7
2 changed files with 10 additions and 9 deletions

View File

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

View File

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