feat(host_agent): use public_base_url helper for install script
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user