Skip to main content

Self-hosted E2EE relay for RunMon: stores and forwards ciphertext between agents and phone apps.

Project description

RunMon Relay

RunMon 的自托管中转服务 —— 在 GPU 服务器上的 agent 和手机 App 之间转发端到端加密的密文。

服务器和手机都不需要公网 IP,双方各自出站连到 relay;relay 是唯一有公网地址的一方,且只存密文 —— 被入侵也读不到你的训练日志。

安装运行

pip install runmon-relay
python -m runmon_relay --host 127.0.0.1 --port 8080

转发的是几 KB 级的加密文本 + 心跳,1 核 1G 绰绰有余。

生产部署

建议挂在 nginx 子域名后(需带 WebSocket upgrade)+ certbot 证书。仓库的 relay/deploy/ 提供了 nginx 站点模板和 systemd unit 文件。

注意:如果域名套了 Cloudflare 等 CDN,默认 UA 的 WebSocket 升级请求可能被拦, 客户端需带 User-Agent: runmon/x.y.z(agent 已内置)。

这个包不是入口

日常使用装的是 agent 那个包:

pip install runmon

完整介绍、手机 App 下载和快速开始见 项目主页GitHub 仓库

License

MIT

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

runmon_relay-1.0.1.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

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

runmon_relay-1.0.1-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file runmon_relay-1.0.1.tar.gz.

File metadata

  • Download URL: runmon_relay-1.0.1.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.2

File hashes

Hashes for runmon_relay-1.0.1.tar.gz
Algorithm Hash digest
SHA256 fd078a360cf6965f61267eab0b7fdfc3b6b6b5eb8d89b10ce73c7a0201dd4b07
MD5 9d9e1beed6e1abf3ef7ae1ae8a84d564
BLAKE2b-256 ee3a0737061e21aa51e1868c1ee24e7f58342b0231dbc0dfde5eb07326ff094b

See more details on using hashes here.

File details

Details for the file runmon_relay-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: runmon_relay-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.2

File hashes

Hashes for runmon_relay-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 11c05063223e008f7701f9040dbc6226a2cd3cdde1b293f5f5f252319e1c45f3
MD5 f741aeb2b0e80ca710dd872cd2411ab5
BLAKE2b-256 88cd679e23c2f392356519df932874e8e1e43318d230dce4ce0aed050b35e2fc

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