14 lines
456 B
Python
14 lines
456 B
Python
import os
|
|
from pathlib import Path
|
|
|
|
|
|
class Config:
|
|
"""Default configuration for local and container usage."""
|
|
|
|
SECRET_KEY = os.environ.get("SECRET_KEY", "dev-secret-key-change-me")
|
|
MAX_CONTENT_LENGTH = int(os.environ.get("MAX_CONTENT_LENGTH", 10 * 1024 * 1024))
|
|
PREVIEW_RECORD_LIMIT = int(os.environ.get("PREVIEW_RECORD_LIMIT", 5))
|
|
OUTPUT_DIRECTORY = Path(
|
|
os.environ.get("OUTPUT_DIRECTORY", Path("instance") / "outputs")
|
|
)
|