Giter Site home page Giter Site logo

emerald-old's Introduction

Emerald Proxy

Instalation

  • Clone repo
git clone https://github.com/delusionzz/Emerald
  • cd and install dependencies
cd Emerald && npm i

Using a reverse proxy for bare ?

  • comment the following line in the next.config.mjs file
    async rewrites() {
        return [
            {
                source: '/bare/',
                destination: 'https://tomp.app/',
            },
            {
                source: '/bare/:path*',
                destination: 'https://tomp.app/:path*/',
            },
        ]
    },
  • Build and Start proxy
npm run build && npm run start

Making your Caddy config

  • create a file called Caddyfile
touch Caddyfile
  • Make the actual config
nano Caddyfile
  • input the following config
YOUR_DOMAIN {
    reverse_proxy localhost:3000
    handle /bare/* {
        # remove this if your bare prefix is /bare/
        uri strip_prefix /bare
        reverse_proxy YOUR_BARE_SERVER
    }
}

Using Docker?

  • Clone repo
git clone https://github.com/delusionzz/Emerald
  • Build image
    docker build . -t illusions/emerald
  • Run image on port 3000
    docker run -p 3000:3000 -d illusions/emerald

emerald-old's People

Contributors

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