|
|
53c1f45e02
|
🚀 Add complete client registration system for FARMQ Headscale
## New Features:
- **register-client.sh**: Automated client registration script
- Auto-detects OS (Ubuntu/CentOS/macOS)
- Installs Tailscale automatically
- Registers to https://head.0bin.in with pre-auth key
- Verifies connection and displays status
- **create-preauth-key.sh**: Pre-auth key management script
- Creates users and pre-auth keys with custom expiration
- Supports reusable keys for multiple devices
- Provides ready-to-use registration commands
- Example: `./create-preauth-key.sh pharmacy1 7d`
- **CLIENT_SETUP_GUIDE.md**: Complete installation guide
- Automated and manual installation instructions
- Cross-platform support (Linux/macOS/Windows/Mobile)
- Troubleshooting section
- Key management for admins
## Pharmacy Page Fix:
- Fix machine count display in pharmacy management page
- Update get_all_pharmacies_with_stats() to use actual Headscale Node data
- Show correct online/offline machine counts per pharmacy
- Fixed: "0대" → "2대 online" for proper machine statistics
## Key Benefits:
- **One-line registration**: `sudo ./register-client.sh`
- **Pre-auth keys work once, connect forever** - answers user's question
- **Reusable keys** for multiple devices per pharmacy
- **Cross-platform** support for all major operating systems
Current active keys:
- myuser: fc4f2dc55ee00c5352823d156129b9ce2df4db02f1d76a21
- pharmacy1: 5c15b41ea8b135dbed42455ad1a9a0cf0352b100defd241c (7d validity)
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-09-09 18:23:04 +09:00 |
|