mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-11 14:00:29 +00:00
5f5500b2bf
Modern Proxmox LXC containers (cgroup v2 + systemd) don't expose the CTID inside the guest namespace. The auto-detection in DetectLXCCTID() works for older LXC setups and when hostname is numeric, but fails for most production containers where users set custom hostnames. Changes: - Added PULSE_LXC_CTID environment variable override in router.go:490-495 - Graceful fallback: auto-detect first, then check env var, then show placeholder - UI already handles missing CTID by showing "pct exec <ctid>" placeholder This provides a robust solution for thousands of users: - Stock Proxmox LXC: Shows `pct exec <ctid>` placeholder (user substitutes manually) - Custom hostname containers: Can set PULSE_LXC_CTID=171 in compose/systemd - Numeric hostname containers: Auto-detected (backwards compatible) Related: FirstRunSetup.tsx already has graceful fallback (line 336-339)
Internal API Package
This directory contains the API server implementation for Pulse.
Important Note About frontend-modern/
The frontend-modern/ subdirectory that appears here is:
- AUTO-GENERATED during builds
- NOT the source code - just a build artifact
- IN .gitignore - never committed
- REQUIRED BY GO - The embed directive needs it here
Frontend Development Location
👉 Edit frontend files at: /opt/pulse/frontend-modern/src/
Why This Structure?
Go's //go:embed directive has limitations:
- Cannot use
../paths to access parent directories - Cannot follow symbolic links
- Must embed files within the Go module
This is a known Go limitation and our structure works around it.