
Powerful server management panel with automated deployment, monitoring, and enterprise-grade security
Quick Start โข Documentation โข Features โข Deployment
K2Panel is a comprehensive server management solution designed for professional server administration with enterprise-grade features.
|
|
|
|
|
|
|
|
- Fork ุงูู ุดุฑูุน ุนูู Replit
- ุงุถุบุท Run - ูุจุฏุฃ ุชููุงุฆูุงู
- ุงูุชุญ Preview ูููุตูู ููุชุทุจูู
# ุฃู ูุฏููุงู
python3 runserver.py
# 1. Clone ุงูู
ุดุฑูุน
git clone https://github.com/K2Panel/K2Panel.git
cd K2Panel
# 2. ุชุซุจูุช ุงูู
ุชุทูุจุงุช
pip3 install -r requirements.txt
# 3. ุฅุนุฏุงุฏ ุงูุจูุฆุฉ
cp .env.example .env
nano .env # ุนุฏูู ุงูู
ุชุบูุฑุงุช
# 4. ุชุดุบูู
python3 runserver.py
# 5. ููุฅูุชุงุฌ: ุงุณุชุฎุฏู
systemd + Nginx
sudo ./setup_systemd.sh
sudo ./setup_nginx.sh
๐ ุฏููู ุดุงู ู: VPS_DEPLOYMENT_GUIDE.md
Document | Description | When to Use |
---|---|---|
DEPLOYMENT.md | Complete deployment guide | Production setup |
DEPLOYMENT_SECRETS.md | GitHub Secrets setup | CI/CD configuration |
BLUE_GREEN_DEPLOYMENT.md | Zero-downtime deployment | Advanced deployment |
TROUBLESHOOTING.md | Common issues & solutions | When problems occur |
SECURITY_HARDENING_GUIDE.md | Security best practices | Production security |
- MITM Attack Protection - Mandatory host fingerprint verification
- StrictHostKeyChecking - Enforced on all SSH connections
- Automated Testing - Pre-deployment connection validation
VPS_HOST # VPS IP address
VPS_USER # SSH username
VPS_SSH_KEY # SSH private key
VPS_HOST_FINGERPRINT # ๐ SSH fingerprint (REQUIRED for MITM protection)
Get fingerprint:
ssh-keyscan -H YOUR_VPS_IP 2>/dev/null | ssh-keygen -lf - | awk '{print $2}'
# In GitHub Repository:
Actions โ Test VPS Connection โ Run workflow
# Validates:
โ
All GitHub Secrets are configured
โ
SSH connection works
โ
Host fingerprint verified (MITM protection)
โ
Docker installed
โ
Deployment path exists
- Trigger: Push to
main
branch - Workflow: Build โ Test โ Deploy (Blue-Green)
- Rollback: Automatic on failure
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ K2Panel Architecture โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ
โ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โ
โ โ Frontend โ โโโโโโโบ โ Backend โ โ
โ โ (Vite) โ โ (Python) โ โ
โ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โ
โ โ โ โ
โ โผ โผ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ Nginx (Reverse Proxy) โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ โ
โ โโโโโโโโโโโโโดโโโโโโโโโโโโ โ
โ โผ โผ โ
โ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โ
โ โ PostgreSQL โ โ Redis โ โ
โ โ Database โ โ Cache โ โ
โ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โ
โ โ
โ Monitoring: Prometheus + Grafana + Loki โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
- Simple setup for small projects
- Direct deployment to VPS
- Manual rollback if needed
- Zero-downtime deployment
- Automatic health checks
- Instant rollback capability
- Traffic switching with Nginx
- Automated testing
- Multi-environment support
- Slack/Email notifications
- Automated backups
- Backend: Python, Flask
- Frontend: Vite, Modern JavaScript
- Database: PostgreSQL, Redis
- Deployment: Docker, Docker Compose
- CI/CD: GitHub Actions
- Monitoring: Prometheus, Grafana, Loki
- Reverse Proxy: Nginx
- SSL/TLS: Let's Encrypt
- Prometheus - Metrics collection
- Grafana - Visualization dashboards
- Loki - Centralized logging
- Alertmanager - Smart notifications
- Integrations: Slack, Email, PagerDuty
See CONTRIBUTING.md for contribution guidelines.
This project is proprietary. See LICENSE file for details.
- ๐ Documentation
- ๐ Issues
- ๐ฌ Discussions
Feature | Traditional Setup | K2Panel |
---|---|---|
Deployment Time | Hours to days | Minutes โก |
Security Setup | Manual, error-prone | Automated โ |
Monitoring | Separate tools | Built-in ๐ |
Zero Downtime | Complex setup | One command ๐ |
Rollback | Manual, risky | Automatic ๐ |
Documentation | Scattered | Comprehensive ๐ |
Built with โค๏ธ for developers who value automation, security, and reliability
โญ Star this repo if you find it useful!
Made with Python ๐ | Powered by Docker ๐ณ | Secured by Design ๐