trojan.sh
Client Script
This section explains how the trojan.sh
client script works.
trojan.sh
is a script that is responsible for expanding the variables and generating the Hysteria 2 client URL file at proxy/trojan/client
.
Used by
List of the files and commands this file is used by:
Depends on
List of the files this file depends on:
.env
(for configuration file generation)
File Content
The file has the following content:
bash
#!/usr/bin/env bash
source .env
cat > ./proxy/trojan/client <<EOF
trojan://$PASSWORD@$DOMAIN:463?peer=$DOMAIN&alpn=h2
EOF