feat: prisma schema, groups API, deploy workflow

This commit is contained in:
2026-04-23 21:41:11 +05:00
parent 4c50036172
commit 65cf8ca01f
285 changed files with 24602 additions and 25890 deletions
+9 -9
View File
@@ -1,7 +1,7 @@
#!/bin/bash
# ==========================================
# VPS Setup Script for Nanaxe Server
# VPS Setup Script for XFlow Server
# Run this on your fresh VPS
# ==========================================
@@ -21,7 +21,7 @@ error() { echo -e "${RED}[ERROR]${NC} $1"; }
# ==========================================
# Configuration
# ==========================================
DEPLOY_DIR="/opt/nanaxe-server"
DEPLOY_DIR="/opt/xflow-server"
REPO_URL="" # Will be set interactively
DOMAIN="" # Will be set interactively
@@ -191,9 +191,9 @@ EOF
setup_systemd() {
log "Creating systemd service..."
cat > /etc/systemd/system/nanaxe-server.service << EOF
cat > /etc/systemd/system/xflow-server.service << EOF
[Unit]
Description=Nanaxe Server
Description=XFlow Server
Requires=docker.service
After=docker.service
@@ -210,7 +210,7 @@ WantedBy=multi-user.target
EOF
systemctl daemon-reload
systemctl enable nanaxe-server.service
systemctl enable xflow-server.service
success "Systemd service created"
}
@@ -221,7 +221,7 @@ EOF
interactive_setup() {
echo ""
echo "======================================"
echo "Nanaxe Server VPS Setup"
echo "XFlow Server VPS Setup"
echo "======================================"
echo ""
@@ -269,12 +269,12 @@ main() {
echo " 3. Open Gitea at http://${DOMAIN:-your-server-ip}:3000"
echo " 4. Create admin account and API token"
echo " 5. Add GITEA_TOKEN to .env file"
echo " 6. Restart: systemctl restart nanaxe-server"
echo " 6. Restart: systemctl restart xflow-server"
echo ""
log "Useful commands:"
echo " - View logs: docker compose -f docker-compose.prod.yml logs -f"
echo " - Restart: systemctl restart nanaxe-server"
echo " - Update: cd $DEPLOY_DIR && git pull && systemctl restart nanaxe-server"
echo " - Restart: systemctl restart xflow-server"
echo " - Update: cd $DEPLOY_DIR && git pull && systemctl restart xflow-server"
echo ""
}