Skip to content

Commit

Permalink
fix: sentinel master name
Browse files Browse the repository at this point in the history
  • Loading branch information
devthejo committed Mar 5, 2025
1 parent 71fee4f commit 05be37b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .kontinuous/env/preprod/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ app:
MAILER_SMTP_SSL: "False"
NODE_ENV: production
# EMAIL_LOGIN: "True"
REDIS_SENTINEL_MASTER_NAME: "mymaster"
REDIS_SENTINEL_HOSTS: |
[
{ "host": "redis-node-0.redis-headless", "port": 26379 },
Expand Down
1 change: 1 addition & 0 deletions .kontinuous/env/prod/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ app:
{ "host": "redis-node-1.redis-headless", "port": 26379 },
{ "host": "redis-node-2.redis-headless", "port": 26379 }
]
REDIS_SENTINEL_MASTER_NAME: "mymaster"
redirectFrom:
- "egapro.fabrique.social.gouv.fr"
- "index-egapro.travail.gouv.fr"
Expand Down
1 change: 1 addition & 0 deletions packages/app/src/api/core-domain/infra/companies-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ if (process.env.REDIS_SENTINEL_HOSTS) {
} catch (error) {
logger.error({ error }, "Failed to parse REDIS_SENTINEL_HOSTS");
}
redisOptions.name = process.env.REDIS_SENTINEL_MASTER_NAME || "mymaster";
} else {
redisOptions.host = process.env.REDIS_HOST || "localhost";
redisOptions.port = parseInt(process.env.REDIS_PORT || "6379", 10);
Expand Down

0 comments on commit 05be37b

Please sign in to comment.