From 286d3f15d34b7c788d1a0e7662f6d49070150df3 Mon Sep 17 00:00:00 2001 From: Yasen Pramatarov Date: Tue, 3 Sep 2024 00:07:31 +0300 Subject: [PATCH] Updates README --- README.md | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9880674..778ea69 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,13 @@ This project is licensed under the GNU General Public License version 2 (GPL-2.0 ## installation -Clone the git repo. +Clone the git repo. Either run the agent with Goor build it and run the executable. + +Run it (mainly used for tests): + +```bash +go run main.go +``` Build the agent: @@ -26,6 +32,8 @@ go build -o jilo-agent main.go The config file is "jilo-agent.json", in the same folder as the "jilo-agent" binary. +You can run the agent without a config file - then default vales are used. + ## usage Run the agent @@ -34,10 +42,10 @@ Run the agent ./jilo-agent ``` -Send queries to its port (by default 8080, configurable in jilo-agent.json): +Send queries to its port (by default 8081, in order to avoid 80, 8080, 8888; configurable in jilo-agent.json): ```bash -curl -s http://localhost:8080/nginx -curl -s http://localhost:8080/jicofo +curl -s http://localhost:8081/nginx +curl -s http://localhost:8081/jicofo etc... ```