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 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 { 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" } + ] +}