feat: web UI + SQLite storage + FastAPI backend
Some checks failed
Build & Push Docker Image / build (push) Failing after 6s
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:
10
Dockerfile
10
Dockerfile
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user