Single-node deployment doesn't benefit from S3 abstraction overhead; LocalFileClient keeps the same interface DocumentService depends on, backed by a STORAGE_DIR volume mount instead of a separate Garage service.
14 lines
498 B
Python
14 lines
498 B
Python
import os
|
|
|
|
|
|
class Settings:
|
|
def __init__(self):
|
|
self.storage_dir = os.environ.get("STORAGE_DIR", "/data/documents")
|
|
self.meilisearch_host = os.environ.get("MEILISEARCH_HOST", "http://localhost:7700")
|
|
self.meilisearch_api_key = os.environ.get("MEILISEARCH_API_KEY", "")
|
|
self.meilisearch_index = os.environ.get("MEILISEARCH_INDEX", "documents")
|
|
self.cors_origins = os.environ.get("CORS_ORIGINS", "http://localhost:5173").split(",")
|
|
|
|
|
|
settings = Settings()
|