Skip to content

Commit 4838b1e

Browse files
jonasnobileclaude
andcommitted
fix(cli): respect DOTAZ_HOST and DOTAZ_PORT environment variables
The CLI hardcoded defaults and unconditionally overwrote env vars, causing the Docker image to bind to localhost instead of 0.0.0.0. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f01e7dd commit 4838b1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cli/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ const KEY_NAME = 'encryption-key'
1111

1212
const args = process.argv.slice(2)
1313

14-
let port = 6401
15-
let host = 'localhost'
14+
let port = Number(process.env.DOTAZ_PORT) || 6401
15+
let host = process.env.DOTAZ_HOST || 'localhost'
1616

1717
for (let i = 0; i < args.length; i++) {
1818
const arg = args[i]

0 commit comments

Comments
 (0)