Files

2.1 KiB

Magisches Hogwarts Escape Adventure (Bootle)

Interaktives Hogwarts Escape Room & Potion Brewing Adventure (FastAPI).

Systemanforderungen

  • Debian 12 / 13 (oder kompatibles Linux)
  • Python 3.13+ mit python3-venv
  • Nginx (Reverse Proxy mit SSL)

1. Installation

# Repository klonen
cd /home/maxi/Projekt
git clone https://gitea.sp13l.de/kobold-ai/bootle.git bootle.waiswuaschd.de
cd bootle.waiswuaschd.de

# Python Virtualenv erstellen und Abh?ngigkeiten installieren
python3 -m venv venv
./venv/bin/pip install --upgrade pip
./venv/bin/pip install -r requirements.txt

2. Umgebungsvariablen (.env)

Erstelle im Projektverzeichnis eine .env Datei:

PORT=8002
SECRET_KEY=hogwarts_magic_bootle_potion_key_2026_escape

3. Systemd Service (/etc/systemd/system/bootle.service)

[Unit]
Description=Magisches Hogwarts Escape Adventure (FastAPI)
After=network.target

[Service]
Type=simple
User=maxi
Group=maxi
WorkingDirectory=/home/maxi/Projekt/bootle.waiswuaschd.de
Environment="PATH=/home/maxi/Projekt/bootle.waiswuaschd.de/venv/bin:/usr/local/bin:/usr/bin:/bin"
ExecStart=/home/maxi/Projekt/bootle.waiswuaschd.de/venv/bin/uvicorn app.main:app --host 127.0.0.1 --port 8002 --workers 1
Restart=always
RestartSec=3

[Install]
WantedBy=multi-user.target

Aktivieren und starten:

sudo systemctl daemon-reload
sudo systemctl enable --now bootle

4. Nginx Reverse Proxy

server {
    listen 80;
    server_name bootle.dev.waiswuaschd.de;
    return 301 https://$host$request_uri;
}

server {
    listen 443 ssl http2;
    server_name bootle.dev.waiswuaschd.de;

    # SSL Zertifikate hier konfigurieren (z. B. via certbot)

    location /static/ {
        alias /home/maxi/Projekt/bootle.waiswuaschd.de/app/static/;
        add_header Cache-Control "no-cache, must-revalidate";
    }

    location / {
        proxy_pass http://127.0.0.1:8002;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}