Config
eunomia.config.Settings
Bases: BaseSettings
Configuration settings for the Eunomia Server.
This class uses Pydantic's BaseSettings to load and validate
configuration from environment variables and the .env
file.
Attributes:
Name | Type | Description |
---|---|---|
PROJECT_NAME |
str
|
Name of the project. Defaults to "Eunomia Server". |
DEBUG |
bool
|
Flag to enable debug mode. Defaults to False. |
LOCAL_DB_HOST |
str
|
Database connection string. Defaults to "sqlite:///db.sqlite". |
OPA_SERVER_HOST |
str
|
Host address for the Open Policy Agent server. Defaults to "127.0.0.1". |
OPA_SERVER_PORT |
int
|
Port for the Open Policy Agent server. Defaults to 8181. |
OPA_POLICY_FOLDER |
str
|
Path to the folder where the Rego policy files are stored. Required. |