Adding proxy-mtproto configuration draft.
This commit is contained in:
parent
70399cdebf
commit
38d8970f57
12
proxy-mtproto/.env.dist
Normal file
12
proxy-mtproto/.env.dist
Normal 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
1
proxy-mtproto/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
.env
|
11
proxy-mtproto/docker-compose.yml
Normal file
11
proxy-mtproto/docker-compose.yml
Normal 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}"
|
Loading…
Reference in a new issue