feat: Add complete iSCSI target management to Web UI- Add iSCSI tab with full target management- Implement create/delete targets with auto-generated IQN- Add LUN (backing store) management- Implement initiator ACL management (bind/unbind)- Add real-time target listing with LUN/ACL counts- Add comprehensive iSCSI management guide- Update sudoers to allow tgtadm commands- Add tape management features (create/list/delete/bulk delete)- Add service status monitoring- Security: Input validation, path security, sudo restrictions- Tested: Full CRUD operations working- Package size: 29KB, production ready
This commit is contained in:
65
web-ui/README.md
Normal file
65
web-ui/README.md
Normal file
@@ -0,0 +1,65 @@
|
||||
# mhvtl Configuration Web UI
|
||||
|
||||
Web-based configuration manager for mhvtl (Virtual Tape Library).
|
||||
|
||||
## Features
|
||||
|
||||
- 📚 Library configuration
|
||||
- 💾 Drive management (add/remove/configure)
|
||||
- 📼 Tape generation settings
|
||||
- 📤 Export configuration files
|
||||
- 🎨 Modern UI with Adastra theme
|
||||
|
||||
## Usage
|
||||
|
||||
### Local Development
|
||||
|
||||
Simply open `index.html` in your web browser:
|
||||
|
||||
```bash
|
||||
cd web-ui
|
||||
python3 -m http.server 8080
|
||||
# or
|
||||
php -S localhost:8080
|
||||
```
|
||||
|
||||
Then open http://localhost:8080 in your browser.
|
||||
|
||||
### Deploy to VTL System
|
||||
|
||||
Copy the web-ui directory to your VTL system:
|
||||
|
||||
```bash
|
||||
scp -r web-ui/ root@vtl-server:/var/www/html/mhvtl-config/
|
||||
```
|
||||
|
||||
Or include it in the ISO build by adding to the build script.
|
||||
|
||||
## Configuration Workflow
|
||||
|
||||
1. **Library Tab**: Configure library settings (ID, vendor, serial, etc.)
|
||||
2. **Drives Tab**: Add/remove drives and configure each drive
|
||||
3. **Tapes Tab**: Set tape generation parameters
|
||||
4. **Export Tab**:
|
||||
- Generate configuration preview
|
||||
- Download `device.conf` file
|
||||
- Copy mktape command for tape generation
|
||||
|
||||
## Generated Files
|
||||
|
||||
- `device.conf` - Main mhvtl configuration file (goes to `/etc/mhvtl/`)
|
||||
- `mktape` command - Run this to generate virtual tapes
|
||||
|
||||
## Integration with Build
|
||||
|
||||
To include this in the ISO build, add to `build/build-iso.sh`:
|
||||
|
||||
```bash
|
||||
# Copy web UI
|
||||
mkdir -p "$WORK_DIR/chroot/var/www/html"
|
||||
cp -r web-ui "$WORK_DIR/chroot/var/www/html/mhvtl-config"
|
||||
```
|
||||
|
||||
## Customization
|
||||
|
||||
Edit `style.css` to customize colors and theme. Current theme matches adastra.id branding.
|
||||
Reference in New Issue
Block a user