Giter VIP home page Giter VIP logo

huggingface-argo's Introduction

title emoji colorFrom colorTo sdk pinned license
huggingface Xray argo
🐢
yellow
gray
docker
false
mit

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference

使用方法

下载本仓库到电脑

https://huggingface.co/new-space <--创建新 space

1686287258915

upload files

1686287276276

然后上传 huggingface (一定要上传本仓库所有的文件)dockerfile 文件是必要的

huggingface 的域名

用户名-(space 名空格会转换-).hf.space 例如: abcdefg-image-and-3d-model-creator.hf.space 用户名 abcdefg

space 名 image-and-3d-model-creator

第二种方法查看域名:

鼠标右键点 view frame source

1686297209557

环境变量说明(更多的使用说明)

设置说明在下面链接:

https://github.com/3Kmfi6HP/argo-airport-paas/tree/main#%E7%8E%AF%E5%A2%83%E5%8F%98%E9%87%8F%E8%AF%B4%E6%98%8E

有些不同的地方是:

环境变量 PORT 一定要设置 7860 目前已经在 dockerfies 定义 可以不用设置

cloudflared Argo 也要 7860 端口 才能连接

也可以直接通过 huggingface 的域名连接

如果 nezha 无法连接 请使用 443 端口

当网页显示 Hello World! 说明部署成功

什么都不设置方法

访问 huggingface 域名/list 就可以查看节点 临时 argo tunnel 方法

希望固定域名?

把临时的 argo 域名修改 成 huggingface 域名就能连接

用到的变量

变量名 是否必须 默认值 备注
UUID de04add9-5c68-8bab-950c-08cd5320df18 可在线生成https://www.zxgj.cn/g/uuid 或者用 V2rayN
WSPATH argo 勿以 / 开头,各协议路径为 /WSPATH-协议,如 /argo-vless,/argo-vmess,/argo-trojan,/argo-shadowsocks
PORT 3000 容器默认 listen 0.0.0.0  的端口
NEZHA_SERVER Nezha 的服务地址
NEZHA_PORT Nezha 的服务端口
NEZHA_KEY Nezha 的 key
ARGO_AUTH Argo 项目的认证信息 TOKEN 值
ARGO_DOMAIN Argo 的域名,须与 ARGO_DOMAIN 必需一起填了才能生效
TARGET_HOSTNAME_URL http://127.0.0.1:8081 使用 v2board 时候可以自定义设置
MAX_MEMORY_RESTART 128MB PM2 重启时的内存阈值 限制内存使用
SSH_PUB_KEY 设置 Public Key 用于 ssh 连接 一般不需要设置
除非你需要 ssh 连接 例如  ssh-rsa AAAAB3NzaC1yc2EAAA...
TUNNEL_TRANSPORT_PROTOCOL quic 设置 cloudflared 传输协议
默认为 quic 可选 http2
对于某些网络不稳定的情况可以尝试 http2
接入 v2bord 用到的变量 - -
API_HOST v2board API 服务的域名 URL
格式是https://example.com *必须
API_KEY 在 v2board 获取*必须
CERT_DOMAIN example.com 域名可以顺便填 或者不填
NODE_ID 是 数字 在 v2board 获取*必须

用到的路径 path

命令 说明
<URL>/list 查看节点数据
<URL>/status 查看后台进程 目录权限
<URL>/listen 查看后台监听端口
<URL>/test 测试是否为只读系统
<URL>/ip 查看 IP 网络连接
<URL>/env 查看系统所有环境变量
<URL>/info 查看系统信息

推荐使用 SSH

https://github.com/3Kmfi6HP/argo-airport-paas/tree/main#%E4%BD%BF%E7%94%A8-ssh-%E8%BF%9E%E6%8E%A5%E5%AE%B9%E5%99%A8

连接方法

cloudflared.exe access tcp --hostname huggingface-paas-test-ssh.xxx.xxx --listener 0.0.0.0:2223

设置图

1686287227901

协议 设置为 TCP 或者 SSH.

huggingface-argo's People

Contributors

3kmfi6hp avatar adoredskillet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

huggingface-argo's Issues

cloudflared Argo 设置7860端口 问题

你好,因为进入 cloudflared Argo tunnel(Zero Trust access tunnel)要绑卡,所以进不到 tunnel 的网页设置的窗口,进不了public hostname page,无法完成如下图的设置。
https://user-images.githubusercontent.com/92626977/218253971-60f11bbf-9de9-4082-9e46-12cd2aad79a1.png

试想是否可以在docker文件里把端口写死,比如:

./cloudflared tunnel --url http://localhost:7860

这样是否可行?

参考:https://github.com/fscarmen2/Argo-X-Container-PaaS/blob/eb3bb1071a5eddc96ff966fe1954171203503a5a/files/entrypoint.sh#L417

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.