Add scyllaDB credentials

This commit is contained in:
ThatOneCalculator 2023-09-24 16:08:43 -07:00
parent b7f9cf132f
commit 4b6a436753
No known key found for this signature in database
GPG key ID: 8703CACD01000000
3 changed files with 11 additions and 0 deletions

View file

@ -84,6 +84,12 @@ db:
# # if you want to set this value larger than 100. # # if you want to set this value larger than 100.
# # (default 100, max 5000, min 1) # # (default 100, max 5000, min 1)
# queryLimit: 100 # queryLimit: 100
#
# # Credentials for authentication (leave blank if not needed)
# #credentials:
# # username: username
# # password: password
# ┌─────────────────────┐ # ┌─────────────────────┐
#───┘ Redis configuration └───────────────────────────────────── #───┘ Redis configuration └─────────────────────────────────────

View file

@ -24,6 +24,10 @@ export type Source = {
localDataCentre: string; localDataCentre: string;
sparseTimelineDays?: number; sparseTimelineDays?: number;
queryLimit?: number; queryLimit?: number;
credentials?: {
username: string;
password: string;
}
}; };
redis: { redis: {
host: string; host: string;

View file

@ -34,6 +34,7 @@ function newClient(): Client | null {
}, },
}, },
requestTracker, requestTracker,
credentials: config.scylla.credentials,
}); });
const logger = new Logger("scylla"); const logger = new Logger("scylla");