koi_net.config.server_config

Classes

ServerConfig(**data)

Server config for full nodes.

class koi_net.config.server_config.ServerConfig(**data)[source]

Bases: BaseModel

Server config for full nodes.

The parameters in this class represent how a server should be hosted, not accessed. For example, a node may host a server at http://127.0.0.1:8000/koi-net, but serve through nginx at https://example.com/koi-net.

Parameters:
  • host (str)

  • port (int)

  • path (str | None)

host: str
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

path: str | None
port: int
property url: str