diff --git a/backend/routers/admin.py b/backend/routers/admin.py index 75050ef..95c3266 100644 --- a/backend/routers/admin.py +++ b/backend/routers/admin.py @@ -670,7 +670,7 @@ async def admin_setup_script( from urllib.parse import quote settings = get_settings() - base_url = str(request.base_url).rstrip("/") + base_url = settings.base_url.rstrip("/") ext = "ps1" if os == "windows" else "sh" download_url = f"{base_url}/admin/api/script/download?domain={quote(domain)}&server_name={quote(server_name)}&os={os}"