Skip to content

Commit

Permalink
feat: update documentation to include proxy configuration for agent s…
Browse files Browse the repository at this point in the history
…etup
  • Loading branch information
simlarsen committed Jan 3, 2025
1 parent ef340e5 commit 22e16d5
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions Dashboard/src/Components/Monitor/ServerMonitor/Documentation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,18 @@ const ServerMonitorDocumentation: FunctionComponent<ComponentProps> = (
# Install the agent
curl -s ${HTTP_PROTOCOL}${HOST.toString()}/docs/static/scripts/infrastructure-agent/install.sh | sudo bash
# Configure the agent
sudo oneuptime-infrastructure-agent configure --secret-key=${props.secretKey.toString()} ${
"--oneuptime-url=" + host
}
# Configure the agent (without proxy)
sudo oneuptime-infrastructure-agent configure --secret-key=${props.secretKey.toString()} --oneuptime-url=${host}
# Configure the agent (with proxy - optional)
# If you're using a proxy, you can set the proxy by running the following command
sudo oneuptime-infrastructure-agent configure --proxy-url=http://proxy.example.com:8080 --secret-key=${props.secretKey.toString()} --oneuptime-url=${host}
# To Start
sudo oneuptime-infrastructure-agent start
# To Stop
sudo oneuptime-infrastructure-agent stop
Expand All @@ -56,9 +60,11 @@ sudo oneuptime-infrastructure-agent uninstall
# Extract the zip file, and you should see a file named oneuptime-infrastructure-agent.exe
# Command Line: Configure the agent in cmd (Run as Administrator)
oneuptime-infrastructure-agent configure --secret-key=${props.secretKey.toString()} ${
"--oneuptime-url=" + host
}
oneuptime-infrastructure-agent configure --secret-key=${props.secretKey.toString()} --oneuptime-url=${host}
# Using a proxy (optional)
# If you're using a proxy, you can set the proxy by running the following command
oneuptime-infrastructure-agent configure --proxy-url=http://proxy.example.com:8080 --secret-key=${props.secretKey.toString()} --oneuptime-url=${host}
# To Start
oneuptime-infrastructure-agent start
Expand Down

0 comments on commit 22e16d5

Please sign in to comment.