Frontend Configuration Web Panel
Configure the Web Admin Panel appearance and behavior.
Basic Configuration
yaml
web:
enabled: true
port: 3000
host: "127.0.0.1"Web Panel Options
| Option | Type | Default | Description |
|---|---|---|---|
enabled | boolean | true | Enable web panel |
port | number | 3000 | Listen port |
host | string | 127.0.0.1 | Listen address |
title | string | ChatAI | Panel title |
theme | string | auto | Color theme |
Theme Configuration
yaml
web:
theme: auto # auto, light, dark
accentColor: blue # Primary colorAccess Control
yaml
web:
auth:
tokenExpiry: 86400000 # 24 hours
permanentToken: false # Allow permanent tokens
allowedIPs: # IP whitelist
- "127.0.0.1"
- "192.168.1.0/24"SSL/HTTPS
yaml
web:
ssl:
enabled: true
cert: "./ssl/cert.pem"
key: "./ssl/key.pem"Rate Limiting
yaml
web:
rateLimit:
windowMs: 60000 # 1 minute window
maxRequests: 60 # Max requests per windowSession Configuration
yaml
web:
session:
secret: ${SESSION_SECRET}
maxAge: 86400000 # 24 hoursAccessing Panel
Get login link:
txt
#ai管理面板 # Temporary link
#ai管理面板 永久 # Permanent linkExternal Access
To allow external access:
yaml
web:
host: "0.0.0.0" # Listen on all interfacesSecurity
When exposing externally:
- Enable SSL
- Use strong session secret
- Configure IP whitelist
- Use firewall rules
Next Steps
- Basic Config - Core settings
- Proxy - Network configuration