mirror of
https://github.com/ipnet-mesh/meshcore-hub.git
synced 2026-06-28 05:51:36 +02:00
Use API_ADMIN_KEY for web service to enable admin operations
The web admin interface needs write permissions to create, update, move, and delete node tags. Changed to use API_ADMIN_KEY with fallback to API_READ_KEY if admin key is not configured.
This commit is contained in:
+3
-1
@@ -249,7 +249,9 @@ services:
|
||||
environment:
|
||||
- LOG_LEVEL=${LOG_LEVEL:-INFO}
|
||||
- API_BASE_URL=http://api:8000
|
||||
- API_KEY=${API_READ_KEY:-}
|
||||
# Use ADMIN key to allow write operations from admin interface
|
||||
# Falls back to READ key if ADMIN key is not set
|
||||
- API_KEY=${API_ADMIN_KEY:-${API_READ_KEY:-}}
|
||||
- WEB_HOST=0.0.0.0
|
||||
- WEB_PORT=8080
|
||||
- WEB_ADMIN_ENABLED=${WEB_ADMIN_ENABLED:-false}
|
||||
|
||||
Reference in New Issue
Block a user