Skip to content

Commit

Permalink
Merge branch 'dev' into dist
Browse files Browse the repository at this point in the history
  • Loading branch information
massimocandela committed Jan 4, 2025
2 parents e5991e9 + c0d0ee8 commit cb73a60
Show file tree
Hide file tree
Showing 15 changed files with 811 additions and 1,179 deletions.
2 changes: 2 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ npm run compile

./node_modules/.bin/pkg ./dist/package.json --options "no-warnings,max-old-space-size=4096" --targets node18-macos-x64 --output bin/bgpalerter-macos-x64 --loglevel=error

./node_modules/.bin/pkg ./dist/package.json --options "no-warnings,max-old-space-size=4096" --targets node18-macos-arm64 --output bin/bgpalerter-macos-arm64 --loglevel=error

echo "--> BGPalerter compiled in bin/ (ignore the warnings about files that cannot be resolved)."

rm -rf dist
1 change: 1 addition & 0 deletions docs/friends.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,4 @@ Please, let me know so I can add your company name here.
* Cyberfusion (AS204983)
* EscapeNet (AS7600)
* Productsup GmbH (AS200249)
* QuxLabs (AS203038, AS214503)
12 changes: 6 additions & 6 deletions docs/reports.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,13 @@ To create a bot:

Parameters for this report module:

|Parameter| Description|
|---|---|
|showPaths| Amount of AS_PATHs to report in the alert (0 to disable). |
|botUrl| The Telegram bot URL. Usually `https://api.telegram.org/bot_BOT_ID_/` where `_BOT_ID_` is your both ID. |
|Parameter| Description |
|---|---------------------------------------------------------------------------------------------------------------------------------------------------|
|showPaths| Amount of AS_PATHs to report in the alert (0 to disable). |
|botUrl| The Telegram bot URL. Usually, `https://api.telegram.org/bot_BOT_ID_/sendMessage` where `_BOT_ID_` is your both ID. |
|noProxy| If there is a global proxy configuration (see [here](http-proxy.md)), this parameter if set to true allows the single module to bypass the proxy. |
|chatIds| A dictionary containing chat IDs grouped by user group (key: group, value: chat ID).|
|chatIds.default| The chat ID of the default user group.|
|chatIds| A dictionary containing chat IDs grouped by user group (key: group, value: chat ID). |
|chatIds.default| The chat ID of the default user group. |

## reportPullAPI

Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ switch(params._[0]) {
default: // Run monitor

if (!params.M && os.totalmem() < 4294967296) {
throw new Error("You need 4GB or RAM to run BGPalerter");
throw new Error("You need 4GB of RAM to run BGPalerter");
}

global.DRY_RUN = !!params.t;
Expand Down
Loading

0 comments on commit cb73a60

Please sign in to comment.