git clone https://github.com/delusionzz/Emerald
cd and install dependencies
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*/' ,
} ,
]
} ,
npm run build && npm run start
create a file called 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
}
}
git clone https://github.com/delusionzz/Emerald
docker build . -t illusions/emerald
docker run -p 3000:3000 -d illusions/emerald