Files
EpiSupport-Zammad-Scraper/.env.example
T
leopold.stroblandClaude Opus 4.8 bdcb17285c Watch EPIRent version and archive its download packages
- Poll the public download page for "Aktuelle Version <nr> vom <date>",
  report changes through the normal change feed and notification mail,
  and show the current version as a card on the overview. Runs on its own
  interval (default 30 min); the first run only records a baseline.
- Archive epirentServer.zip / epirentClient.zip per version number so we
  keep a download cache and history: streamed to disk with SHA-256 and
  size, fetched in a background thread so ticket polling is unaffected,
  with a free-space check before downloading (~1.1 GB per version).
- Retention is configurable via EPIRENT_DOWNLOAD_KEEP, where 0 means
  unlimited; a successful archive is reported as a change and by mail.
- New Downloads page listing the archived versions with checksums and
  links to fetch the cached files.
- Notification lines now omit the arrow when there is no previous value
  and drop the "#" for entries without a ticket.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-20 15:12:48 +02:00

59 lines
2.3 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ============================================================
# EPI-Support Konfiguration
# Diese Datei nach ".env" kopieren und ausfüllen.
# Die echte .env NIEMALS ins Git/Repo committen.
# ============================================================
# --- Zammad-Zugang -----------------------------------------
ZAMMAD_URL=https://epi-helpdesk.zammad.com
# Variante A (empfohlen, sobald verfügbar): persönlicher API-Token
# Profil -> Token-Zugriff in Zammad. Einzeln widerrufbar.
# Wenn gesetzt, wird Variante B ignoriert.
ZAMMAD_TOKEN=
# Variante B: Login per Benutzer/Passwort (Session).
# Nötig, solange "API password access" auf der Instanz aus ist.
ZAMMAD_USER=support@vtmediagbr.freshdesk.com
ZAMMAD_PASSWORD=
# --- Abruf --------------------------------------------------
# Intervall des Hintergrund-Abrufs in Sekunden
POLL_INTERVAL_SECONDS=180
# --- EPIRent-Versionsüberwachung ----------------------------
# Liest "Aktuelle Version / NNNNN vom TT.MM.JJJJ" von der Download-Seite und
# meldet Änderungen wie jede andere Änderung (Feed + E-Mail).
EPIRENT_CHECK_ENABLED=true
EPIRENT_URL=https://www.epi.rent/downloads
EPIRENT_CHECK_INTERVAL_SECONDS=1800
# Download-Archiv: sichert die Pakete je Versionsnummer (Verlauf/Cache).
# ACHTUNG: ca. 1,1 GB pro Versionsstand (Server ~923 MB + Client ~218 MB).
EPIRENT_DOWNLOAD_ENABLED=true
EPIRENT_DOWNLOAD_URLS=https://download.epi.rent/latest/epirentServer.zip,https://download.epi.rent/latest/epirentClient.zip
# Wie viele Versionsstände aufbewahrt werden (3 => ca. 3,4 GB).
# 0 = unbegrenzt (nichts wird automatisch gelöscht Plattenplatz im Auge behalten!)
EPIRENT_DOWNLOAD_KEEP=3
# --- Web ----------------------------------------------------
# Pfad-Präfix hinter Apache (srhnweb/episupport)
EPISUPPORT_URL_PREFIX=/episupport
# Port, auf dem gunicorn intern lauscht (Apache proxyt darauf)
EPISUPPORT_PORT=8071
# --- E-Mail-Benachrichtigung (optional) ---------------------
NOTIFY_ENABLED=true
SMTP_HOST=mail.your-server.de
# Port 587 => STARTTLS (SMTP_STARTTLS=true, SMTP_SSL=false)
# Port 465 => SSL/TLS (SMTP_SSL=true)
# Port 25 => STARTTLS (veraltet)
SMTP_PORT=587
SMTP_STARTTLS=true
SMTP_SSL=false
SMTP_USER=episupportportal@urlpoint.de
SMTP_PASSWORD=
SMTP_FROM=episupportportal@urlpoint.de
# Mehrere Empfänger mit Komma trennen
NOTIFY_TO=leopold.strobl@vt-media.de