mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-02-23 17:17:41 +00:00
* feat: add HOST environment variable for configurable bind address Allow users to specify which host/IP address the servers should bind to via the HOST environment variable. Defaults to 0.0.0.0 (all interfaces) to maintain backward compatibility. This enables users to restrict the server to localhost only (127.0.0.1) for security purposes or bind to a specific network interface. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * fix: use correct proxy host when HOST is set to specific interface When HOST is set to a specific interface (e.g., 192.168.1.100), the Vite proxy needs to connect to that same host, not localhost. This fix: - Adds proxyHost logic that uses localhost when HOST=0.0.0.0, otherwise uses the specific HOST value for proxy targets - Adds DISPLAY_HOST to show a user-friendly URL in console output (0.0.0.0 isn't a connectable address) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> --------- Co-authored-by: Michael Fork <mjfork@users.noreply.github.com> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com> Co-authored-by: Haileyesus <118998054+blackmammoth@users.noreply.github.com>
46 lines
1.5 KiB
Plaintext
Executable File
46 lines
1.5 KiB
Plaintext
Executable File
# CloudCLI UI Environment Configuration
|
|
# Only includes variables that are actually used in the code
|
|
#
|
|
# TIP: Run 'cloudcli status' to see where this file should be located
|
|
# and to view your current configuration.
|
|
#
|
|
# Available CLI commands:
|
|
# claude-code-ui - Start the server (default)
|
|
# cloudcli start - Start the server
|
|
# cloudcli status - Show configuration and data locations
|
|
# cloudcli help - Show help information
|
|
# cloudcli version - Show version information
|
|
|
|
# =============================================================================
|
|
# SERVER CONFIGURATION
|
|
# =============================================================================
|
|
|
|
# Backend server port (Express API + WebSocket server)
|
|
#API server
|
|
PORT=3001
|
|
#Frontend port
|
|
VITE_PORT=5173
|
|
|
|
# Host/IP to bind servers to (default: 0.0.0.0 for all interfaces)
|
|
# Use 127.0.0.1 to restrict to localhost only
|
|
HOST=0.0.0.0
|
|
|
|
# Uncomment the following line if you have a custom claude cli path other than the default "claude"
|
|
# CLAUDE_CLI_PATH=claude
|
|
|
|
# =============================================================================
|
|
# DATABASE CONFIGURATION
|
|
# =============================================================================
|
|
|
|
# Path to the authentication database file
|
|
# This is where user credentials, API keys, and tokens are stored.
|
|
#
|
|
# To use a custom location:
|
|
# DATABASE_PATH=/path/to/your/custom/auth.db
|
|
#
|
|
# Claude Code context window size (maximum tokens per session)
|
|
VITE_CONTEXT_WINDOW=160000
|
|
CONTEXT_WINDOW=160000
|
|
|
|
# VITE_IS_PLATFORM=false
|