allows to use .env file to configure ServiceConfig

This commit is contained in:
Mose Müller 2024-02-20 12:54:04 +01:00
parent 7d753b2fc6
commit 838145a778

View File

@ -15,7 +15,7 @@ class ServiceConfig(BaseConfig): # type: ignore[misc]
web_port: int = 8001 web_port: int = 8001
rpc_port: int = 18871 rpc_port: int = 18871
CONFIG_SOURCES = EnvSource(allow_all=True, prefix="SERVICE_") CONFIG_SOURCES = EnvSource(allow_all=True, prefix="SERVICE_", file=".env")
class WebServerConfig(BaseConfig): # type: ignore[misc] class WebServerConfig(BaseConfig): # type: ignore[misc]