Giter VIP home page Giter VIP logo

roxy's Introduction

roxy logo

Deploy Self-Hosted Proxy to unblock websites through Heroku in one click

Contents

Introduction

  • Roxy is a simple self-hosted proxy on Heroku to unblock websites
  • Complex websites which require various domains to function properly will break as they require indiviually written custom rewrite rules
  • Roxy is tested on common websites read piracy such as 1337x.to, nyaa.si, thepiratebay.org etc.
  • Heroku Free dyno auto-sleeps after 20 minutes to prevent that Roxy can keep itself alive but it should be enabled manually through environment variables

Environment Variables

To deploy and use Roxy the following Environment Variables are required:

  • DOMAIN - The domain to proxy through heroku ( Only domain name e.g. example.com)

    • Note:
      • If a websites redirects to different domain then redirected domain should be entered.
      • Example: google.com will redirect to www.google.com then www.google.com should be entered as DOMAIN
  • KEEP_DYNO_ALIVE (Default: false) - Should Roxy keep heroku free dyno alive

  • HEROKU_APP_URL - Full Heroku App URL (required if KEEP_DYNO_ALIVE is true)

(back to top)

One-Click Deploy

  • Click Deploy
  • Enter the environment variables as explained
  • Deploy and Visit the heroku app url

(back to top)

Deploy using Local Machine

  1. Clone the project git clone https://github.com/CoolFool/roxy
  2. Go to the project directory cd Roxy
  3. Install Heroku CLI and Git for your platform
  4. Use the heroku login command to log in to the Heroku CLI:
  5. Create an app on Heroku using heroku create and note the URL Generated
  6. Add the required buildpacks as follows:
  • heroku buildpacks:set heroku/python
  • heroku buildpacks:set https://github.com/CoolFool/heroku-buildpack-nginx.git
  1. Set DOMAIN environment variable using heroku config:set DOMAIN=example.org
  2. Heroku Free Dyno sleeps after 20 minutes.
    If you want to keep the Dyno alive set the following environment values using
    • heroku config:set KEEP_DYNO_ALIVE=true
    • heroku config:set HEROKU_APP_URL=https://example-app-123.herokuapp.com (Set the generated URL as its value)
  3. Now deploy Roxy using git push heroku main
  4. Visit Roxy at the URL generated while creating the app or run heroku open
  5. View Logs for the app using heroku logs --tail

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

Authors

(back to top)

License

MIT

(back to top)

roxy's People

Contributors

coolfool 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.