Loading...
Loading...
Manage and deploy the Algvex website for AItrader. 管理和部署 Algvex 网站。 Use this skill when: - Deploying or updating the Algvex website (部署或更新网站) - Configuring the web frontend or backend (配置前端或后端) - Managing Google OAuth setup (管理 Google OAuth 设置) - Troubleshooting website issues (排查网站问题) - Adding new features to the web interface (添加新功能) - Configuring Caddy reverse proxy (配置 Caddy 反向代理) Keywords: algvex, website, web, frontend, backend, deploy, Next.js, FastAPI, Caddy, 网站, 部署
npx skill4agent add felixwayne0318/aitrader algvex-web Caddy (HTTPS)
algvex.com:443
│
┌───────────┴───────────┐
│ │
Frontend Backend
(Next.js) (FastAPI)
localhost:3000 localhost:8000| Item | Value |
|---|---|
| Domain | algvex.com |
| Server | 139.180.157.152 |
| Frontend | Next.js 14 + TypeScript |
| Backend | FastAPI + Python 3.12 |
| Database | SQLite |
| Auth | Google OAuth |
| Install Path | /home/linuxuser/algvex |
/home/linuxuser/algvex/
├── backend/ # FastAPI backend
│ ├── main.py
│ ├── .env # Configuration
│ └── algvex.db # SQLite database
├── frontend/ # Next.js frontend
│ ├── .next/ # Build output
│ └── pages/ # Page components
└── deploy/ # Deployment configscd /home/linuxuser/nautilus_AItrader/web/deploy
chmod +x setup.sh
./setup.shsudo systemctl restart algvex-backend algvex-frontend caddysudo systemctl status algvex-backend
sudo systemctl status algvex-frontend
sudo systemctl status caddy# Backend logs
sudo journalctl -u algvex-backend -f
# Frontend logs
sudo journalctl -u algvex-frontend -f
# Caddy logs
sudo journalctl -u caddy -f# Required
SECRET_KEY=your-secure-key
GOOGLE_CLIENT_ID=your-client-id.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=your-client-secret
ADMIN_EMAILS=your-email@gmail.com
# AItrader Integration
AITRADER_PATH=/home/linuxuser/nautilus_AItrader
AITRADER_CONFIG_PATH=/home/linuxuser/nautilus_AItrader/configs/base.yaml
AITRADER_SERVICE_NAME=nautilus-traderhttps://algvex.com/api/auth/callback/google.env| Endpoint | Description |
|---|---|
| Trading stats |
| Social links |
| Copy trading links |
| Bot status |
| Endpoint | Description |
|---|---|
| Strategy config |
| Service control |
| Manage links |
/etc/caddy/Caddyfilealgvex.com {
handle /api/* {
reverse_proxy localhost:8000
}
handle {
reverse_proxy localhost:3000
}
}| Issue | Solution |
|---|---|
| HTTPS not working | Check DNS, wait for Let's Encrypt |
| 502 Bad Gateway | Restart backend/frontend services |
| OAuth callback error | Verify redirect URI in Google Console |
| Config not updating | Restart algvex-backend |
| File | Purpose |
|---|---|
| Backend entry point |
| Homepage |
| Admin panel |
| Reverse proxy config |
| Deployment script |