Files
open-terminal/open_terminal/env.py
T
2026-02-25 19:56:20 -06:00

17 lines
577 B
Python

import os
API_KEY = os.environ.get("OPEN_TERMINAL_API_KEY", "")
CORS_ALLOWED_ORIGINS = os.environ.get("OPEN_TERMINAL_CORS_ALLOWED_ORIGINS", "*")
LOG_DIR = os.environ.get(
"OPEN_TERMINAL_LOG_DIR",
os.path.join(os.path.expanduser("~"), ".open-terminal", "logs"),
)
# Comma-separated mime type prefixes for binary files that read_file will return
# as raw binary responses (e.g. "image,audio" or "image/png,image/jpeg").
BINARY_FILE_MIME_PREFIXES = [
p.strip()
for p in os.environ.get("OPEN_TERMINAL_BINARY_MIME_PREFIXES", "image").split(",")
if p.strip()
]