Giter Site home page Giter Site logo

joeykane / forage Goto Github PK

View Code? Open in Web Editor NEW

This project forked from funnycorp/forage

0.0 0.0 0.0 118 KB

A proxy frontend based on Corrosion and Womginx

License: GNU Affero General Public License v3.0

JavaScript 54.15% CSS 4.75% Handlebars 29.00% Pug 12.09%

forage's Introduction

Forage

A proxy frontend based upon the Corrosion and Womginx backends.

Deployment

These instructions assume you have already obtained domains and their respective certificates and configured DNS. They also assume the server is running a Debian-based system (like Ubuntu).

First, install the necessary programs:

curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg > /dev/null
echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee /etc/apt/sources.list.d/yarn.list > /dev/null
curl -fsSL https://deb.nodesource.com/setup_current.x | sudo -E bash -
sudo apt update
sudo apt install -y nodejs nginx yarn build-essential

Then, setup the Forage code:

git clone https://github.com/funnycorp/Forage
cd Forage
yarn
sudo ln -sf $(pwd)/generated-conf/main.conf /etc/nginx/nginx.conf

You may now edit the config.json file if you want to customize the redirects, Womginx sites, and blacklists.

You must modify domains.json however. It is an object, with the key being the domain Forage is being hosted on, and the value being another object. The inner object has a stable property, indicating if the domain is known to work (not hindered by web filters, Safe Browsing, etc.). The cert property denotes the location of the domain's SSL/TLS certificate, and the key property contains the domain's private key for TLS.

Once you edited domains.json accordingly, you can now start Forage using a program like forever or PM2. Once you start Forage, you may start nginx using sudo service nginx start or sudo systemctl start nginx. You must start Forage before nginx on your first run and after any changes in the nginx configuration in the conf/ subdirectory or domains.json. This is due to the configuration files being generated by Forage as it starts up.

Once you set up domains.json and started Forage and nginx in the background, Forage should be up and running on your domains.

License

Because of Forage's dependencies on Womginx and Wombat, it is licensed under the AGPL to comply with their licenses.

forage's People

Contributors

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