PortGate

Resources · Product docs · Product doc

Change the dashboard URL on an existing agent

Pass --url on the next install. The script replaces api_url when you give it a new origin.

Check command

python3 /opt/portgate/agent.py --mode server

Copied.

The agent posts to api_url in /opt/portgate/config.json. When the public hostname changes, pass the new origin:

curl -fsSL "https://YOUR-DASHBOARD/downloads/install.sh" | sh -s -- --token YOUR_TOKEN --mode server --url "https://YOUR-DASHBOARD"

A heartbeat that names the old host will fail DNS until this file changes. Confirm with one manual --mode server run before you rely on cron.