mirror of
https://github.com/siteboon/claudecodeui.git
synced 2025-12-08 22:59:39 +00:00
* Make database path configurable via DATABASE_PATH environment variable - Add DATABASE_PATH environment variable support in db.js - Automatically create database directory if custom path is provided - Update .env.example with DATABASE_PATH documentation for container deployments - Maintain backward compatibility with default path (server/database/auth.db) Co-authored-by: werdnum <271070+werdnum@users.noreply.github.com> * Add error handling for creating DATABASE_PATH. Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: werdnum <271070+werdnum@users.noreply.github.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: viper151 <simosmik@gmail.com>
30 lines
1.1 KiB
Plaintext
Executable File
30 lines
1.1 KiB
Plaintext
Executable File
# Claude Code UI Environment Configuration
|
|
# Only includes variables that are actually used in the code
|
|
|
|
# =============================================================================
|
|
# SERVER CONFIGURATION
|
|
# =============================================================================
|
|
|
|
# Backend server port (Express API + WebSocket server)
|
|
#API server
|
|
PORT=3001
|
|
#Frontend port
|
|
VITE_PORT=5173
|
|
|
|
# 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 should be set to a persistent volume path when running in containers
|
|
# Default: server/database/auth.db (relative to project root)
|
|
# Example for Docker: /data/auth.db
|
|
# DATABASE_PATH=/data/auth.db
|
|
# Claude Code context window size (maximum tokens per session)
|
|
# Note: VITE_ prefix makes it available to frontend
|
|
VITE_CONTEXT_WINDOW=160000
|
|
CONTEXT_WINDOW=160000
|