You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/docs/getting-started/environment-variables.md
+80-1Lines changed: 80 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -223,6 +223,48 @@ This environment variable is used to configure the host ip of the postgres serve
223
223
224
224
- More information can be found at [this](https://github.com/porsager/postgres?tab=readme-ov-file##environmental-variables) link.
225
225
226
+
### API_REDIS_HOST
227
+
228
+
This environment variable is used to configure the host ip of the redis server for talawa api's redis client to connect with.
229
+
230
+
- More information can be found at [this](https://github.com/redis/redis) link.
231
+
232
+
### API_REDIS_PORT
233
+
234
+
This environment variable is used to configure the host port of the redis server for talawa api's redis client to connect with.
235
+
236
+
- More information can be found at [this](https://github.com/redis/redis) link.
237
+
238
+
### API_REDIS_TEST_HOST
239
+
240
+
This environment variable is used to configure the host ip of the redis server for talawa api's redis client to connect with.
241
+
242
+
- More information can be found at [this](https://github.com/redis/redis) link.
243
+
244
+
### API_GRAPHQL_SCALAR_FIELD_COST
245
+
246
+
This environment variable defines the cost assigned to scalar fields in GraphQL queries. Scalars are basic data types like String, Int, Boolean, etc.
247
+
248
+
### API_GRAPHQL_OBJECT_FIELD_COST
249
+
250
+
This environment variable sets the cost of resolving object fields in a GraphQL query. Object fields return nested data structures instead of primitive values.
251
+
252
+
### API_GRAPHQL_LIST_FIELD_COST
253
+
254
+
This environment variable specifies the cost of retrieving list fields in GraphQL queries. Lists contain multiple items, making them more resource-intensive than scalar fields.
255
+
256
+
### API_GRAPHQL_MUTATION_BASE_COST
257
+
258
+
This environment variable defines the base cost of executing a GraphQL mutation. Mutations typically modify data, making them more expensive than queries.
259
+
260
+
### API_RATE_LIMIT_BUCKET_CAPACITY
261
+
262
+
This environment variable defines the maximum capacity of the leaky bucket used for rate limiting based on GraphQL query cost analysis. The bucket holds tokens that represent available request capacity.
263
+
264
+
### API_RATE_LIMIT_REFILL_RATE
265
+
266
+
This environment variable specifies the number of tokens added to the leaky bucket per second. This determines how quickly users can regain the ability to make GraphQL requests after hitting the rate limit.
267
+
226
268
### CI
227
269
228
270
This environment variable is used to enable or disable certain features in vitest that are supposed to only run in continous integration environments.
@@ -467,12 +509,49 @@ Listed below is a subset of environment variables that are accepted by the `post
467
509
468
510
More information could be found at [this](https://github.com/docker-library/docs/blob/master/postgres/README.md##environment-variables) link.
469
511
512
+
### POSTGRES_MAPPED_HOST_IP
513
+
514
+
This environment variable is used to configure the host ip that can access the host port mapped with the container service port on which postgres listens to at runtime.
515
+
516
+
- More information can be found at [this](https://docs.docker.com/engine/network/##published-ports) link.
517
+
470
518
### POSTGRES_TEST_MAPPED_PORT
471
519
472
520
This environment variable is used to configure the host port to map with the container service port on which postgres test listens to at runtime.
473
521
474
522
- More information can be found at [this](https://docs.docker.com/engine/network/##published-ports) link.
475
523
524
+
## redis (Container)
525
+
526
+
Listed below is a subset of environment variables that are accepted by the `redis` container service.
527
+
528
+
More information could be found at [this](https://github.com/redis/redis) link.
529
+
530
+
### REDIS_MAPPED_HOST_IP
531
+
532
+
This environment variable is used to configure the host ip that can access the host port mapped with the container service port on which redis listens to at runtime.
533
+
534
+
- More information can be found at [this](https://docs.docker.com/engine/network/##published-ports) link.
535
+
536
+
### REDIS_MAPPED_PORT
537
+
538
+
This environment variable is used to configure the host port to map with the container service port on which redis listens to at runtime.
539
+
540
+
- More information can be found at [this](https://docs.docker.com/engine/network/##published-ports) link.
541
+
542
+
## redis-test (Container)
543
+
544
+
Listed below is a subset of environment variables that are accepted by the `redis-test` container service.
545
+
546
+
More information could be found at [this](https://github.com/redis/redis) link.
547
+
548
+
### REDIS_TEST_MAPPED_PORT
549
+
550
+
This environment variable is used to configure the host port to map with the container service port on which redis test listens to at runtime.
551
+
552
+
- More information can be found at [this](https://docs.docker.com/engine/network/##published-ports) link.
553
+
554
+
476
555
## docker compose
477
556
478
557
### COMPOSE_FILE
@@ -483,7 +562,7 @@ This environment variable is used to configure what docker compose configuration
483
562
484
563
### COMPOSE_PROFILES
485
564
486
-
This environment variable is used to enable or disable container services to be run by docker compose. Possible values are `api`, `caddy`, `cloudbeaver`, `minio`, `minio_test`, `postgres`and `postgres-test`.
565
+
This environment variable is used to enable or disable container services to be run by docker compose. Possible values are `api`, `caddy`, `cloudbeaver`, `minio`, `minio_test`, `postgres`, `postgres_test`, `redis`and `redis_test`.
487
566
488
567
- More information can be found at [this](https://docs.docker.com/compose/environment-variables/envvars/##compose_profiles) link.
0 commit comments