<message> - Introduced a new cache-proxy service in both `docker-compose.dev.yml` and `docker-compose.yml`, with dependencies on Redis and integration into the web and bot services. - Updated GitHub Actions workflow to include build and push steps for the cache-proxy image, ensuring it is deployed alongside web and bot services. - Modified environment variable management to accommodate the cache-proxy, enhancing the overall deployment process. - Adjusted GraphQL cached URL to point to the cache-proxy service for improved request handling.
14 lines
416 B
TypeScript
14 lines
416 B
TypeScript
/* eslint-disable sonarjs/no-clear-text-protocols */
|
|
/* eslint-disable unicorn/prevent-abbreviations */
|
|
import { z } from 'zod';
|
|
|
|
export const envSchema = z.object({
|
|
BOT_TOKEN: z.string(),
|
|
LOGIN_GRAPHQL: z.string(),
|
|
PASSWORD_GRAPHQL: z.string(),
|
|
URL_GRAPHQL: z.string(),
|
|
URL_GRAPHQL_CACHED: z.string().default('http://cache-proxy:5000/proxy/graphql'),
|
|
});
|
|
|
|
export const env = envSchema.parse(process.env);
|