{"id":13775989,"url":"https://github.com/vincentchanx/shadowsocks-over-websocket","last_synced_at":"2026-01-21T19:11:39.905Z","repository":{"id":41559667,"uuid":"87292883","full_name":"VincentChanX/shadowsocks-over-websocket","owner":"VincentChanX","description":"免费使用 Heroku 部署 shadowsocks","archived":false,"fork":false,"pushed_at":"2021-10-18T03:04:01.000Z","size":1843,"stargazers_count":569,"open_issues_count":21,"forks_count":1502,"subscribers_count":29,"default_branch":"master","last_synced_at":"2025-05-08T11:44:41.642Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/VincentChanX.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-05T09:43:30.000Z","updated_at":"2025-04-25T09:50:36.000Z","dependencies_parsed_at":"2022-09-10T03:32:31.164Z","dependency_job_id":null,"html_url":"https://github.com/VincentChanX/shadowsocks-over-websocket","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VincentChanX%2Fshadowsocks-over-websocket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VincentChanX%2Fshadowsocks-over-websocket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VincentChanX%2Fshadowsocks-over-websocket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VincentChanX%2Fshadowsocks-over-websocket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VincentChanX","download_url":"https://codeload.github.com/VincentChanX/shadowsocks-over-websocket/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253540571,"owners_count":21924522,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T17:01:56.674Z","updated_at":"2026-01-21T19:11:39.899Z","avatar_url":"https://github.com/VincentChanX.png","language":"JavaScript","funding_links":[],"categories":["\u003ca id=\"d03d494700077f6a65092985c06bf8e8\"\u003e\u003c/a\u003e工具"],"sub_categories":["\u003ca id=\"cb16466a31a167bb61f39e2a4a85f449\"\u003e\u003c/a\u003eShadowsocks"],"readme":"# shadowsocks-over-websocket\n基于 [shadowsocks](https://zh.wikipedia.org/zh-cn/Shadowsocks) 协议的翻墙工具 , 可部署在 [Heroku](https://www.heroku.com/) 平台上 , 实现免费科学上网\n\n\n## 如何部署在 Heroku 平台上\n\n### 1.准备工作\n* [Heroku](https://signup.heroku.com/) 注册\n* [GitHub](https://github.com/join?source=header-home) 注册\n\n### 2.Fork [本项目](https://github.com/VincentChanX/shadowsocks-over-websocket) 到个人账号下\n![1](./imgs/1.jpg)\n进入 \u003chttps://github.com/VincentChanX/shadowsocks-over-websocket\u003e 页面  ==\u003e  Fork\n\n---\n\n### 3.创建 [Heroku](https://dashboard.heroku.com/new?org=personal-apps) 应用\n![2](./imgs/2.png)\n登陆 Heroku 帐号，进入 [Dashboard](https://dashboard.heroku.com/apps) 页面  ==\u003e Create New App ==\u003e 输入 App Name  ==\u003e  Create App\n\n---\n\n### 4.Heroku 帐号与 Github 帐号关联\n![3](./imgs/3.jpg)\n进入 Deploy 页面 ==\u003e 选择 Deployment Method 为 Github ==\u003e Connect to GitHub\n\n---\n\n### 5.选择要关联的Github项目\n![4](./imgs/4.jpg)\n选择GitHub帐号  ==\u003e 查找shadowsocks-over-websocket ==\u003e Connect\n\n---\n\n### 6.部署 master 分支\n\n![5](./imgs/5.jpg)\n\n---\n\n### 7.配置环境变量\n![6](./imgs/6.png)\nSetting 页面 ==\u003e Reveal Config Vars\n\n需要配置 METHOD(加密方法)，PASSWORD(密码，推荐使用`aes-256-cfb`)，SERVER_ADDRESS(`0.0.0.0`) 三个环境变量，支持以下加密方法:\n\n* rc4\n* rc4-md5\n* table\n* bf-cfb\n* des-cfb\n* rc2-cfb\n* idea-cfb\n* seed-cfb\n* cast5-cfb\n* aes-128-cfb\n* aes-192-cfb\n* aes-256-cfb\n* camellia-256-cfb\n* camellia-192-cfb\n* camellia-128-cfb\n\n---\n\n## 启动客户端：\n\n### 命令行启动:\n1. 安装 [nodejs](https://nodejs.org/en/download/) 和 [git](https://git-scm.com/downloads)\n2. 执行 `git clone https://github.com/VincentChanX/shadowsocks-over-websocket.git` 命令\n1. **进到本项目目录**，执行`npm install` 命令\n2. 执行 `node local.js -s app名称.herokuapp.com -l 1080 -m 设置的加密算法 -k 设置的密码 -p 80` 命令，启动成功\n\n\n## Chrome 浏览器配置\n1. 下载 [Chrome](http://www.google.cn/chrome/browser/desktop/index.html) 浏览器插件 [SwitchyOmega](https://github.com/VincentChanX/shadowsocks-over-websocket/raw/master/extensions/SwitchyOmega.crx)\n\n2. 安装 SwitchyOmega 插件：打开浏览器的扩展程序页面 [chrome://extensions](chrome://extensions)，把SwitchyOmega.crx文件拖放到浏览器扩展程序页面安装\n\n3. 新建情景模式 `local-proxy`，配置 SwitchyOmega ：`代理协议：SOCKS5 代理服务器：127.0.0.1 代理端口：1080`，如下图：\n![7](./imgs/7.png)\n\n4. 配置 `auto switch` 情景模式，添加规则列表网址: \u003chttps://raw.githubusercontent.com/gfwlist/gfwlist/master/gfwlist.txt\u003e 并更新情景模式，规则列表规则处的情景模式选中为上一步创建的 `local-proxy` ，配置如下图:\n![8](./imgs/8.png)\n\n\n5. 选中 `auto switch` 情景模式:\n![9](./imgs/9.png)\n\n6. 现在你就可以科学上网了\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvincentchanx%2Fshadowsocks-over-websocket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvincentchanx%2Fshadowsocks-over-websocket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvincentchanx%2Fshadowsocks-over-websocket/lists"}