Giter Club home page Giter Club logo

argo-airport-paas's Introduction

argo-airport-paas

本项目是基于 Argo-X-Container-PaaS 修改而来

  1. 加入了 v2board 的支持,可以直接使用 v2board 的 API 来管理节点。
  2. 加入了随机文件名的支持,可以防止被封号。
  3. 简化部署 For deploy: https://github.com/3Kmfi6HP/paas-deploy 不需要自己编译镜像,直接使用已经编译好的镜像,缩短 paas deploy 的时间。

环境变量说明

Nezha 的端口设置为 443 就会自动加 --tls

ARGO_AUTH      # Argo 项目的认证信息TOKEN
ARGO_DOMAIN    # Argo 访问项目的域名
NEZHA_KEY      # Nezha 的 key
NEZHA_PORT     # Nezha 的服务端口
NEZHA_SERVER   # Nezha 的服务地址
PORT           # 容器内服务的端口 一般设置 3000
TARGET_HOSTNAME_URL # 代理目标的网址 不使用 v2board 设置 http://127.0.0.1:8081
MAX_MEMORY_RESTART # PM2重启时的内存阈值
# 以下为 v2board 相关配置
API_HOST       # v2board API 服务的域名URL
API_KEY        # v2board API 的 access key
CERT_DOMAIN    # v2board 证书的域名
NODE_ID        # v2board 节点 ID

可选择添加

SSH_PUB_KEY # 设置Public Key 用于ssh连接 一般不需要设置 除非你需要ssh连接 ssh-rsa AAAAB3NzaC1yc2EAAA...
TUNNEL_TRANSPORT_PROTOCOL # 设置cloudflared 传输协议 默认为 quic 可选 http2 对于某些网络不稳定的情况可以尝试 http2

使用 ssh 连接容器

在本地连接容器的 2222 端口的 ssh 需要连接对应容器的节点 IP。

ssh -p 2222 [email protected]

也可以使用 vscode 的 ssh 插件连接容器,实现远程开发。

Host 127.0.0.1
  HostName 127.0.0.1
  Port 2222
  User root # 你的容器用户名
  IdentityFile "C:\Users\username\.ssh\id_rsa" # 你的私钥路径

需要在环境变量中设置 SSH_PUB_KEY 为你的公钥 公钥可以在 你的电脑中使用 xshell 生成, 也可以使用以下命令生成

ssh-keygen -t rsa -b 4096 -C "" -f id_rsa

路径一般为 /root/.ssh/id_rsa.pub

查看容器信息

打开浏览器访问 https://argo.example.com/list 即可查看节点信息 注意 请将 argo.example.com 替换为你的容器域名,节点信息里的连接域名已经设置为优选 IP,不需要再另外做修改。

更多信息查看

浏览器访问 https://argo.example.com/info 查看系统信息

访问 https://argo.example.com/env 查看环境变量

访问 https://argo.example.com/listen 查看监听端口

(如果你的容器内服务是监听 3000 端口,那么这里就会显示 3000), 也可以通过环境变量 PORT 来设置监听端口,这里还会显示容器内的网络连接信息,可以用来排查网络问题。 其他信息可以省略...

argo-airport-paas's People

Contributors

3kmfi6hp avatar

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.