Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

fcying/IBMYes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

16 Commits

Repository files navigation

fork https://github.com/CCChieh/IBMYes

fork修改内容:

  • Secrets 加入 V2_ID, V2_PATH, ALTER_ID,
    对应vmess id, ws path, alterId
  • 使用actions, 每周自动更新v2ray, 部署到 IBM Cloud Foundray.

配置流程

配置IBM Cloud Fonudray

  • 注册并登录https://cloud.ibm.com/
  • 点击右侧 创建资源
  • 点击Cloud Foundray
  • 创建公共应用程序
  • 填写相关信息: 区域达拉斯(免费). 内存最高256M. 应用名称. 配置资源选Python
  • 应用程序域名 就是 应用名称+域, 比如: ibmyes.us-south.cf.appdomain.cloud
  • 点击右侧 创建

配置 Cloudflare 高速节点中转

这部分不配置也可以直接连 应用程序域名 使用, 就是有点慢.

  • 注册并登录https://www.cloudflare.com/
  • 点击 Workers
  • 点击 创建Worker
  • 在脚本位置加入下面这段, url.hostname修改为对应的 应用程序域名.
addEventListener(
 "fetch",event => {
 let url=new URL(event.request.url);
 url.hostname="ibmyes.us-south.cf.appdomain.cloud";
 let request=new Request(url,event.request);
 event.respondWith(
 fetch(request)
 )
 }
)
  • 点击保存并部署, 这里会给一个网址(比如cloudflare_workers.dev), 这个就是 v2ray 客户端要连的地址.

利用Github Actions 自动部署 IBM Cloud Fonudray

  • 返回 github, 到本项目 https://github.com/fcying/IBMYes
  • 点击右上角 Use this template, 生成一个自己的仓库(设为public,如果要用private,需要修改deploy.sh,提供一个可以下载的config.json连接)
  • 点击自己仓库的 Settings.
  • 点击 Secrets 建立以下几个secret, 不修改默认值的可以不建:
    IBM_ACCOUNT IBM Cloud的登录邮箱和密码, 一行邮箱, 一行密码.
    IBM_APP_NAME IBM应用的名称.
    IBM_MEMORY IBM应用内存大小, 默认值128M.
    V2_ID vmess id, 默认值d007eab8-ac2a-4a7f-287a-f0d50ef08680.
    V2_PATH ws path, 默认值path.
    ALTER_ID alterId, 默认值1.
    VLESS_EN 是否使用vless, 默认值false.
  • 点击项目 Actions, 点击IBM Cloud Deploy, 点击Run workflow, 后续每周会自动部署一次(IBM 10天不用会停).
  • 如果需要其他配置, 可以编辑自己仓库的config/config.json文件.

客户端设置

Clash

下面为对应的vmess部分设置.修改其中的server,uuid,alterId,path就好了.

 - name: "IBM"
 type: vmess
 server: cloudflare_workers.dev
 port: 443
 uuid: V2_ID
 alterId: ALTER_ID
 cipher: none
 udp: true
 tls: true
 network: ws
 ws-path: /V2_PATH

v2rayng

 address: cloudflare_workers.dev
 port: 443
 id: V2_ID
 alterId: ALTER_ID
 security: none
 network: ws
 path: /V2_PATH
 底层传输安全: tls

server address 可以使用 cloudflare.com或者别的CF的比较快的IP,对应的加一个伪装设置就行.

 clash:
 server: cloudflare.com
 ws-headers:
 Host: cloudflare_workers.dev
 v2rayng:
 address: cloudflare.com
 伪装域名: cloudflare_workers.dev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

Languages

AltStyle によって変換されたページ (->オリジナル) /