feat: web UI + SQLite storage + FastAPI backend
Some checks failed
Build & Push Docker Image / build (push) Failing after 6s

- app.py: unified app – ntfy subscriber runs as background thread,
  FastAPI serves REST API (/api/messages) and static frontend
- static/index.html: terminal-style notification table with
  sortable columns, drag & drop column reorder, column visibility
  toggle (localStorage), text search, forwarded-only filter,
  auto-refresh every 30s
- All ntfy fields stored: id, received_at, ntfy_time, topic,
  title, message, priority, tags, forwarded
- /data volume for persistent SQLite DB
- Port 8000 exposed

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
LogWatch
2026-03-23 17:02:11 +01:00
parent 42534e0894
commit 02968c6288
7 changed files with 956 additions and 4 deletions

View File

@@ -5,12 +5,18 @@ WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY filter.py .
COPY app.py filter.py ./
COPY static/ static/
VOLUME ["/data"]
ENV SOURCE_URL=http://192.168.123.77/albert
ENV TARGET_URL=
ENV TARGET_TOKEN=
ENV LOG_LEVEL=INFO
ENV RECONNECT_DELAY=10
ENV DB_PATH=/data/logwatch.db
CMD ["python", "-u", "filter.py"]
EXPOSE 8000
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]