-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.env.example
More file actions
69 lines (52 loc) · 1.91 KB
/
.env.example
File metadata and controls
69 lines (52 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Web CLI Environment Configuration
# Copy this file to .env and customize for your deployment
#
# Usage:
# cp .env.example .env
# # Edit .env with your settings
# docker compose up -d
# ===========================================
# Server Configuration
# ===========================================
# Port to listen on
WEBCLI_PORT=7777
# Host to bind to (use 0.0.0.0 for all interfaces)
WEBCLI_HOST=0.0.0.0
# ===========================================
# Database & Encryption
# ===========================================
# Path to SQLite database file
WEBCLI_DATABASE_PATH=/data/web-cli.db
# Path to encryption key file
WEBCLI_ENCRYPTION_KEY_PATH=/data/.encryption_key
# Optional: Provide encryption key directly (base64 encoded, 32 bytes)
# Generate with: openssl rand -base64 32
# IMPORTANT: Backup this key! Data cannot be recovered without it.
# ENCRYPTION_KEY=
# ===========================================
# Authentication (REQUIRED for production)
# ===========================================
# Enable authentication (set to true for production!)
AUTH_ENABLED=false
# HTTP Basic Authentication credentials
AUTH_USERNAME=admin
AUTH_PASSWORD=changeme
# API Token for Bearer authentication (alternative to Basic Auth)
# Generate with: openssl rand -base64 32
# AUTH_API_TOKEN=
# ===========================================
# TLS/HTTPS Configuration
# ===========================================
# Path to TLS certificate file (enables HTTPS)
# WEBCLI_TLS_CERT_PATH=/certs/cert.pem
# Path to TLS private key file
# WEBCLI_TLS_KEY_PATH=/certs/key.pem
# Require HTTPS when authentication is enabled (rejects HTTP requests)
# WEBCLI_REQUIRE_HTTPS=true
# ===========================================
# CORS Configuration
# ===========================================
# Allowed origins for CORS (comma-separated)
# Default: localhost only
# Example: https://web-cli.example.com,https://admin.example.com
# CORS_ALLOWED_ORIGINS=