- Clone repo
git clone https://github.com/delusionzz/Emerald
- cd and install dependencies
cd Emerald && npm i
- 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
- 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
}
}
- 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