Update trojan-go

This commit is contained in:
Teddysun 2023-11-15 20:52:50 +09:00
parent 9d94a26b12
commit 49ad970132
No known key found for this signature in database
GPG Key ID: 09BD4C080AD6C46D
3 changed files with 124 additions and 114 deletions

View File

@ -1,10 +1,11 @@
# Dockerfile for trojan-go based alpine # Dockerfile for trojan-go based alpine
# Copyright (C) 2019 - 2021 Teddysun <i@teddysun.com> # Copyright (C) 2019 - 2023 Teddysun <i@teddysun.com>
# Reference URL: # Reference URL:
# https://github.com/p4gefau1t/trojan-go # https://github.com/p4gefau1t/trojan-go
# https://github.com/v2fly/v2ray-core # https://github.com/v2fly/v2ray-core
# https://github.com/v2fly/geoip # https://github.com/v2fly/geoip
# https://github.com/v2fly/domain-list-community # https://github.com/v2fly/domain-list-community
# https://github.com/Potterli20/trojan-go-fork
FROM --platform=${TARGETPLATFORM} alpine:latest FROM --platform=${TARGETPLATFORM} alpine:latest
LABEL maintainer="Teddysun <i@teddysun.com>" LABEL maintainer="Teddysun <i@teddysun.com>"

View File

@ -40,13 +40,20 @@ A sample in JSON like below:
"remote_addr": "127.0.0.1", "remote_addr": "127.0.0.1",
"remote_port": 80, "remote_port": 80,
"password": [ "password": [
"your_awesome_password" "your_password"
], ],
"ssl": { "ssl": {
"cert": "server.crt", "cert": "your_cert.crt",
"key": "server.key", "key": "your_key.key",
"sni": "your-domain-name.com", "sni": "your-domain-name.com"
"fallback_port": 1234 },
"router": {
"enabled": true,
"block": [
"geoip:private"
],
"geoip": "/usr/share/trojan-go/geoip.dat",
"geosite": "/usr/share/trojan-go/geosite.dat"
} }
} }
``` ```

View File

@ -12,10 +12,12 @@
"key": "your_key.key", "key": "your_key.key",
"sni": "your-domain-name.com" "sni": "your-domain-name.com"
}, },
"router":{ "router": {
"enabled": true, "enabled": true,
"block": [ "block": [
"geoip:private" "geoip:private"
] ],
"geoip": "/usr/share/trojan-go/geoip.dat",
"geosite": "/usr/share/trojan-go/geosite.dat"
} }
} }