|
9 ماه پیش | |
---|---|---|
.. | ||
Dockerfile | 9 ماه پیش | |
Dockerfile.architecture | 9 ماه پیش | |
README.md | 1 سال پیش | |
build_trojan-go-dev.sh | 5 سال پیش | |
build_trojan-go-fork.sh | 1 سال پیش | |
build_trojan-go.sh | 5 سال پیش | |
config.json | 1 سال پیش | |
trojan-go.sh | 5 سال پیش |
Trojan-Go is An unidentifiable mechanism that helps you bypass GFW.
Trojan-Go features multiple protocols over TLS
to avoid both active/passive detections and ISP QoS
limitations.
Docker images are built for quick deployment in various computing cloud providers.
For more information on docker and containerization technologies, refer to official document.
If you need to install docker by yourself, follow the official installation guide.
$ docker pull teddysun/trojan-go
This pulls the latest release of trojan-go.
It can be found at Docker Hub.
You must create a configuration file /etc/trojan-go/config.json
in host at first:
$ mkdir -p /etc/trojan-go
A sample in JSON like below:
{
"run_type": "server",
"local_addr": "0.0.0.0",
"local_port": 443,
"remote_addr": "127.0.0.1",
"remote_port": 80,
"password": [
"your_password"
],
"ssl": {
"cert": "your_cert.crt",
"key": "your_key.key",
"sni": "your-domain-name.com"
},
"router": {
"enabled": true,
"block": [
"geoip:private"
],
"geoip": "/usr/share/trojan-go/geoip.dat",
"geosite": "/usr/share/trojan-go/geosite.dat"
}
}
An online documentation can be found here
There is an example to start a container that use host network, run as a trojan-go server like below:
$ docker run -d --network host --name trojan-go --restart=always -v /etc/trojan-go:/etc/trojan-go teddysun/trojan-go