Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

352 B
Raw Blame
import { getEnv, resolvePlatform } from '@/sys'

export const ENV_CONFIG_DIR = 'DIFY_CONFIG_DIR'
export const FILE_PERM = 0o600
export const DIR_PERM = 0o700

export function resolveConfigDir(): string {
  const override = getEnv(ENV_CONFIG_DIR)
  if (override !== undefined && override !== '') return override
  return resolvePlatform().configDir()
}