CHANGE unit of MAX_FILE_SIZE from byte to megabyte
This commit is contained in:
parent
072409b3b4
commit
a982722d50
2 changed files with 2 additions and 2 deletions
|
@ -54,7 +54,7 @@ The following environment variables can be configured:
|
||||||
|----------|---------|-------------|
|
|----------|---------|-------------|
|
||||||
| `USE_VALKEY` | `false` | Enable Valkey/Redis caching. Set to `true` to enable |
|
| `USE_VALKEY` | `false` | Enable Valkey/Redis caching. Set to `true` to enable |
|
||||||
| `VALKEY_URL` | `redis://localhost:6379/0` | Redis/Valkey connection URL |
|
| `VALKEY_URL` | `redis://localhost:6379/0` | Redis/Valkey connection URL |
|
||||||
| `MAX_TEXT_SIZE` | `1048576` | Maximum text size in bytes (1MB default) |
|
| `MAX_TEXT_SIZE` | `5` | Maximum text size in MB (5MB default) |
|
||||||
| `MAX_CONNECTIONS_PER_IP` | `10` | Maximum concurrent connections per IP address |
|
| `MAX_CONNECTIONS_PER_IP` | `10` | Maximum concurrent connections per IP address |
|
||||||
| `RETENTION_HOURS` | `48` | How long to retain pads in hours (48 hours default) |
|
| `RETENTION_HOURS` | `48` | How long to retain pads in hours (48 hours default) |
|
||||||
|
|
||||||
|
|
2
app.py
2
app.py
|
@ -11,7 +11,7 @@ application = app # alias if you prefer "application"
|
||||||
# Environment variables
|
# Environment variables
|
||||||
USE_VALKEY = os.getenv("USE_VALKEY", "false").lower() == "true"
|
USE_VALKEY = os.getenv("USE_VALKEY", "false").lower() == "true"
|
||||||
VALKEY_URL = os.getenv("VALKEY_URL", "redis://localhost:6379/0")
|
VALKEY_URL = os.getenv("VALKEY_URL", "redis://localhost:6379/0")
|
||||||
MAX_TEXT_SIZE = int(os.getenv("MAX_TEXT_SIZE", "1048576")) # 1MB default
|
MAX_TEXT_SIZE = int(os.getenv("MAX_TEXT_SIZE", "5")) * 1024 * 1024 # 5MB default
|
||||||
MAX_CONNECTIONS_PER_IP = int(os.getenv("MAX_CONNECTIONS_PER_IP", "10"))
|
MAX_CONNECTIONS_PER_IP = int(os.getenv("MAX_CONNECTIONS_PER_IP", "10"))
|
||||||
RETENTION_HOURS = int(os.getenv("RETENTION_HOURS", "48")) # Default 48 hours
|
RETENTION_HOURS = int(os.getenv("RETENTION_HOURS", "48")) # Default 48 hours
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue