proxy-mtproto. Changing config.
This commit is contained in:
parent
25957a26b5
commit
63e7cecd9d
|
@ -1,11 +1,12 @@
|
||||||
# see https://hub.docker.com/r/nineseconds/mtg
|
# 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.
|
# 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
|
# https://github.com/9seconds/mtg#environment-variables
|
||||||
# Which port should we bind to (listen on).
|
MTG_IPV4=123.456.789.012:444
|
||||||
MTG_PORT=443
|
|
||||||
# Which port should be public of IPv4 interface. This affects only generated links.
|
# Internal port
|
||||||
MTG_IPV4_PORT=444
|
INTERNAL_PORT=444
|
||||||
|
EXTERNAL_PORT=444
|
||||||
|
|
||||||
# docker-compose.yml substitution:
|
# docker-compose.yml substitution:
|
||||||
MTPROTO_SECRET=dd
|
PROXY_SECRET=
|
||||||
MTPROTO_TAG=
|
PROXY_TAG=
|
|
@ -5,7 +5,7 @@ services:
|
||||||
image: nineseconds/mtg:latest
|
image: nineseconds/mtg:latest
|
||||||
container_name: proxy-mtproto
|
container_name: proxy-mtproto
|
||||||
ports:
|
ports:
|
||||||
- "${MTG_IPV4_PORT}:${MTG_PORT}/tcp"
|
- "${EXTERNAL_PORT}:${INTERNAL_PORT}/tcp"
|
||||||
env_file: .env
|
env_file: .env
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
command: "run ${MTPROTO_SECRET:-} ${MTPROTO_TAG:-}"
|
command: "run ${MTPROTO_SECRET} ${MTPROTO_TAG}"
|
||||||
|
|
Loading…
Reference in a new issue