2025-01-22 20:43:54 +01:00
|
|
|
import { z } from "zod";
|
|
|
|
|
|
2025-02-18 22:54:15 +01:00
|
|
|
import { createEnv } from "@homarr/env";
|
2025-03-09 17:46:15 +01:00
|
|
|
import { createBooleanSchema } from "@homarr/env/schemas";
|
2025-01-22 20:43:54 +01:00
|
|
|
|
|
|
|
|
export const env = createEnv({
|
|
|
|
|
server: {
|
|
|
|
|
// Comma separated list of docker hostnames that can be used to connect to query the docker endpoints (localhost:2375,host.docker.internal:2375, ...)
|
|
|
|
|
DOCKER_HOSTNAMES: z.string().optional(),
|
|
|
|
|
DOCKER_PORTS: z.string().optional(),
|
2025-03-09 17:46:15 +01:00
|
|
|
ENABLE_DOCKER: createBooleanSchema(true),
|
|
|
|
|
ENABLE_KUBERNETES: createBooleanSchema(false),
|
2025-01-22 20:43:54 +01:00
|
|
|
},
|
2025-02-18 22:54:15 +01:00
|
|
|
experimental__runtimeEnv: process.env,
|
2025-01-22 20:43:54 +01:00
|
|
|
});
|