mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-22 03:04:03 +00:00
3bef45a8d4
Follow-up to #891 fix - also match by name+tokenID to handle the case where the same physical host gets a new IP (DHCP). This ensures: 1. Same hostname + DIFFERENT token = different physical hosts → create separate nodes 2. Same hostname + SAME token = same host with new IP → update existing node Also updates the host URL when an existing node is matched, so IP changes are properly reflected in the saved configuration.
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.