This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # install_vless_reality.sh | |
| # 可放到 Gist,支持:curl GIST_RAW | sudo bash -s -- install <domain> [port] | |
| # 注意:脚本不修改自身,不引用 $0,适合通过管道执行。 | |
| set -euo pipefail | |
| BASE_DIR="/etc/xray" | |
| BIN_DIR="/usr/local/bin" | |
| XRAY_BIN="${BIN_DIR}/xray" | |
| CONFIG_FILE="${BASE_DIR}/config.json" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Vmess+WS+TLS 一键安装脚本(Debian 11) | |
| # 管理命令: xy | |
| set -euo pipefail | |
| XRAY_BIN="/usr/local/bin/xray" | |
| XRAY_DIR="/usr/local/etc/xray" | |
| XRAY_CONF="$XRAY_DIR/config.json" | |
| NGINX_CONF="/etc/nginx/sites-available/xray.conf" |