mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-03-28 17:43:05 +01:00
Rephrasing and add env vars to docker compose
This commit is contained in:
@@ -18,15 +18,18 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
MESHCORE_DATABASE_PATH: data/meshcore.db
|
MESHCORE_DATABASE_PATH: data/meshcore.db
|
||||||
# Radio connection -- optional if you map just a single serial device above, as the app will autodetect
|
# Radio connection -- optional if you map just a single serial device above, as the app will autodetect
|
||||||
|
|
||||||
# Serial (USB)
|
# Serial (USB)
|
||||||
# MESHCORE_SERIAL_PORT: /dev/ttyUSB0
|
# MESHCORE_SERIAL_PORT: /dev/ttyUSB0
|
||||||
# MESHCORE_SERIAL_BAUDRATE: 115200
|
# MESHCORE_SERIAL_BAUDRATE: 115200
|
||||||
|
|
||||||
# TCP
|
# TCP
|
||||||
# MESHCORE_TCP_HOST: 192.168.1.100
|
# MESHCORE_TCP_HOST: 192.168.1.100
|
||||||
# MESHCORE_TCP_PORT: 4000
|
# MESHCORE_TCP_PORT: 4000
|
||||||
|
|
||||||
|
# Security
|
||||||
|
# MESHCORE_DISABLE_BOTS: "true"
|
||||||
|
# MESHCORE_BASIC_AUTH_USERNAME: changeme
|
||||||
|
# MESHCORE_BASIC_AUTH_PASSWORD: changeme
|
||||||
|
|
||||||
# Logging
|
# Logging
|
||||||
# MESHCORE_LOG_LEVEL: INFO
|
# MESHCORE_LOG_LEVEL: INFO
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ export function SecurityWarningModal({ health }: SecurityWarningModalProps) {
|
|||||||
</DialogDescription>
|
</DialogDescription>
|
||||||
</DialogHeader>
|
</DialogHeader>
|
||||||
|
|
||||||
<div className="space-y-3 text-sm leading-6 text-muted-foreground">
|
<div className="space-y-3 break-words text-sm leading-6 text-muted-foreground">
|
||||||
<p>
|
<p>
|
||||||
Without one of those protections, or another access-control layer in front of
|
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
|
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.
|
arbitrary code execution.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
To reduce that risk, either disable bots with{' '}
|
To reduce that risk, run the server with environment variables to either disable bots
|
||||||
<code className="rounded bg-muted px-1 py-0.5 text-foreground">
|
with{' '}
|
||||||
|
<code className="break-all rounded bg-muted px-1 py-0.5 text-foreground">
|
||||||
MESHCORE_DISABLE_BOTS=true
|
MESHCORE_DISABLE_BOTS=true
|
||||||
</code>{' '}
|
</code>{' '}
|
||||||
or enable the built-in login with{' '}
|
or enable the built-in login with{' '}
|
||||||
<code className="rounded bg-muted px-1 py-0.5 text-foreground">
|
<code className="break-all rounded bg-muted px-1 py-0.5 text-foreground">
|
||||||
MESHCORE_BASIC_AUTH_USERNAME
|
MESHCORE_BASIC_AUTH_USERNAME
|
||||||
</code>{' '}
|
</code>{' '}
|
||||||
and{' '}
|
/{' '}
|
||||||
<code className="rounded bg-muted px-1 py-0.5 text-foreground">
|
<code className="break-all rounded bg-muted px-1 py-0.5 text-foreground">
|
||||||
MESHCORE_BASIC_AUTH_PASSWORD
|
MESHCORE_BASIC_AUTH_PASSWORD
|
||||||
</code>
|
</code>
|
||||||
. Another external auth or access-control system is also acceptable.
|
. Another external auth or access-control system is also acceptable.
|
||||||
|
|||||||
Reference in New Issue
Block a user