Skip to content

Commit

Permalink
Merge pull request #21 from watchdogcloud/dev
Browse files Browse the repository at this point in the history
chore: adds examples
  • Loading branch information
zakhaev26 authored Jul 17, 2024
2 parents b7db6b4 + 6198d79 commit 8abe00a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
config/default.json
config/production.json
# Logs
logs
*.log
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ To configure Terrier, edit the `config/default.json` file. Below are the attribu
| `alerts.cumulative.disk` | The disk usage threshold for cumulative alerts. |
| `alerts.cumulative.durationInMin` | The duration in minutes for cumulative alerts. |

A sample configuration file is present at `config/test.json`

### JWT Options

The `authentication.jwtOptions` configuration allows you to customize the properties of the JWT (JSON Web Token) used for authentication. Here's a detailed explanation of each option:
Expand Down
12 changes: 6 additions & 6 deletions config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@
"passwordField": "code"
}
},
"mongodb": "mongodb+srv://root:root@cluster0.nl9rmmq.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0",
"mongodb": "<MongoDB URI>",
"otpless": {
"clientId": "9180OD8RFAMI1IGNEEA24NU647UEUCD3",
"clientSecret": "1ovbsmy4ienf0877p4kk7x3h4ecljbj2",
"clientId": "<OTPLess ClientId>",
"clientSecret": "<OTPLess Client Secret>",
"expiry": 300,
"otpLength": 6,
"hash": "hehehehe"
"hash": "saltysaswat"
},
"kafkaConf": {
"bootstrap_servers": [
Expand All @@ -67,8 +67,8 @@
"length": 32
},
"smtp": {
"email": "sampagon738@gmail.com",
"password": "jppxywoiaflvneue",
"email": "mysmtp@gmail.com",
"password": "mysmtppass",
"host": "smtp.gmail.com",
"port": 587,
"secure": false
Expand Down
4 changes: 0 additions & 4 deletions config/production.json

This file was deleted.

0 comments on commit 8abe00a

Please sign in to comment.