fix: authenticate device config sync like upload client
- send X-Device-Name and X-Api-Key to /api/device-config - require YARIS_DEVICE_NAME alongside shared upload creds - fix server create_device output to match actual Pi env names - document shared upload/config sync credential requirements Co-authored-by: Copilot <[email protected]>
This commit is contained in:
+5
-4
@@ -204,10 +204,11 @@ nano /home/yaris/app/yaris-obd/config/device.json
|
||||
- **`avatar_path`**: Avatar image shown in topbar; must exist in `static/img/` (replace `static/img/yaris.png` with your own image, or point to a different file)
|
||||
|
||||
If you want the remote server to become the source of truth instead, keep the Pi
|
||||
upload credentials in `db/upload_creds.env` (`YARIS_SERVER_URL` + `YARIS_API_KEY`)
|
||||
and enable **Sync with server** in the local Settings page. The same creds file is
|
||||
reused for config sync; when the server pushes new identity values, the running Pi
|
||||
UI hot-reloads them on the next successful sync.
|
||||
upload credentials in `db/upload_creds.env` (`YARIS_SERVER_URL`,
|
||||
`YARIS_DEVICE_NAME`, and `YARIS_API_KEY`) and enable **Sync with server** in the
|
||||
local Settings page. The same creds file is reused for config sync; when the
|
||||
server pushes new identity values, the running Pi UI hot-reloads them on the next
|
||||
successful sync.
|
||||
|
||||
After editing, restart the app:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user