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 | |
| set -Eeuo pipefail | |
| # lego Smart GUI Manager | |
| # - Installs latest lego to /usr/local/bin/lego | |
| # - whiptail/dialog-style TUI over SSH | |
| # - Auto-detects DNS / IPv4 / IPv6 / mixed SAN certificates | |
| # - Forces Let's Encrypt shortlived profile when any IP SAN is present | |
| # - Supports HTTP-01 built-in, HTTP-01 webroot, TLS-ALPN-01 | |
| # - Installs /etc/cron.daily/lego-renew |
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
| #!/bin/bash | |
| # mproxy-mod 一键安装与卸载脚本 | |
| # 支持架构: Linux amd64 (x86_64) | |
| set -e | |
| # 全局变量 | |
| BIN_URL="https://github.com/NNdroid/mproxy-mod/raw/refs/heads/main/mproxy" | |
| BIN_PATH="/usr/local/bin/mproxy" |
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
| #!/bin/bash | |
| set -e | |
| # ========================================== | |
| # psocks 多功能管理脚本 (Install / Update / Uninstall) | |
| # ========================================== | |
| REPO="NNdroid/psocks-build" | |
| CONFIG_DIR="/usr/local/etc/psocks" | |
| LOG_DIR="/var/log/psocks" |
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
| #!/bin/bash | |
| RELEASE_API="https://api.github.com/repos/heiher/hev-socks5-server/releases/latest" | |
| BIN_DST_DIR=/usr/local/bin | |
| RESOURCE_DST_DIR=/usr/local/etc/hev-socks5-server | |
| function getReleaseInfo() { | |
| response=$(curl ${RELEASE_API}) | |
| if [ $? == 0 ]; then | |
| echo $response | |
| return 0 |
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
| #!/bin/bash | |
| RELEASE_API="https://api.github.com/repos/heiher/hev-socks5-tunnel/releases/latest" | |
| BIN_DST_DIR=/usr/local/bin | |
| RESOURCE_DST_DIR=/usr/local/etc/hev-socks5-tunnel | |
| function getReleaseInfo() { | |
| response=$(curl ${RELEASE_API}) | |
| if [ $? == 0 ]; then | |
| echo $response | |
| return 0 |
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
| # 生成 dhparam.pem 文件, 在命令行执行任一方法: | |
| # 方法1: 很慢 | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 | |
| # 方法2: 较快 | |
| # 与方法1无明显区别. 2048位也足够用, 4096更强 | |
| openssl dhparam -dsaparam -out /etc/nginx/ssl/dhparam.pem 4096 |
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
| apt-get remove docker docker-engine docker.io containerd runc | |
| apt-get install ca-certificates curl gnupg lsb-release | |
| mkdir -p /etc/apt/keyrings | |
| curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg | |
| echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | |
| apt update | |
| apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin |
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
| [Interface] | |
| Address = 10.200.200.3/32 | |
| PrivateKey = [Client's private key] | |
| DNS = 8.8.8.8 | |
| [Peer] | |
| PublicKey = [Server's public key] | |
| PresharedKey = [Pre-shared key, same for server and client] | |
| Endpoint = [Server Addr:Server Port] | |
| AllowedIPs = 0.0.0.0/0 |
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
| #!/bin/bash | |
| PROXY="" | |
| RELEASE_API="https://api.github.com/repos/librespeed/speedtest-go/releases/latest" | |
| BIN_DST_DIR=/usr/local/bin | |
| RESOURCE_DST_DIR=/usr/local/etc/speedtest-backend | |
| function getReleaseInfo() { | |
| response=$(curl ${RELEASE_API}) | |
| if [ $? == 0 ]; then | |
| echo $response |
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
| #!/bin/bash | |
| GITHUB_API="https://api.github.com/repos/shadowsocks/shadowsocks-rust/releases" | |
| BIN_PATH="/usr/local/bin" | |
| CFG_PATH="/usr/local/etc/ss-rust" | |
| TEMP_PATH="/tmp/ss-rust" | |
| SS_LISTEN="::" | |
| SS_PORT="2022" | |
| SS_PWD="GbqAZCWgm8bE0uVnYYCaEA==" | |
| SS_METHOD="2022-blake3-aes-128-gcm" | |
| function check_error() { |
NewerOlder