Ollama and LiteLLM are shared Agap services (agap_git/openai/docker-compose.yml); oO never starts them. Removes the ai profile, the litellm config, and the --profile ai runbook; points ml-serving at https://llm.alogins.net by default and adds host.docker.internal host-gateway so the container can hit Agap ollama on the host. Also updates the tip-generator model alias to qwen2.5:1.5b to match the model actually pulled on Agap ollama (7b is ~4.7 GB and would blow VRAM budget). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
40 lines
1.6 KiB
Plaintext
40 lines
1.6 KiB
Plaintext
# Copy to .env.local and fill in values — never commit .env.local
|
|
|
|
# API
|
|
SESSION_SECRET=change-me-to-a-random-32-char-string
|
|
PORT=3078
|
|
NODE_ENV=development
|
|
DATABASE_PATH=./data/oo.db
|
|
# API_BASE_URL = public origin only, no path suffix (used to build OAuth redirect URIs)
|
|
API_BASE_URL=http://localhost:3078
|
|
WEB_BASE_URL=http://localhost:3000
|
|
ML_SERVING_URL=http://localhost:8000
|
|
|
|
# AI stack — shared Agap services (ollama + litellm + langfuse). Not run from oO.
|
|
# Prod: https://llm.alogins.net | Dev: http://host.docker.internal:4000 from containers,
|
|
# http://localhost:4000 from host. Ollama: http://host.docker.internal:11434 / :11434.
|
|
LITELLM_URL=https://llm.alogins.net
|
|
LITELLM_MASTER_KEY=sk-oo-dev
|
|
OLLAMA_URL=http://host.docker.internal:11434
|
|
|
|
# Google OAuth — https://console.cloud.google.com/
|
|
GOOGLE_CLIENT_ID=
|
|
GOOGLE_CLIENT_SECRET=
|
|
|
|
# VAPID (Web Push) — generate: node -e "const wp=require('web-push');console.log(JSON.stringify(wp.generateVAPIDKeys()))"
|
|
VAPID_PUBLIC_KEY=
|
|
VAPID_PRIVATE_KEY=
|
|
VAPID_SUBJECT=mailto:you@example.com
|
|
|
|
# Todoist OAuth — https://developer.todoist.com/appconsole.html
|
|
TODOIST_CLIENT_ID=
|
|
TODOIST_CLIENT_SECRET=
|
|
|
|
# Event bus — leave NATS_URL empty for in-process bus only (no JetStream bridge).
|
|
# Set to nats://nats:4222 (compose service name) or nats://localhost:4222 (host)
|
|
# to mirror every publish to durable JetStream streams (signals.>, feedback.>).
|
|
# Start the broker with: docker compose --profile events up nats
|
|
NATS_URL=
|
|
# How often the background scheduler refreshes Todoist tasks per active user (ms).
|
|
TODOIST_SYNC_INTERVAL_MS=900000
|