Last active
June 19, 2021 06:49
-
-
Save phlinhng/6312d0904be9ff2242b45cee1fab3b9b to your computer and use it in GitHub Desktop.
trojan-go with caddy as remote web server & https redirector
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
must.have.sni.com:80 { | |
redir https://must.have.sni.com{uri} | |
} | |
must.have.sni.com:8080 { | |
bind 127.0.0.1 | |
root /var/www/html | |
index index.html | |
tls off | |
} |
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
{ | |
"run_type": "server", | |
"local_addr": "0.0.0.0", | |
"local_port": 443, | |
"remote_addr": "127.0.0.1", | |
"remote_port": 8080, | |
"log_level": 3, | |
"password": [ | |
"your_password" | |
], | |
"ssl": { | |
"verify_hostname": true, | |
"cert": "/path/to/server.crt", | |
"key": "/path/to/server.key", | |
"sni": "must.have.sni.com" | |
}, | |
"router": { | |
"enabled": true, | |
"block": [ | |
"geoip:private" | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment