-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.env.example
More file actions
67 lines (56 loc) · 2.79 KB
/
.env.example
File metadata and controls
67 lines (56 loc) · 2.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# sico -- Environment Variables
# Copy to .env and customize. This file is gitignored.
# Application environment: development | test | production.
# Controls runtime defaults such as Gin's mode (Debug in development,
# Release in production). Defaults to production when unset so that
# shipping deployments are safe by default; set to "development" locally
# for verbose Gin logs and debug helpers.
APP_ENV=development
# Application database credentials
DB_PORT=3306
DB_NAME=sico
DB_USER=sico
DB_PASSWORD=changeme
# Redis
REDIS_HOST=redis
REDIS_PORT=6379
REDIS_PASSWORD=changeme-redis
# Sandbox client auth (optional, local development examples)
# `examples/sandbox/apply_and_release.py` defaults to clientId `test-client`,
# so this secret lets an open-source checkout run the example without extra env
# renaming. Docker Compose forwards this value into the backend container, and
# the Python examples auto-load this repo-root `.env` when run via
# `python -m examples...`. A local backend binary reads `backend/.env` by
# default (override via `BACKEND_ROOT`), so when running the Go server from
# source keep the two files in sync or symlink them.
# For custom client IDs, use SANDBOX_CLIENT_SECRET_<CLIENT_ID> (uppercase,
# `-` replaced with `_`).
# These are example values for local use only. Change them before exposing the service.
SANDBOX_CLIENT_SECRET_TEST_CLIENT=change-me-local-secret
# Sandbox Python execution mode
# Set to true to run Python scripts locally via subprocess instead of Kubernetes pods
RUN_PYTHON_TOOL_SANDBOX_LOCAL_MODE=true
# RUN_PYTHON_TOOL_SANDBOX_LOCAL_PYTHON=python # override the Python executable path if needed
# Experience learning
EXPERIENCES_ENABLED=true
# Sandbox emulator (MuMu / Android emulator) HTTP endpoint that the backend talks to.
# When the emulator runs on your *host machine* (not in compose / not in kind):
# - For docker-compose: use host.docker.internal (a host alias is added automatically
# for Linux compatibility; Docker Desktop on Windows/macOS resolves it natively).
# - For kind: leave the host part as `host.docker.internal`; deploy/kind/setup.sh
# resolves it to the Docker Desktop host IP and rewrites the URL when invoking helm.
# When the emulator itself runs in the same compose / k8s network, point this at the
# in-cluster service name instead.
SANDBOX_EMULATOR_BASE_URL=http://host.docker.internal:8000
# Exposed port (nginx)
SICO_PORT=8080
# BACKEND_ROOT overrides the auto-detected backend source root (used to
# locate configs/migrations). The compiled Docker image already lays out the
# source at /app so this is only needed when running the binary outside its
# build tree.
# BACKEND_ROOT=/app
# Kind / Kubernetes (only needed for make kind-up)
REGISTRY=localhost:5000
KUBE_CONTEXT=kind-sico
# Chat agent configuration
CHAT_AGENT_MAX_ITERATIONS=1000