mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 08:53:48 +01:00
refactor: 🔧 allow redis user to be configured
Follow up #10366, 3df3c97deb284ecbf3363b90a45c6501957d1e98
This commit is contained in:
parent
d75d70c529
commit
83089e49d8
@ -60,6 +60,7 @@ redis:
|
|||||||
#pass: example-pass
|
#pass: example-pass
|
||||||
#prefix: example-prefix
|
#prefix: example-prefix
|
||||||
#db: 1
|
#db: 1
|
||||||
|
#user: default
|
||||||
|
|
||||||
# Please configure either MeiliSearch *or* Sonic.
|
# Please configure either MeiliSearch *or* Sonic.
|
||||||
# If both MeiliSearch and Sonic configurations are present, MeiliSearch will take precedence.
|
# If both MeiliSearch and Sonic configurations are present, MeiliSearch will take precedence.
|
||||||
|
@ -153,6 +153,7 @@ redis:
|
|||||||
pass: {{ .Values.redis.auth.password | quote }}
|
pass: {{ .Values.redis.auth.password | quote }}
|
||||||
#prefix: example-prefix
|
#prefix: example-prefix
|
||||||
#db: 1
|
#db: 1
|
||||||
|
#user: default
|
||||||
|
|
||||||
# ┌─────────────────────┐
|
# ┌─────────────────────┐
|
||||||
#───┘ Sonic configuration └─────────────────────────────────────
|
#───┘ Sonic configuration └─────────────────────────────────────
|
||||||
|
@ -23,6 +23,7 @@ export type Source = {
|
|||||||
pass: string;
|
pass: string;
|
||||||
db?: number;
|
db?: number;
|
||||||
prefix?: string;
|
prefix?: string;
|
||||||
|
user?: string;
|
||||||
};
|
};
|
||||||
elasticsearch: {
|
elasticsearch: {
|
||||||
host: string;
|
host: string;
|
||||||
|
@ -5,9 +5,9 @@ export function createConnection() {
|
|||||||
return new Redis({
|
return new Redis({
|
||||||
port: config.redis.port,
|
port: config.redis.port,
|
||||||
host: config.redis.host,
|
host: config.redis.host,
|
||||||
family: config.redis.family == null ? 0 : config.redis.family,
|
family: config.redis.family ?? 0,
|
||||||
password: config.redis.pass,
|
password: config.redis.pass,
|
||||||
username: "default",
|
username: config.redis.user ?? "default",
|
||||||
keyPrefix: `${config.redis.prefix}:`,
|
keyPrefix: `${config.redis.prefix}:`,
|
||||||
db: config.redis.db || 0,
|
db: config.redis.db || 0,
|
||||||
tls: {
|
tls: {
|
||||||
|
Loading…
Reference in New Issue
Block a user