feat(host_agent): use public_base_url helper for install script

This commit is contained in:
2026-04-15 21:16:38 -04:00
parent 9eda04e57b
commit a72aff4cbc
+2 -1
View File
@@ -14,6 +14,7 @@ from roundtable.models.users import UserRole
from sqlalchemy import select, func
from datetime import timedelta
from roundtable.core.settings import public_base_url
from roundtable.models.hosts import Host
from roundtable.models.metrics import PluginMetric
from .models import HostAgentRegistration
@@ -201,7 +202,7 @@ async def install_script():
if host is None:
return _error(401, "invalid_token")
url = request.host_url.rstrip("/")
url = public_base_url(request)
rendered = await render_template(
"install.sh.j2",