Bind Telebit management to localhost

This commit is contained in:
Elias Renman
2026-06-25 15:06:36 +02:00
parent d02ad13f73
commit fe84f27b50
2 changed files with 4 additions and 5 deletions

View File

@@ -10,8 +10,8 @@ DOMAIN=devices.example.com
# Public hostname clients use for the websocket tunnel.
TUNNEL_DOMAIN=tunnel.example.com
# Public hostname for the management API.
MGMT_DOMAIN=mgmt.devices.example.com
# Loopback-only host port for the management API.
MGMT_PORT=6468
# Shared JWT secret for relay and management. Use at least 16 random chars.
SECRET=change-me-to-a-long-random-secret

View File

@@ -14,7 +14,6 @@ services:
SECRET: ${SECRET:?set SECRET in .env}
API_HOSTNAME: ${TUNNEL_DOMAIN:?set TUNNEL_DOMAIN in .env}
LISTEN: :8085
LOCALS: https:${MGMT_DOMAIN:?set MGMT_DOMAIN in .env}:6468
AUTH_URL: http://mgmt:6468/api
ACME_RELAY_URL: http://mgmt:6468/api/acme-relay
VERBOSE: ${VERBOSE:-true}
@@ -36,8 +35,8 @@ services:
TUNNEL_DOMAIN: ${TUNNEL_DOMAIN:?set TUNNEL_DOMAIN in .env}
DB_URL: postgres://postgres:${POSTGRES_PASSWORD:?set POSTGRES_PASSWORD in .env}@postgres:5432/postgres?sslmode=disable
LISTEN: 0.0.0.0:6468
expose:
- "6468"
ports:
- "127.0.0.1:${MGMT_PORT:-6468}:6468"
postgres:
image: postgres:16-alpine