Bind Telebit management to localhost
This commit is contained in:
@@ -10,8 +10,8 @@ DOMAIN=devices.example.com
|
|||||||
# Public hostname clients use for the websocket tunnel.
|
# Public hostname clients use for the websocket tunnel.
|
||||||
TUNNEL_DOMAIN=tunnel.example.com
|
TUNNEL_DOMAIN=tunnel.example.com
|
||||||
|
|
||||||
# Public hostname for the management API.
|
# Loopback-only host port for the management API.
|
||||||
MGMT_DOMAIN=mgmt.devices.example.com
|
MGMT_PORT=6468
|
||||||
|
|
||||||
# Shared JWT secret for relay and management. Use at least 16 random chars.
|
# Shared JWT secret for relay and management. Use at least 16 random chars.
|
||||||
SECRET=change-me-to-a-long-random-secret
|
SECRET=change-me-to-a-long-random-secret
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ services:
|
|||||||
SECRET: ${SECRET:?set SECRET in .env}
|
SECRET: ${SECRET:?set SECRET in .env}
|
||||||
API_HOSTNAME: ${TUNNEL_DOMAIN:?set TUNNEL_DOMAIN in .env}
|
API_HOSTNAME: ${TUNNEL_DOMAIN:?set TUNNEL_DOMAIN in .env}
|
||||||
LISTEN: :8085
|
LISTEN: :8085
|
||||||
LOCALS: https:${MGMT_DOMAIN:?set MGMT_DOMAIN in .env}:6468
|
|
||||||
AUTH_URL: http://mgmt:6468/api
|
AUTH_URL: http://mgmt:6468/api
|
||||||
ACME_RELAY_URL: http://mgmt:6468/api/acme-relay
|
ACME_RELAY_URL: http://mgmt:6468/api/acme-relay
|
||||||
VERBOSE: ${VERBOSE:-true}
|
VERBOSE: ${VERBOSE:-true}
|
||||||
@@ -36,8 +35,8 @@ services:
|
|||||||
TUNNEL_DOMAIN: ${TUNNEL_DOMAIN:?set TUNNEL_DOMAIN in .env}
|
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
|
DB_URL: postgres://postgres:${POSTGRES_PASSWORD:?set POSTGRES_PASSWORD in .env}@postgres:5432/postgres?sslmode=disable
|
||||||
LISTEN: 0.0.0.0:6468
|
LISTEN: 0.0.0.0:6468
|
||||||
expose:
|
ports:
|
||||||
- "6468"
|
- "127.0.0.1:${MGMT_PORT:-6468}:6468"
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:16-alpine
|
image: postgres:16-alpine
|
||||||
|
|||||||
Reference in New Issue
Block a user