better-ccflare 2.0.6 → 2.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -0
- package/dist/better-ccflare +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -137,6 +137,41 @@ bun run better-ccflare
|
|
|
137
137
|
|
|
138
138
|
**Note**: You must run `bun run build` at least once to build the dashboard files before starting the server. This can also be done by running `bun run better-ccflare` which includes the build step.
|
|
139
139
|
|
|
140
|
+
### Environment Variables
|
|
141
|
+
|
|
142
|
+
better-ccflare supports several environment variables for configuration:
|
|
143
|
+
|
|
144
|
+
```bash
|
|
145
|
+
# Server Configuration
|
|
146
|
+
PORT=8080 # Server port (default: 8080)
|
|
147
|
+
BETTER_CCFLARE_HOST=0.0.0.0 # Server binding host (default: 0.0.0.0, use 127.0.0.1 for localhost-only)
|
|
148
|
+
CLIENT_ID=your-client-id # OAuth client ID
|
|
149
|
+
BETTER_CCFLARE_CONFIG_PATH=/path/to/config.json # Custom config location
|
|
150
|
+
|
|
151
|
+
# Logging and Debugging
|
|
152
|
+
LOG_LEVEL=INFO # Log level (ERROR, WARN, INFO, DEBUG)
|
|
153
|
+
LOG_FORMAT=json # Log format (json or text)
|
|
154
|
+
better-ccflare_DEBUG=0 # Enable debug mode (1 for enabled)
|
|
155
|
+
|
|
156
|
+
# SSL/TLS Configuration
|
|
157
|
+
SSL_KEY_PATH=/path/to/key.pem # SSL private key path (for HTTPS)
|
|
158
|
+
SSL_CERT_PATH=/path/to/cert.pem # SSL certificate path (for HTTPS)
|
|
159
|
+
|
|
160
|
+
# Load Balancing
|
|
161
|
+
LB_STRATEGY=session # Load balancing strategy (default: session)
|
|
162
|
+
SESSION_DURATION_MS=18000000 # Session duration in milliseconds (5 hours)
|
|
163
|
+
|
|
164
|
+
# Retry Configuration
|
|
165
|
+
RETRY_ATTEMPTS=3 # Number of retry attempts
|
|
166
|
+
RETRY_DELAY_MS=1000 # Initial retry delay in milliseconds
|
|
167
|
+
RETRY_BACKOFF=2 # Retry backoff multiplier
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
**Security Notes**:
|
|
171
|
+
- Use `BETTER_CCFLARE_HOST=127.0.0.1` to bind only to localhost for better security
|
|
172
|
+
- Never commit `.env` files containing sensitive values to version control
|
|
173
|
+
- Use environment-specific configuration for production deployments
|
|
174
|
+
|
|
140
175
|
### Docker (Multi-Platform: linux/amd64, linux/arm64)
|
|
141
176
|
|
|
142
177
|
```bash
|
package/dist/better-ccflare
CHANGED
|
Binary file
|
package/package.json
CHANGED