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
|
||||
# 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=
|
|
@ -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}"
|
||||
|
|
Loading…
Reference in a new issue