mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-23 09:30:02 +02:00
allows to use .env file to configure ServiceConfig
This commit is contained in:
parent
7d753b2fc6
commit
838145a778
@ -15,7 +15,7 @@ class ServiceConfig(BaseConfig): # type: ignore[misc]
|
||||
web_port: int = 8001
|
||||
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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user