Files
2026-03-13 14:14:02 +00:00

2.4 KiB

[1.2.1] - 2026-03-13

Fixed

  • Admin GUI now uses direct relative paths for all API fetch calls, ensuring compatibility with reverse proxy setups (Nginx, Caddy, etc.)
  • No port is appended in JavaScript fetch requests, so /api/versions loads correctly from the admin domain.

Changed

  • Updated admin HTML in app.py to remove API_URL variable and use direct relative paths for all API calls.

Changelog

All notable changes to the Update Server project will be documented in this file.

[1.2.0] - 2026-03-13

Added

  • Admin GUI - New web-based administration interface for managing bot versions

    • Available on port 5566 (separate from API)
    • Beautiful, responsive dashboard with add/edit/delete functionality
    • Real-time version list with edit and delete buttons
    • Success/error message feedback
    • Robot emoji (🤖) favicon
  • Dual-server architecture - API and Admin interfaces now run independently

    • API Server on port 5555
    • Admin Server on port 5566
    • Both can be secured separately using reverse proxies
  • CORS support - Cross-origin requests enabled for admin GUI

    • Added Flask-CORS dependency
    • Allows admin GUI (port 5566) to communicate with API (port 5555)

Changed

  • Default ports updated

    • API Server: 5000 → 5555
    • Admin Server: N/A → 5566 (new)
  • Docker configuration

    • Updated Dockerfile to expose both ports
    • Changed CMD from gunicorn to Python for dual-threading support
    • Updated docker-compose.yml with new port mappings

Technical Details

  • Refactored Flask app into two separate instances
  • Implemented threading for concurrent server execution
  • Added save_versions() function for admin API
  • Embedded HTML admin interface with inline CSS and JavaScript
  • Admin API endpoints: /admin/api/add and /admin/api/delete

Documentation

  • Updated README.md with new features and configuration
  • Added Nginx reverse proxy examples for Authentik integration
  • Documented admin GUI usage and API endpoints

Security Notes

  • Admin GUI has no built-in authentication (as designed)
  • Recommended to protect admin port (5566) with reverse proxy authentication (e.g., Authentik)
  • API port (5555) can remain public for bot communication

[1.1.0] - Previous Release

  • Initial release with API-only functionality
  • Bot version tracking and serving
  • Health check endpoint
  • Logging of version check requests