This is the frontend Dashboard for ICEDTEACTF/CTFeed.
-
Copy
.env.exampleto.envand fill in your values. -
Build the frontend
npm install npm run buildThe build output will be in
dist/. -
Configure backend
Set these backend environment variables:
# example HTTP_FRONTEND_URL=https://bot.example.com HTTP_API_URL=https://api.bot.example.com HTTP_COOKIE_DOMAIN=.bot.example.com -
Serve
dist/with a web serverMake sure SPA fallback is enabled (all routes should return
index.html).
app.example.com {
root * /path/to/CTFeed_frontend/dist
encode zstd gzip
# SPA fallback
try_files {path} /index.html
file_server
}