Skip to content

Commit

Permalink
prod mongo replica set
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmwang committed Feb 2, 2025
1 parent 42de6bc commit 3d804d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions apps/backend/src/bootstrap/loaders/apollo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { KeyValueCache } from "@apollo/utils.keyvaluecache";
import { ApolloArmor } from "@escape.tech/graphql-armor";
import { RedisClientType } from "redis";

import { config } from "../../config";
import { buildSchema } from "../graphql/buildSchema";

class RedisCache implements KeyValueCache {
Expand Down Expand Up @@ -60,8 +61,7 @@ export default async (redis: RedisClientType) => {
}),
responseCachePlugin(),
],
// TODO(production): Disable introspection in production
introspection: true,
introspection: config.isDev,
cache: new RedisCache(redis),
});

Expand Down
2 changes: 1 addition & 1 deletion infra/app/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ttl: 24 # in hours
host: berkeleytime.com
port: 80

mongoUri: mongodb://bt-prod-mongo-mongodb.bt.svc.cluster.local:27017/bt # TODO(core): change to replicaset
mongoUri: mongodb://bt-prod-mongo-mongodb-0.bt-prod-mongo-mongodb-headless.bt.svc.cluster.local:27017/bt
redisUri: redis://bt-prod-redis-master.bt.svc.cluster.local:6379
nodeEnv: production

Expand Down

0 comments on commit 3d804d0

Please sign in to comment.