mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-01-06 22:03:59 -05:00
Restructuring the Repo to make it clear the difference between classic autogpt and the autogpt platform: * Move the "classic" projects `autogpt`, `forge`, `frontend`, and `benchmark` into a `classic` folder * Also rename `autogpt` to `original_autogpt` for absolute clarity * Rename `rnd/` to `autogpt_platform/` * `rnd/autogpt_builder` -> `autogpt_platform/frontend` * `rnd/autogpt_server` -> `autogpt_platform/backend` * Adjust any paths accordingly
19 lines
364 B
Python
19 lines
364 B
Python
import os
|
|
|
|
from dotenv import load_dotenv
|
|
|
|
load_dotenv()
|
|
|
|
|
|
class Settings:
|
|
JWT_SECRET_KEY: str = os.getenv("SUPABASE_JWT_SECRET", "")
|
|
ENABLE_AUTH: bool = os.getenv("ENABLE_AUTH", "false").lower() == "true"
|
|
JWT_ALGORITHM: str = "HS256"
|
|
|
|
@property
|
|
def is_configured(self) -> bool:
|
|
return bool(self.JWT_SECRET_KEY)
|
|
|
|
|
|
settings = Settings()
|