Remove fixed-host and HTTPS-only deployment requirements so the dashboard works at the container IP on HTTP port 5187. Validate browser mutations against the actual request host and retain access keys and CSRF protection. Ignore legacy public-origin settings and make Proxmox setup hostname-free. Update D14 and regression coverage for version 1.2.3. Refs #25
This commit is contained in:
@@ -43,8 +43,8 @@ def domain_name(value):
|
||||
|
||||
def server_url(value):
|
||||
url = urlsplit(value)
|
||||
if url.scheme != "https" or not url.hostname or url.username or url.password or url.path not in ("", "/") or url.query or url.fragment:
|
||||
raise ValueError("Remote server URL must be an HTTPS origin")
|
||||
if url.scheme not in ("http", "https") or not url.hostname or url.username is not None or url.password is not None or url.path not in ("", "/") or url.query or url.fragment:
|
||||
raise ValueError("Server URL must be an HTTP or HTTPS origin")
|
||||
_ = url.port
|
||||
return value.rstrip("/")
|
||||
|
||||
@@ -65,7 +65,7 @@ def parser():
|
||||
p.add_argument("--cores", type=int, default=2)
|
||||
p.add_argument("--disk", type=int, default=20, help="GiB")
|
||||
p.add_argument("--role", choices=("both", "server", "worker"), help="Install default: both")
|
||||
p.add_argument("--domain", help="Dashboard DNS name; required for server/both")
|
||||
p.add_argument("--domain", help="Legacy optional DNS hint; no longer used to restrict access")
|
||||
p.add_argument("--email", help="Expected provider email for both selected providers")
|
||||
p.add_argument("--claude-email")
|
||||
p.add_argument("--codex-email")
|
||||
@@ -104,9 +104,8 @@ def validate(args):
|
||||
if args.template and not TEMPLATE.fullmatch(args.template):
|
||||
raise ValueError("Template must be a Debian 13 standard amd64 template filename")
|
||||
if args.role != "worker":
|
||||
if not args.domain:
|
||||
raise ValueError("Server/both requires the public hostname configured on your existing HTTPS reverse proxy")
|
||||
args.domain = domain_name(args.domain)
|
||||
if args.domain:
|
||||
args.domain = domain_name(args.domain)
|
||||
else:
|
||||
if not args.server_url or not args.worker_key_file:
|
||||
raise ValueError("Worker-only install requires --server-url and --worker-key-file")
|
||||
@@ -221,7 +220,7 @@ def main(argv=None):
|
||||
print("Unprivileged Debian 13 amd64; build NativeAOT inside CT; preserve config, keys, history and CLI profiles.")
|
||||
if args.action == "install":
|
||||
print(f"Root storage={args.storage}; template storage={args.template_storage}; bridge={args.bridge}; IP={args.ip}")
|
||||
print(f"Dashboard={('https://' + args.domain) if args.domain else args.server_url}; backend=HTTP :5187 behind your existing reverse proxy")
|
||||
print("Server=" + args.server_url if role == "worker" else "Dashboard=http://<container-ip>:5187; no hostname or proxy required")
|
||||
return 0
|
||||
execute(args)
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user