GithubHelp home page GithubHelp logo

ecalose / shadowsocks-heroku Goto Github PK

View Code? Open in Web Editor NEW

This project forked from a39584578/shadowsocks-heroku

0.0 0.0 0.0 929 KB

免费使用 Heroku 部署 shadowsocks

License: MIT License

CoffeeScript 100.00%

shadowsocks-heroku's Introduction

Fork 于 shadowsocks-heroku 项目

shadowsocks-heroku

Heroku 是一个支持多种编程语言的云平台即服务,shadowsocks-heroku 则是可部署在 Heroku 平台的ss服务。 和 shadowsocks 不同的是 shadowsocks-heroku 使用的 WebSocket 代替原本的 sockets。

跟着下面的步骤,预计 十分钟后,你就可以 Google 了👻。

如果遇到问题

请下面列表中寻找解决办法,新问题欢迎创建issue进行讨论。

一、准备

1.注册 Heroku 帐号

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/

2.Fork本项目

  1. Fork 本项目到个人账号下

  2. Clone 本项目:git clone https://github.com/521xueweihan/shadowsocks-heroku.git

二、部署

heroku 在创建项目的时候可以,通过关联 GitHub 账号,直接部署 GitHub 账号下的项目。具体步骤如下:

  1. 登陆 Heroku 帐号,后进入 Dashboard ——> Create New App ——> 输入 App Name
  2. 完成上一步后,会跳转到 Deploy 页面,找到 Deployment method 选择 GitHub 关联上自己的 GitHub 帐号。
  3. 关联上 shadowsocks-heroku 项目,如下图所示:
  4. 点击 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

四、启动本地 client:

  1. 进到本项目目录,执行npm install 命令,安装依赖的库(如没有 npm ,请自行安装,npm安装依赖慢
  2. 启动本地 client,node local.js -s 你的app名称.herokuapp.com -l 1080 -m 设置的加密算法 -k 设置的密码 -r 80
  3. 启动成功,命令行显示:server listening at { address: '127.0.0.1', family: 'IPv4', port: 1080 }

五、最后

  1. 下载:Chrome 浏览器 SwitchyOmega 插件,如果下载地址失效,可以在本项目下的 download 下找到 SwitchyOmega.crx

  2. 安装:打开浏览器的扩展程序页面 chrome://extensions 。把SwitchyOmega.crx文件拖放到浏览器扩展程序页面安装。

  3. 配置:SwitchyOmega:代理协议:SOCKS5 代理服务器:127.0.0.1 代理端口:1080,如下图:

  1. 选择代理(刚配置好的)

  1. 现在你就可以访问 Google 了

shadowsocks-heroku's People

Contributors

521xueweihan 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.