mirror of
https://github.com/xxoommd/magic.git
synced 2025-07-12 10:08:53 +00:00
updat scripts; update x to v0.3
This commit is contained in:
@ -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"
|
||||
|
Reference in New Issue
Block a user