# Default environment variables are taken from this `.env` file
# This base file is extended by the other `.env.*` files in this repository
# Do not change this file unless you intend to change defaults for dev or testing
# Locally override these variables by creating a `.env.local` or `.env.*.local` file

HASH_EMAIL_TRANSPORTER=dummy
DUMMY_EMAIL_TRANSPORTER_FILE_PATH=var/api/dummy-email-transporter/email-dumps.yml

FRONTEND_URL=http://localhost:3000
HASH_GRAPH_ALLOWED_URL_DOMAIN_PATTERN="(?:http://localhost:3000|https://hash\\.ai)/@(?P<shortname>[\\w-]+)/types/(?P<kind>(?:data-type)|(?:property-type)|(?:entity-type))/[\\w\\-_%]+/"

HASH_INTEGRATION_QUEUE_NAME=integration

INTERNAL_API_KEY=development-api-key

# Dummy AI-provider credentials. Real keys are only needed to exercise
# AI features; everything else (and the test suite) runs fine with these
# placeholders. Override with real values in `.env.local` (dev) or via
# secrets in production.
OPENAI_API_KEY=dummy
ANTHROPIC_API_KEY=dummy
HASH_TEMPORAL_WORKER_AI_AWS_ACCESS_KEY_ID=dummy
HASH_TEMPORAL_WORKER_AI_AWS_SECRET_ACCESS_KEY=dummy

HASH_KRATOS_PUBLIC_URL=http://127.0.0.1:4433
HASH_KRATOS_ADMIN_URL=http://127.0.0.1:4434
KRATOS_API_KEY=secret
KRATOS_COOKIE_DOMAIN=localhost

HASH_HYDRA_PUBLIC_URL=http://127.0.0.1:4444
HASH_HYDRA_ADMIN_URL=http://127.0.0.1:4445

HASH_VAULT_HOST=http://127.0.0.1
HASH_VAULT_PORT=8200
HASH_VAULT_ROOT_TOKEN=dev_root_token
HASH_VAULT_MOUNT_PATH=secret

HASH_TEMPORAL_SERVER_HOST=http://localhost
HASH_TEMPORAL_SERVER_PORT=7233

HASH_GRAPH_HTTP_HOST=127.0.0.1
HASH_GRAPH_HTTP_PORT=4000
HASH_GRAPH_RPC_HOST=127.0.0.1
HASH_GRAPH_RPC_PORT=4002
HASH_GRAPH_EMBED_TYPE_FETCHER=true
HASH_GRAPH_TYPE_FETCHER_HOST=localhost
HASH_GRAPH_TYPE_FETCHER_PORT=4455
HASH_GRAPH_EMBED_ADMIN=true
HASH_GRAPH_ADMIN_HOST=127.0.0.1
HASH_GRAPH_ADMIN_PORT=4001
HASH_GRAPH_UNSAFE_DEV_AUTH=true
HASH_GRAPH_SERVE_API_REFERENCE=true

HASH_GRAPH_PG_USER=graph
HASH_GRAPH_PG_PASSWORD=graph
HASH_GRAPH_PG_DATABASE=graph
HASH_GRAPH_LOG_LEVEL=info

HASH_REDIS_HOST=localhost
HASH_REDIS_PORT=6379

HASH_OTLP_ENDPOINT=http://localhost:4317

LOG_LEVEL=info

API_ORIGIN=http://localhost:5001

# Whether or not a realtime service and things depending on it are enabled (e.g. integration 2-way sync)
# NOTE: the old realtime service was removed and a new one needs to be implemented in order to enable this.
# @todo H-124 implement a new change subscription service
ENABLE_REALTIME_SYNC=false

# Optional product analytics via Rudderstack. Leave the write key blank to disable telemetry.
HASH_API_RUDDERSTACK_KEY=

###########################################
# Disable telemetry from third-party dependencies who transmit IP addresses
###########################################
# Vercel Next.js
NEXT_TELEMETRY_DISABLED=1
# Vercel Turborepo
TURBO_TELEMETRY_DISABLED=1
# Yarn
YARN_ENABLE_TELEMETRY=0
# Artillery
ARTILLERY_DISABLE_TELEMETRY=true
# Terraform and others
CHECKPOINT_DISABLE=1
