Created
April 2, 2024 14:16
-
-
Save tshipenchko/fd3f53cded1e81656a5fc99ec267f3a1 to your computer and use it in GitHub Desktop.
mtproto server using v2ray-core (ARM supported)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
services: | |
v2ray: | |
image: v2fly/v2fly-core:v4.45.2 | |
restart: always | |
command: v2ray -config /config.json | |
volumes: | |
- ./config.json:/config.json | |
ports: | |
- "54888:54888" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"inbounds": [ | |
{ | |
"tag": "tag-in", | |
"port": 54888, | |
"protocol": "mtproto", | |
"settings": { | |
"users": [ | |
{ | |
"secret": "CHANGE ME" | |
} | |
] | |
} | |
} | |
], | |
"outbounds": [ | |
{ | |
"tag": "tag-out", | |
"protocol": "mtproto", | |
"settings": {} | |
}, | |
{ | |
"protocol": "blackhole", | |
"settings": {}, | |
"tag": "blocked" | |
} | |
], | |
"routing": { | |
"rules": [ | |
{ | |
"type": "field", | |
"inboundTag": [ | |
"tg-in" | |
], | |
"outboundTag": "tg-out" | |
}, | |
{ | |
"type": "field", | |
"ip": [ | |
"geoip:private" | |
], | |
"outboundTag": "blocked" | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment