Add scyllaDB credentials
This commit is contained in:
parent
b7f9cf132f
commit
4b6a436753
3 changed files with 11 additions and 0 deletions
|
@ -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 └─────────────────────────────────────
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -34,6 +34,7 @@ function newClient(): Client | null {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
requestTracker,
|
requestTracker,
|
||||||
|
credentials: config.scylla.credentials,
|
||||||
});
|
});
|
||||||
|
|
||||||
const logger = new Logger("scylla");
|
const logger = new Logger("scylla");
|
||||||
|
|
Loading…
Reference in a new issue