Coder Social home page Coder Social logo

shadowsocks-heroku's Introduction

shadowsocks-heroku

Deploy shadowsocks server to Heroku.

Usage

Environment variable

Variable Default value Description
SS_PASSWORD freedom_is_not_free shadowsocks password
SS_ENCRYPT chacha20-ietf-poly1305 shadowsocks encrypt method
SS_PLUGIN xray-plugin shadowsocks sip003 plugin
SS_PLUGIN_OPTS server;fast-open;path=/ws shadowsocks sip003 plugin options

One-click deployment

Heroku Deploy

Manually deployment

# deploy
git clone https://github.com/pexcn/shadowsocks-heroku.git && cd shadowsocks-heroku
heroku login
heroku git:remote -a <app_name>
heroku stack:set container
git push heroku master

# check
heroku ps
heroku logs

Tips

#
# simple-obfs -> 80
#
# server
obfs=http;fast-open
# client
obfs=http;obfs-host=appname.herokuapp.com;fast-open

#
# v2ray-plugin/xray-plugin -> 443
#
# server
server;fast-open;path=/ws
# client
tls;fast-open;host=appname.herokuapp.com;path=/ws?ed=2048;mux=5;loglevel=none

#
# cloudflare workers code snippet
#
addEventListener(
  "fetch", event => {
    let url = new URL(event.request.url);
    url.hostname = "appname.herokuapp.com";
    let request = new Request(url, event.request);
    event.respondWith(
      fetch(request)
    )
  }
)

Credits

shadowsocks-heroku's People

Contributors

pexcn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

shadowsocks-heroku's Issues

TODO

  • use others dockerfiles to enable bbr and tcp fast open ?
  • add obfs plugin ?
  • remove -d 8.8.8.8 params (default is better?) ?
  • add option for set dns [?] / add two dns

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.