Skip to content

Commit

Permalink
chore: change default value
Browse files Browse the repository at this point in the history
  • Loading branch information
OldTyT committed Nov 28, 2023
1 parent 9923d88 commit ef090dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ docker compose up -d
| ----------- | ----------- | ----------- |
| `TELEGRAM_BOT_TOKEN` | `""`| Token for telegram bot. |
| `FRIGATE_URL` | `http://localhost:5000` | Internal link in frigate. |
| `FRIGATE_EVENT_LIMIT` | `3`| Limit the number of events returned. |
| `FRIGATE_EVENT_LIMIT` | `20`| Limit the number of events returned. |
| `DEBUG` | `False` | Debug mode. |
| `TELEGRAM_CHAT_ID` | `0` | Telegram chat id. |
| `SLEEP_TIME`| `30` | Sleep time after cycle, in second. |
| `SLEEP_TIME`| `5` | Sleep time after cycle, in second. |
| `FRIGATE_EXTERNAL_URL` | `http://localhost:5000` | External link in frigate(need for generate link in message). |
| `TZ` | `""` | Timezone |
| `REDIS_ADDR` | `localhost:6379` | IP and port redis |
| `REDIS_PASSWORD` | `""` | Redis password |
| `REDIS_DB` | `0` | Redis DB |
| `REDIS_PROTOCOL` | `3` | Redis protocol |
| `REDIS_TTL` | `1209600` | Redis TTL for key event(in seconds) |
| `TIME_WAIT_SAVE` | `60` | Wait for fully video event created(in seconds) |
| `TIME_WAIT_SAVE` | `30` | Wait for fully video event created(in seconds) |
2 changes: 1 addition & 1 deletion internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func New() *Config {
RedisDB: getEnvAsInt("REDIS_DB", 0),
RedisProtocol: getEnvAsInt("REDIS_PROTOCOL", 3),
RedisTTL: getEnvAsInt("REDIS_TTL", 1209600), // 7 days
TimeWaitSave: getEnvAsInt("TIME_WAIT_SAVE", 60), // 5 seconds
TimeWaitSave: getEnvAsInt("TIME_WAIT_SAVE", 30),
}
}

Expand Down

0 comments on commit ef090dc

Please sign in to comment.