From 4b583fe337f5678dc821a7cbe4807306df4bd395 Mon Sep 17 00:00:00 2001 From: Jack Kingsman Date: Mon, 23 Mar 2026 18:36:55 -0700 Subject: [PATCH] Rephrasing and add env vars to docker compose --- docker-compose.yaml | 7 +++++-- frontend/src/components/SecurityWarningModal.tsx | 13 +++++++------ 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index ee79598..4ed71c0 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -18,15 +18,18 @@ services: environment: MESHCORE_DATABASE_PATH: data/meshcore.db # Radio connection -- optional if you map just a single serial device above, as the app will autodetect - # Serial (USB) # MESHCORE_SERIAL_PORT: /dev/ttyUSB0 # MESHCORE_SERIAL_BAUDRATE: 115200 - # TCP # MESHCORE_TCP_HOST: 192.168.1.100 # MESHCORE_TCP_PORT: 4000 + # Security + # MESHCORE_DISABLE_BOTS: "true" + # MESHCORE_BASIC_AUTH_USERNAME: changeme + # MESHCORE_BASIC_AUTH_PASSWORD: changeme + # Logging # MESHCORE_LOG_LEVEL: INFO restart: unless-stopped diff --git a/frontend/src/components/SecurityWarningModal.tsx b/frontend/src/components/SecurityWarningModal.tsx index 0d6f43e..d04fde2 100644 --- a/frontend/src/components/SecurityWarningModal.tsx +++ b/frontend/src/components/SecurityWarningModal.tsx @@ -83,7 +83,7 @@ export function SecurityWarningModal({ health }: SecurityWarningModalProps) { -
+

Without one of those protections, or another access-control layer in front of RemoteTerm, anyone on your local network who can reach this app can run Python code on @@ -95,16 +95,17 @@ export function SecurityWarningModal({ health }: SecurityWarningModalProps) { arbitrary code execution.

- To reduce that risk, either disable bots with{' '} - + To reduce that risk, run the server with environment variables to either disable bots + with{' '} + MESHCORE_DISABLE_BOTS=true {' '} or enable the built-in login with{' '} - + MESHCORE_BASIC_AUTH_USERNAME {' '} - and{' '} - + /{' '} + MESHCORE_BASIC_AUTH_PASSWORD . Another external auth or access-control system is also acceptable.