From 313b53f19a6d438c5ffbf9c5235c656828fc890a Mon Sep 17 00:00:00 2001 From: quackerd Date: Sat, 26 Mar 2022 14:04:43 +0800 Subject: [PATCH] add ivan --- ci_prep.sh | 1 + confs/ivan.quacker.net | 46 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 confs/ivan.quacker.net diff --git a/ci_prep.sh b/ci_prep.sh index cf03992..57eb489 100644 --- a/ci_prep.sh +++ b/ci_prep.sh @@ -58,4 +58,5 @@ htpasswd -b ./.htpasswd zhoubowen zhoubowen htpasswd -b ./.htpasswd gaoyuchen gaoyuchen htpasswd -b ./.htpasswd quackerd quackerd htpasswd -b ./.htpasswd yushengde yushengde +htpasswd -b ./.htpasswd ivansun ivansun encrypt_file ./.htpasswd "$(cat ./key)" image/htpasswd diff --git a/confs/ivan.quacker.net b/confs/ivan.quacker.net new file mode 100644 index 0000000..d3c0f26 --- /dev/null +++ b/confs/ivan.quacker.net @@ -0,0 +1,46 @@ +{ + "log": { + "loglevel": "warn", + "access": "/opt/config/logs/xray/access.log", + "error": "/opt/config/logs/xray/error.log" + }, + "inbounds": [ + { + "port": 443, + "protocol": "vless", + "settings": { + "clients": [ + { + "id": "ivansun", + "flow": "xtls-rprx-direct" + } + ], + "decryption": "none", + "fallbacks": [ + { + "dest": "localhost:80" + } + ] + }, + "streamSettings": { + "network": "tcp", + "security": "xtls", + "xtlsSettings": { + "alpn": ["http/1.1", "h2"], + "certificates": [ + { + "certificateFile": "/etc/letsencrypt/live/nocturne.quacker.net/fullchain.pem", + "keyFile": "/etc/letsencrypt/live/nocturne.quacker.net/privkey.pem" + } + ] + } + } + } + ], + "outbounds": [ + { + "protocol": "freedom", + "settings": {} + } + ] +}