forked from ZKStats/mpc-demo-infra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
31 lines (23 loc) · 894 Bytes
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from pydantic import BaseSettings
from pathlib import Path
this_file_path = Path(__file__).parent.resolve()
class Settings(BaseSettings):
# Coordination server settings
coordination_server_url: str = "http://localhost:8005"
notary_server_host: str = "prod-notary.mpcstats.org"
notary_server_port: int = 8003
# mpc-demo-infra/certs
certs_path: str = str(this_file_path.parent.parent / "certs")
# ../../../tlsn
tlsn_project_root: str = str(this_file_path.parent.parent.parent / "tlsn")
print(f"tlsn_project_root: {tlsn_project_root}")
party_web_protocol: str = "http"
party_hosts: list[str] = ["localhost", "localhost", "localhost"]
party_ports: list[int] = [8006, 8007, 8008]
# logging
max_bytes_mb = 20
backup_count = 10
class Config:
env_file = ".env.client_cli"
poll_duration: int = 10
settings = Settings()