From 307ed0c637f2415854babb057dbd2979e5dd1d40 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Thu, 13 Nov 2025 19:43:17 +0100 Subject: [PATCH] Update AppImage --- AppImage/README.md | 103 ++++++++++++-------------- AppImage/scripts/flask_auth_routes.py | 11 ++- 2 files changed, 54 insertions(+), 60 deletions(-) diff --git a/AppImage/README.md b/AppImage/README.md index 03829d0..65c2429 100644 --- a/AppImage/README.md +++ b/AppImage/README.md @@ -2,50 +2,6 @@ A modern, responsive dashboard for monitoring Proxmox VE systems built with Next.js and React. -

- ProxMenux Monitor Logo -

- -## Screenshots - -Get a quick overview of ProxMenux Monitor's main features: - -

- Overview Dashboard -
- System Overview - Monitor CPU, memory, temperature, and uptime in real-time -

- -

- Storage Management -
- Storage Management - Visual representation of disk usage and health -

- -

- Network Monitoring -
- Network Monitoring - Real-time traffic graphs and interface statistics -

- -

- Virtual Machines & LXC -
- VMs & LXC Containers - Comprehensive view with resource usage and controls -

- -

- Hardware Information -
- Hardware Information - Detailed specs for CPU, GPU, and PCIe devices -

- -

- System Logs -
- System Logs - Real-time monitoring with filtering and search -

- --- ## Table of Contents @@ -75,6 +31,52 @@ Get a quick overview of ProxMenux Monitor's main features: The application runs as a standalone AppImage on your Proxmox server and serves a web interface accessible from any device on your network. +

+ ProxMenux Monitor Logo +

+ +## Screenshots + +Get a quick overview of ProxMenux Monitor's main features: + +

+ Overview Dashboard +
+ System Overview - Monitor CPU, memory, temperature, and uptime in real-time +

+ +

+ Storage Management +
+ Storage Management - Visual representation of disk usage and health +

+ +

+ Network Monitoring +
+ Network Monitoring - Real-time traffic graphs and interface statistics +

+ +

+ Virtual Machines & LXC +
+ VMs & LXC Containers - Comprehensive view with resource usage and controls +

+ +

+ Hardware Information +
+ Hardware Information - Detailed specs for CPU, GPU, and PCIe devices +

+ +

+ System Logs +
+ System Logs - Real-time monitoring with filtering and search +

+ +--- + ## Features - **System Overview**: Real-time monitoring of CPU, memory, temperature, and system uptime @@ -683,19 +685,6 @@ entities: --- -## Contributing - -Contributions are welcome! Please feel free to submit issues, feature requests, or pull requests. - -### Development Setup - -1. Clone the repository -2. Install dependencies: `npm install` -3. Run development server: `npm run dev` -4. Build AppImage: `./build_appimage.sh` - ---- - ## License This project is licensed under the **Creative Commons Attribution-NonCommercial 4.0 International License (CC BY-NC 4.0)**. diff --git a/AppImage/scripts/flask_auth_routes.py b/AppImage/scripts/flask_auth_routes.py index 7082c90..32f8bae 100644 --- a/AppImage/scripts/flask_auth_routes.py +++ b/AppImage/scripts/flask_auth_routes.py @@ -231,14 +231,19 @@ def totp_disable(): def generate_api_token(): """Generate a long-lived API token for external integrations (Homepage, Home Assistant, etc.)""" try: + token = request.headers.get('Authorization', '').replace('Bearer ', '') + username = auth_manager.verify_token(token) + + if not username: + return jsonify({"success": False, "message": "Unauthorized. Please log in first."}), 401 + data = request.json - username = data.get('username') password = data.get('password') totp_token = data.get('totp_token') # Optional 2FA token token_name = data.get('token_name', 'API Token') # Optional token description - # Authenticate user first - success, token, requires_totp, message = auth_manager.authenticate(username, password, totp_token) + # Authenticate user with password and optional 2FA + success, _, requires_totp, message = auth_manager.authenticate(username, password, totp_token) if success: # Generate a long-lived token (1 year expiration)