|
@@ -607,11 +607,14 @@ def validate_state(state):
|
|
|
("service_destination", ".config/systemd/user/rigforge-slweb.service"),
|
|
("service_destination", ".config/systemd/user/rigforge-slweb.service"),
|
|
|
("user_service", "rigforge-slweb.service"),
|
|
("user_service", "rigforge-slweb.service"),
|
|
|
("python_path", "/usr/bin/python3"),
|
|
("python_path", "/usr/bin/python3"),
|
|
|
- ("http_host", "127.0.0.1"),
|
|
|
|
|
("http_port", 8080),
|
|
("http_port", 8080),
|
|
|
):
|
|
):
|
|
|
if slweb.get(key) != expected:
|
|
if slweb.get(key) != expected:
|
|
|
errors.append(f"deployment.slweb.{key} must be {expected}")
|
|
errors.append(f"deployment.slweb.{key} must be {expected}")
|
|
|
|
|
+ if slweb.get("http_host") not in ("127.0.0.1", "0.0.0.0"):
|
|
|
|
|
+ errors.append(
|
|
|
|
|
+ "deployment.slweb.http_host must be 127.0.0.1 or 0.0.0.0"
|
|
|
|
|
+ )
|
|
|
|
|
|
|
|
mod_host = deployment.get("mod_host")
|
|
mod_host = deployment.get("mod_host")
|
|
|
if not isinstance(mod_host, dict):
|
|
if not isinstance(mod_host, dict):
|