-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy path.env.example
More file actions
106 lines (78 loc) · 2.82 KB
/
.env.example
File metadata and controls
106 lines (78 loc) · 2.82 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# ===================================
# Connection Note
# ===================================
# After starting the server, you still need to open the following page in a browser
# and establish a browser session connection manually:
# https://gemini.google.com/share/0e87cc62be50
# On that page, manually fill in:
# - Server WS Endpoint (for example: ws://127.0.0.1:7861/ws)
# - Browser Identifier (optional custom tag)
# ===================================
# Server Configuration
# ===================================
# HTTP server port for API and web console
PORT=7861
# Deprecated: browser sessions no longer use a separate WS_PORT.
# Kept here only for migration reference and ignored by the server.
# WS_PORT=9997
# Listening host address for both HTTP and WebSocket services
HOST=0.0.0.0
# ===================================
# Authentication Configuration
# ===================================
# Web console username (optional)
# If both username and password are set, both are required to log in.
WEB_CONSOLE_USERNAME=
# Web console password (optional)
# If only password is set, the login page asks for password only.
# If neither is set, the system falls back to API_KEYS for console login.
WEB_CONSOLE_PASSWORD=
# API keys for client requests (comma-separated)
# Example: your-api-key-1,your-api-key-2
# If not set, default key "123456" will be used.
API_KEYS=
# ===================================
# Security Configuration
# ===================================
# Enable secure cookies (HTTPS only)
SECURE_COOKIES=false
# Maximum failed login attempts allowed within the time window
# Set to 0 to disable rate limiting.
RATE_LIMIT_MAX_ATTEMPTS=5
# Time window for rate limiting in minutes
RATE_LIMIT_WINDOW_MINUTES=15
# ===================================
# UI Configuration
# ===================================
# Custom favicon URL for the web console
# Supports ICO, PNG, SVG, etc.
ICON_URL=
# Enable release update check in the console
CHECK_UPDATE=true
# ===================================
# Logging Configuration
# ===================================
# Supported values: INFO, DEBUG
LOG_LEVEL=INFO
# Example: Asia/Shanghai, America/New_York
# Leave empty to use the system time zone.
TZ=
# ===================================
# Proxy Configuration
# ===================================
# Session selection strategy: round or random
ROUND=round
# Automatically disable a browser session after this many accumulated errors (set to 0 to never disable)
SESSION_ERROR_THRESHOLD=3
# Streaming mode: fake or real
STREAMING_MODE=fake
# Maximum retries for a failed request
MAX_RETRIES=3
# Delay between retries in milliseconds
RETRY_DELAY=2000
# Force-enable thinking mode for all requests
FORCE_THINKING=false
# Force-enable web search for all requests
FORCE_WEB_SEARCH=false
# Force-enable URL context for all requests
FORCE_URL_CONTEXT=false