the last
This commit is contained in:
@@ -17,7 +17,7 @@ def _default_allowed_download_hosts(base_url: str) -> list[str]:
|
||||
parsed = urlparse(base_url)
|
||||
if parsed.hostname:
|
||||
return [parsed.hostname]
|
||||
return ["robot.package"]
|
||||
return ["package.pnkr.cloud"]
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
@@ -49,7 +49,7 @@ def _bool(name: str, default: bool) -> bool:
|
||||
|
||||
@lru_cache(maxsize=1)
|
||||
def get_settings() -> Settings:
|
||||
robot_package_base_url = os.getenv("ROBOT_PACKAGE_BASE_URL", "https://robot.package").rstrip("/")
|
||||
robot_package_base_url = os.getenv("ROBOT_PACKAGE_BASE_URL", "https://package.pnkr.cloud").rstrip("/")
|
||||
return Settings(
|
||||
agent_version=os.getenv("AGENT_VERSION", "1.0.0"),
|
||||
host=os.getenv("AGENT_HOST", "127.0.0.1"),
|
||||
@@ -57,7 +57,7 @@ def get_settings() -> Settings:
|
||||
robot_package_base_url=robot_package_base_url,
|
||||
allowed_origins=_csv(
|
||||
os.getenv("ALLOWED_ORIGINS"),
|
||||
["https://robot.installer", "http://localhost:3000", "http://localhost:5173"],
|
||||
["https://app.pnkr.cloud", "https://package.pnkr.cloud", "http://localhost:3000", "http://localhost:5173"],
|
||||
),
|
||||
allowed_download_hosts=_csv(
|
||||
os.getenv("ALLOWED_DOWNLOAD_HOSTS"),
|
||||
|
||||
Reference in New Issue
Block a user