Skip to content

uhhhhhh1/Emerald

 
 

Repository files navigation

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

About

The new revamped Emerald Proxy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 72.3%
  • JavaScript 26.7%
  • Other 1.0%