Skip to content

Commit

Permalink
clients_database is directory or URL (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
jschlyter authored Jan 9, 2025
1 parent 7c37a0d commit 2e99ac9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions evrec/settings.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Annotated

from pydantic import BaseModel, DirectoryPath, Field, UrlConstraints
from pydantic import BaseModel, Field, UrlConstraints, DirectoryPath, AnyHttpUrl
from pydantic_core import Url
from pydantic_settings import BaseSettings, PydanticBaseSettingsSource, SettingsConfigDict, TomlConfigSettingsSource

Expand All @@ -26,7 +26,7 @@ class RedisSettings(BaseModel):

class Settings(BaseSettings):
mqtt: MqttSettings = Field(default=MqttSettings())
clients_database: DirectoryPath = Field(default="clients")
clients_database: DirectoryPath | AnyHttpUrl = Field(default="clients")
schema_validation: bool = False
key_cache: KeyCacheSettings | None = None

Expand Down

0 comments on commit 2e99ac9

Please sign in to comment.