From 964f6179a76e487feea25fbb21daba04072d8c6c Mon Sep 17 00:00:00 2001 From: Meow <197331664+Meo597@users.noreply.github.com> Date: Fri, 8 May 2026 04:19:03 +0800 Subject: [PATCH 1/5] Update default xray config fragments --- alpinelinux/install-release.sh | 8 ++++++-- install-release.sh | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/alpinelinux/install-release.sh b/alpinelinux/install-release.sh index 8a7cd02..73df649 100644 --- a/alpinelinux/install-release.sh +++ b/alpinelinux/install-release.sh @@ -168,7 +168,7 @@ install_confdir() { CONFDIR='0' if [ ! -d '/usr/local/etc/xray/' ]; then install -d /usr/local/etc/xray/ - for BASE in 00_log 01_api 02_dns 03_routing 04_policy 05_inbounds 06_outbounds 07_transport 08_stats 09_reverse; do + for BASE in 00_log 01_api 02_dns 03_routing 04_policy 05_inbounds 06_outbounds 07_transport 08_stats 09_fakedns 10_metrics 11_observatory 12_geodata 99_version; do echo '{}' >"/usr/local/etc/xray/$BASE.json" done CONFDIR='1' @@ -217,7 +217,11 @@ information() { echo 'installed: /usr/local/etc/xray/06_outbounds.json' echo 'installed: /usr/local/etc/xray/07_transport.json' echo 'installed: /usr/local/etc/xray/08_stats.json' - echo 'installed: /usr/local/etc/xray/09_reverse.json' + echo 'installed: /usr/local/etc/xray/09_fakedns.json' + echo 'installed: /usr/local/etc/xray/10_metrics.json' + echo 'installed: /usr/local/etc/xray/11_observatory.json' + echo 'installed: /usr/local/etc/xray/12_geodata.json' + echo 'installed: /usr/local/etc/xray/99_version.json' fi if [ "$LOG" -eq '1' ]; then echo 'installed: /var/log/xray/' diff --git a/install-release.sh b/install-release.sh index e78442b..3164d76 100755 --- a/install-release.sh +++ b/install-release.sh @@ -501,7 +501,7 @@ install_xray() { # Install Xray configuration file to $JSONS_PATH if [[ -n "$JSONS_PATH" ]] && [[ ! -d "$JSONS_PATH" ]]; then install -d "$JSONS_PATH" - for BASE in 00_log 01_api 02_dns 03_routing 04_policy 05_inbounds 06_outbounds 07_transport 08_stats 09_reverse; do + for BASE in 00_log 01_api 02_dns 03_routing 04_policy 05_inbounds 06_outbounds 07_transport 08_stats 09_fakedns 10_metrics 11_observatory 12_geodata 99_version; do echo '{}' >"${JSONS_PATH}/${BASE}.json" done CONFDIR='1' @@ -928,7 +928,11 @@ main() { echo "installed: ${JSON_PATH}/06_outbounds.json" echo "installed: ${JSON_PATH}/07_transport.json" echo "installed: ${JSON_PATH}/08_stats.json" - echo "installed: ${JSON_PATH}/09_reverse.json" + echo "installed: ${JSON_PATH}/09_fakedns.json" + echo "installed: ${JSON_PATH}/10_metrics.json" + echo "installed: ${JSON_PATH}/11_observatory.json" + echo "installed: ${JSON_PATH}/12_geodata.json" + echo "installed: ${JSON_PATH}/99_version.json" fi if [[ "$LOG" -eq '1' ]]; then echo 'installed: /var/log/xray/' From a88b1d14b85681454b6d83ad8c69e8dd7a2f1d07 Mon Sep 17 00:00:00 2001 From: Meow <197331664+Meo597@users.noreply.github.com> Date: Fri, 8 May 2026 05:50:00 +0800 Subject: [PATCH 2/5] transport --- alpinelinux/install-release.sh | 13 ++++++------- install-release.sh | 13 ++++++------- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/alpinelinux/install-release.sh b/alpinelinux/install-release.sh index 73df649..7e90837 100644 --- a/alpinelinux/install-release.sh +++ b/alpinelinux/install-release.sh @@ -168,7 +168,7 @@ install_confdir() { CONFDIR='0' if [ ! -d '/usr/local/etc/xray/' ]; then install -d /usr/local/etc/xray/ - for BASE in 00_log 01_api 02_dns 03_routing 04_policy 05_inbounds 06_outbounds 07_transport 08_stats 09_fakedns 10_metrics 11_observatory 12_geodata 99_version; do + for BASE in 00_log 01_api 02_dns 03_routing 04_policy 05_inbounds 06_outbounds 07_stats 08_fakedns 09_metrics 10_observatory 11_geodata 99_version; do echo '{}' >"/usr/local/etc/xray/$BASE.json" done CONFDIR='1' @@ -215,12 +215,11 @@ information() { echo 'installed: /usr/local/etc/xray/04_policy.json' echo 'installed: /usr/local/etc/xray/05_inbounds.json' echo 'installed: /usr/local/etc/xray/06_outbounds.json' - echo 'installed: /usr/local/etc/xray/07_transport.json' - echo 'installed: /usr/local/etc/xray/08_stats.json' - echo 'installed: /usr/local/etc/xray/09_fakedns.json' - echo 'installed: /usr/local/etc/xray/10_metrics.json' - echo 'installed: /usr/local/etc/xray/11_observatory.json' - echo 'installed: /usr/local/etc/xray/12_geodata.json' + echo 'installed: /usr/local/etc/xray/07_stats.json' + echo 'installed: /usr/local/etc/xray/08_fakedns.json' + echo 'installed: /usr/local/etc/xray/09_metrics.json' + echo 'installed: /usr/local/etc/xray/10_observatory.json' + echo 'installed: /usr/local/etc/xray/11_geodata.json' echo 'installed: /usr/local/etc/xray/99_version.json' fi if [ "$LOG" -eq '1' ]; then diff --git a/install-release.sh b/install-release.sh index 3164d76..cd00cd8 100755 --- a/install-release.sh +++ b/install-release.sh @@ -501,7 +501,7 @@ install_xray() { # Install Xray configuration file to $JSONS_PATH if [[ -n "$JSONS_PATH" ]] && [[ ! -d "$JSONS_PATH" ]]; then install -d "$JSONS_PATH" - for BASE in 00_log 01_api 02_dns 03_routing 04_policy 05_inbounds 06_outbounds 07_transport 08_stats 09_fakedns 10_metrics 11_observatory 12_geodata 99_version; do + for BASE in 00_log 01_api 02_dns 03_routing 04_policy 05_inbounds 06_outbounds 07_stats 08_fakedns 09_metrics 10_observatory 11_geodata 99_version; do echo '{}' >"${JSONS_PATH}/${BASE}.json" done CONFDIR='1' @@ -926,12 +926,11 @@ main() { echo "installed: ${JSON_PATH}/04_policy.json" echo "installed: ${JSON_PATH}/05_inbounds.json" echo "installed: ${JSON_PATH}/06_outbounds.json" - echo "installed: ${JSON_PATH}/07_transport.json" - echo "installed: ${JSON_PATH}/08_stats.json" - echo "installed: ${JSON_PATH}/09_fakedns.json" - echo "installed: ${JSON_PATH}/10_metrics.json" - echo "installed: ${JSON_PATH}/11_observatory.json" - echo "installed: ${JSON_PATH}/12_geodata.json" + echo "installed: ${JSON_PATH}/07_stats.json" + echo "installed: ${JSON_PATH}/08_fakedns.json" + echo "installed: ${JSON_PATH}/09_metrics.json" + echo "installed: ${JSON_PATH}/10_observatory.json" + echo "installed: ${JSON_PATH}/11_geodata.json" echo "installed: ${JSON_PATH}/99_version.json" fi if [[ "$LOG" -eq '1' ]]; then From ca5cb1d93c2d0683eb03a412151cc3f385464e17 Mon Sep 17 00:00:00 2001 From: Meow <197331664+Meo597@users.noreply.github.com> Date: Fri, 10 Jul 2026 23:04:25 +0800 Subject: [PATCH 3/5] Add 12_env configuration to install script --- alpinelinux/install-release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alpinelinux/install-release.sh b/alpinelinux/install-release.sh index 7e90837..ead7578 100644 --- a/alpinelinux/install-release.sh +++ b/alpinelinux/install-release.sh @@ -168,7 +168,7 @@ install_confdir() { CONFDIR='0' if [ ! -d '/usr/local/etc/xray/' ]; then install -d /usr/local/etc/xray/ - for BASE in 00_log 01_api 02_dns 03_routing 04_policy 05_inbounds 06_outbounds 07_stats 08_fakedns 09_metrics 10_observatory 11_geodata 99_version; do + for BASE in 00_log 01_api 02_dns 03_routing 04_policy 05_inbounds 06_outbounds 07_stats 08_fakedns 09_metrics 10_observatory 11_geodata 12_env 99_version; do echo '{}' >"/usr/local/etc/xray/$BASE.json" done CONFDIR='1' From 518f81667e8ce57fcd1ce975554e7e2d1be72ba0 Mon Sep 17 00:00:00 2001 From: Meow <197331664+Meo597@users.noreply.github.com> Date: Fri, 10 Jul 2026 23:05:27 +0800 Subject: [PATCH 4/5] Include installation message for 12_env.json Add installation message for 12_env.json file. --- alpinelinux/install-release.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/alpinelinux/install-release.sh b/alpinelinux/install-release.sh index ead7578..7bef32e 100644 --- a/alpinelinux/install-release.sh +++ b/alpinelinux/install-release.sh @@ -220,6 +220,7 @@ information() { echo 'installed: /usr/local/etc/xray/09_metrics.json' echo 'installed: /usr/local/etc/xray/10_observatory.json' echo 'installed: /usr/local/etc/xray/11_geodata.json' + echo 'installed: /usr/local/etc/xray/12_env.json' echo 'installed: /usr/local/etc/xray/99_version.json' fi if [ "$LOG" -eq '1' ]; then From f0e725967f6340729cc15f559f1520a2949b058f Mon Sep 17 00:00:00 2001 From: Meow <197331664+Meo597@users.noreply.github.com> Date: Fri, 10 Jul 2026 23:06:39 +0800 Subject: [PATCH 5/5] Add 12_env.json to Xray installation script --- install-release.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install-release.sh b/install-release.sh index cd00cd8..97496ba 100755 --- a/install-release.sh +++ b/install-release.sh @@ -501,7 +501,7 @@ install_xray() { # Install Xray configuration file to $JSONS_PATH if [[ -n "$JSONS_PATH" ]] && [[ ! -d "$JSONS_PATH" ]]; then install -d "$JSONS_PATH" - for BASE in 00_log 01_api 02_dns 03_routing 04_policy 05_inbounds 06_outbounds 07_stats 08_fakedns 09_metrics 10_observatory 11_geodata 99_version; do + for BASE in 00_log 01_api 02_dns 03_routing 04_policy 05_inbounds 06_outbounds 07_stats 08_fakedns 09_metrics 10_observatory 11_geodata 12_env 99_version; do echo '{}' >"${JSONS_PATH}/${BASE}.json" done CONFDIR='1' @@ -931,6 +931,7 @@ main() { echo "installed: ${JSON_PATH}/09_metrics.json" echo "installed: ${JSON_PATH}/10_observatory.json" echo "installed: ${JSON_PATH}/11_geodata.json" + echo "installed: ${JSON_PATH}/12_env.json" echo "installed: ${JSON_PATH}/99_version.json" fi if [[ "$LOG" -eq '1' ]]; then