From 9b0db66b67ce38b7f5161bd996de7ddb716be13a Mon Sep 17 00:00:00 2001 From: leoalho Date: Thu, 26 Feb 2026 06:57:16 +0000 Subject: [PATCH 1/3] Update config.json.example --- config.json | 7 ------- config.json.example | 7 +++++++ 2 files changed, 7 insertions(+), 7 deletions(-) delete mode 100644 config.json create mode 100644 config.json.example diff --git a/config.json b/config.json deleted file mode 100644 index f9c57f8..0000000 --- a/config.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "interval_seconds": 30, - "discord_webhook": "https://discord.com/api/webhooks/1476280778215264387/CCnXB03_MgwYUUKWQcw2PKFihny8UyDk4knqdPmnS85McjIFdokVW6MlkhBgLcv0yAZv", - "targets": [ - { "name": "OpenIssue", "url": "https://openissue.io" } - ] -} diff --git a/config.json.example b/config.json.example new file mode 100644 index 0000000..be2d822 --- /dev/null +++ b/config.json.example @@ -0,0 +1,7 @@ +{ + "interval_seconds": 30, + "discord_webhook": "", + "targets": [ + { "name": "OpenIssue", "url": "https://openissue.io" } + ] +} -- 2.45.2 From 84aa36273e649c698d13df31e73ab4930e1b9b46 Mon Sep 17 00:00:00 2001 From: leoalho Date: Thu, 26 Feb 2026 06:57:50 +0000 Subject: [PATCH 2/3] Update .gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 97673a2..bb744e2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ uptimetracker uptimetracker.log +config.json \ No newline at end of file -- 2.45.2 From 6da5b5fd8b3fe6434484323d990f723571e34244 Mon Sep 17 00:00:00 2001 From: leoalho Date: Thu, 26 Feb 2026 06:58:59 +0000 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5274943..f93fb43 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ A lightweight HTTP uptime monitor written in Go. Checks a list of URLs at a conf ## Configuration -Edit `config.json`: +Copy `config.json.example` as `config.json` and edit it: ```json { -- 2.45.2