Skip to main content

mihomo-hysteria2-inbound manager

Project description

Heyhy

Heyhy 用于快速部署 hysteria2 server 并输出客户端最佳实践配置。只需 15s 即可完成全自动部署,开箱即用!

What's features

Supported Configuration Status
Hysteria2 server
NekoRay client proxy
sing-box hy2 outbound
Clash.Meta hysteria2 outbound
Hysteria2 client 🚧
via Cloudflare CDN

Prerequisites

  • Python3.8+
  • 在管理员权限下运行
  • 提前为你的服务器解析一个域名 A 纪录

Get started

首次安装完毕后,你可以通过别名指令 heyhy 调度脚本。

  1. 服务部署

    在交互式引导下完成部署。脚本会在任务结束后打印代理客户端配置。

    python3 <(curl -fsSL https://download.echosec.top/heyhy.py) install
    

    也可以直接指定域名参数「一步到胃」:

    python3 <(curl -fsSL https://download.echosec.top/heyhy.py) install -d YOUR_DOMAIN
    

    特殊地,如果你打算在无法直连 GitHub 的服务器上部署 hy2 server,可以使用 --enable-cdn 参数:

    python3 <(curl -fsSL https://download.echosec.top/heyhy.py) install --enable-cdn -d YOUR_DOMAIN
    
  2. 移除负载

    这个指令会移除与 hysteria2 server 有关的一切依赖。需要注意的是,你必须指明与 hysteria2 server 绑定的域名才能安全卸载证书。

    python3 <(curl -fsSL https://download.echosec.top/heyhy.py) remove -d YOUR_DOMAIN
    

What's next

# heyhy
usage: 49 [-h] {install,remove,check,status,log,start,stop,restart,update,edit} ...

Hysteria-v2 Scaffold (Python3.8+) T:2025-03-15

positional arguments:
  {install,remove,check,status,log,start,stop,restart,update,edit}
    install             Automatically install and run
    remove              Uninstall services and associated caches
    check               Print client configuration
    status              Check hysteria2 service status
    log                 Check hysteria2 service syslog
    start               Start hysteria2 service
    stop                Stop hysteria2 service
    restart             Restart hysteria2 service
    update              Keep the configuration information unchanged, only update the service
    edit                Edit the server configuration

options:
  -h, --help            show this help message and exit

默认情况下会打印所有客户端配置,你可以通过可选的 output-filter 过滤指令仅输出 NekoRay / clash-meta / sing-box 的客户端出站配置:

Client Command
NekoRay python3 <(curl -fsSL https://download.echosec.top/heyhy.py) install --neko
Clash.Meta python3 <(curl -fsSL https://download.echosec.top/heyhy.py) install --clash
sing-box python3 <(curl -fsSL https://download.echosec.top/heyhy.py) install --singbox

你可以配合参数 -d DOMAIN 实现「一键输出」的效果,如:

python3 <(curl -fsSL https://download.echosec.top/heyhy.py) install --singbox -d YOUR_DOMAIN

首次安装后,你还可以使用别名缩写 heyhy 更新(覆盖)双端配置,如:

heyhy install --singbox -d YOUR_DOMAIN

所有出站配置已在 install 指令后生成,output-filter 仅影响输出到屏幕的信息,你可以用 check 命令去查看它们,如:

heyhy check

或搭配 output-filter 使用,效果和上文的一致:

heyhy check --neko

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

heyhy-0.1.2.tar.gz (61.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

heyhy-0.1.2-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

Details for the file heyhy-0.1.2.tar.gz.

File metadata

  • Download URL: heyhy-0.1.2.tar.gz
  • Upload date:
  • Size: 61.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.12

File hashes

Hashes for heyhy-0.1.2.tar.gz
Algorithm Hash digest
SHA256 0678009e0ec9ef2e6725532a77be848a30bab85ac10c4c1194dadc8d17227899
MD5 409603de39a90467db91b87f0f3a8319
BLAKE2b-256 f0cfb6d583de0c520cedf0e11d8e7af7e596ea44c95eb257ce44ac1d659698eb

See more details on using hashes here.

File details

Details for the file heyhy-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: heyhy-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 19.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.12

File hashes

Hashes for heyhy-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 32e2538debad31ab15f5b64741b6d16362a1aad7250da40da66b9cc5f64a5265
MD5 01858e6b87caa76c0951e9c005ae9325
BLAKE2b-256 0c3a4a374432492ec8123c3a3dece811fd8c201b1732b53b03e62ffad297e370

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page