-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
42 lines (35 loc) · 1.43 KB
/
Copy path.env.example
File metadata and controls
42 lines (35 loc) · 1.43 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
# === Attocode Code-Intel HTTP Service ===
# Copy to .env and customize
# --- Core ---
ATTOCODE_PROJECT_DIR=. # default project to index
ATTOCODE_HOST=127.0.0.1
ATTOCODE_PORT=8080
ATTOCODE_API_KEY= # empty = open access
ATTOCODE_LOG_LEVEL=info
ATTOCODE_CORS_ORIGINS=*
# --- Service mode (multi-user, requires Postgres) ---
DATABASE_URL=postgresql+asyncpg://codeintel:codeintel@localhost:5432/codeintel
SECRET_KEY=change-me-in-production
REGISTRATION_KEY= # when set, required to register new accounts
REDIS_URL=redis://localhost:6379/0
# --- OAuth (optional, users create their own apps) ---
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
ATTOCODE_BASE_URL= # e.g. https://code.example.com
# --- Git cloning (service mode) ---
GIT_CLONE_DIR=/var/lib/code-intel/repos
GIT_CLONE_MAX_GB=50
GIT_SSH_KEY_PATH=
# --- Embeddings ---
ATTOCODE_EMBEDDING_MODEL= # auto | all-MiniLM-L6-v2 | nomic-embed-text | openai
ATTOCODE_EMBEDDING_DIMENSION=0 # 0 = auto-detect from model
# OPENAI_API_KEY= # only if using openai embeddings
# --- Remote mode (CLI → server bridge) ---
ATTOCODE_REMOTE_URL= # Remote server URL (overrides .attocode/config.toml)
ATTOCODE_REMOTE_TOKEN= # JWT or API key for remote server
ATTOCODE_REMOTE_REPO_ID= # Repository UUID on the remote server
# --- JWT ---
JWT_EXPIRY_MINUTES=60
REFRESH_EXPIRY_DAYS=30