← Back to overview

hosting-manager

View on GitHub 1

🚀 Domain & Website Generator

Automatisch hele websites opzetten? Check! DNS, Apache, SSL, MySQL... dit scriptje regelt het allemaal.

Wat doet dit ding?

  • 🌐 Genereert DNS zones voor je domeinen
  • 🔒 Maakt SSL certificaten (self-signed, maar hey)
  • 🗄️ Zet databases op met users en alles
  • 📦 Deployt websites (static, Todo app, of WordPress)
  • 💾 Maakt backups van alles

Snel starten

# Setup
cp .env.example .env
# Pas je .env aan met je settings

# Run (productie = met sudo)
sudo python main.py

Hoe werkt het?

Het script vraagt je stap voor stap wat je wilt:

  1. Domeinnaam? → example (wordt automatisch example.sil)
  2. HTTPS? → y/n
  3. Database? → y/n
  4. WordPress of Todo app? → y/n

Klaar! Je website draait.

Wat heb je nodig?

  • Python 3 + pip install python-dotenv mysql-connector-python cryptography
  • Apache (httpd)
  • BIND (named)
  • MySQL/MariaDB
  • Root access (voor productie)

Backups maken

Als je domein al bestaat, kun je backups maken van:

  • DNS configuratie
  • Website bestanden
  • Database dumps

Backups komen in ./backups/

Project Files

main.py              → Hoofdscript
ZoneGenerator.py     → DNS zones
VhostGenerator.py    → Apache configs
SSLKeyGenerator.py   → SSL certificaten
DBGenerator.py       → Database magic
WebsiteGenerator.py  → Website deployment
BackupGenerator.py   → Backup systeem

Oeps, iets werkt niet?

  • Permission denied? → Run met sudo
  • DNS werkt niet? → Check systemctl status named
  • Apache errors? → Check httpd -t en logs in ./http/log
  • Database connect fails? → Controleer credentials in .env

Made for school 🎓