updat scripts; update x to v0.3

This commit is contained in:
gaofei
2025-02-24 14:07:18 +08:00
parent fb57013052
commit f7a40906d2
4 changed files with 25 additions and 28 deletions

View File

@ -15,9 +15,9 @@ function loginfo() {
echo -e "[INFO] $1"
}
if [[ -z $DEPLOY_DOMAIN ]]; then
if [[ -z $DOMAIN ]]; then
echo
logerr "env:DEPLOY_DOMAIN is not set"
logerr "env:DOMAIN is not set"
echo
exit 1
fi
@ -81,7 +81,7 @@ NAIVE_CONFIG="./naive-config.json"
function gen_hysteria_config() {
cat >$HYSTERIA_CONFIG <<EOF
server: $DEPLOY_DOMAIN:8443
server: $DOMAIN:8443
auth: fuckyouall
bandwidth:
up: 100 mbps
@ -99,7 +99,7 @@ function gen_naive_config() {
cat >${NAIVE_CONFIG} <<EOF
{
"listen": "http://127.0.0.1:28081",
"proxy": "quic://xxoommd:fuckyouall@$DEPLOY_DOMAIN"
"proxy": "quic://xxoommd:fuckyouall@$DOMAIN"
}
EOF
echo -e "[INFO] Generate Done\n"