Fork 于 shadowsocks-heroku 项目
Heroku 是一个支持多种编程语言的云平台即服务,shadowsocks-heroku 则是可部署在 Heroku 平台的ss服务。 和 shadowsocks 不同的是 shadowsocks-heroku 使用的 WebSocket 代替原本的 sockets。
跟着下面的步骤,预计 十分钟后,你就可以 Google 了👻。
请下面列表中寻找解决办法,新问题欢迎创建issue进行讨论。
Heroku 提供免费账号,具体限制如下:
- Run apps for free using your monthly pool of free dyno hours
 - Unverified accounts: receive a pool of 550 free dyno hours
 - Verified accounts: receive an additional 450 free dyno hours
 - Dyno hours can be shared across any of your free apps
 - 1 web dyno/1 worker dyno/1 one-off dyno maximum per app
 - 512 MB RAM per dyno
 - Free apps sleep automatically after 30 mins of inactivity to conserve your dyno hours
 - Free apps wake automatically when a web request is received
 - Access to the Heroku Dashboard and Heroku CLI for app management
 - Custom domains for every free app (with verified account)
 - Up to 5 free apps (unverified) or 100 (verified)
 
用作 VPS 是够了,注册地址:https://signup.heroku.com/
heroku 在创建项目的时候可以,通过关联 GitHub 账号,直接部署 GitHub 账号下的项目。具体步骤如下:
- 登陆 Heroku 帐号,后进入 Dashboard ——> Create New App ——> 输入 App Name
 - 完成上一步后,会跳转到 Deploy 页面,找到 Deployment method 选择 GitHub 关联上自己的 GitHub 帐号。
 - 关联上 shadowsocks-heroku 项目,如下图所示:

 - 点击 Deploy Branch,部署成功如下图:

 
Setting 页面 ——> Reveal Config Vars,设置参数如下图:

支持的加密算法类型如下:
- rc4
 - rc4-md5
 - table
 - bf-cfb
 - des-cfb
 - rc2-cfb
 - idea-cfb
 - seed-cfb
 - cast5-cfb
 - aes-128-cfb
 - aes-192-cfb
 - aes-256-cfb
 - camellia-256-cfb
 - camellia-192-cfb
 - camellia-128-cfb
 
- 进到本项目目录,执行
npm install命令,安装依赖的库(如没有 npm ,请自行安装,npm安装依赖慢) - 启动本地 client,
node local.js -s 你的app名称.herokuapp.com -l 1080 -m 设置的加密算法 -k 设置的密码 -r 80 - 启动成功,命令行显示:
server listening at { address: '127.0.0.1', family: 'IPv4', port: 1080 } 
- 
下载:Chrome 浏览器 SwitchyOmega 插件,如果下载地址失效,可以在本项目下的 download 下找到 SwitchyOmega.crx
 - 
安装:打开浏览器的扩展程序页面 chrome://extensions 。把SwitchyOmega.crx文件拖放到浏览器扩展程序页面安装。
 - 
配置:SwitchyOmega:
代理协议:SOCKS5 代理服务器:127.0.0.1 代理端口:1080,如下图: 
- 选择代理(刚配置好的)
 
- 现在你就可以访问 Google 了
 



