Files
quickstart/.env.example
T
Claude Agent 9ca770962f fix: align quickstart with d0a1.es ecosystem and current reality
Hardening pass over the quickstart repo to make it match the actual
d0a1.es stack and remove long-standing drift.

- README: align with 8 GB RAM reality across all sections, add
  explicit security warning on WEBUI_AUTH=false, remove dead link
  to d0a1.es/vps, drop stack services not part of d0a1.es
  (n8n, WordPress, Qdrant). Re-point the d0a1 section to the
  services that actually run at git/mail/app.d0a1.es.
- docker-compose: move all tunables (ports, default model, auth,
  secret key, keep-alive) to .env with sensible defaults. Add
  commented GPU passthrough block for NVIDIA hosts.
- deploy.sh: pre-flight checks (docker, compose, daemon),
  copy .env.example on first run, auto-detect system RAM on
  Linux and macOS and warn on sub-8 GB hosts.
- Add .env.example documenting every variable and required RAM
  per model.
- Add MIT LICENSE (was promised in README but missing).
- Add .gitignore (local .env, editor cruft, OS junk).
- .gitattributes: use a single rule (text=auto eol=lf) to cover
  every text file, not just *.sh - fixes CRLF warnings on new
  text files on Windows checkouts.

Refs: d0a1/quickstart rename (companion: new repo at
git.d0a1.es/d0a1/quickstart).
2026-06-20 02:38:55 +02:00

40 lines
1.3 KiB
Bash

# d0a1 quickstart - configuracion por defecto
# Copia este archivo como .env y edita segun necesites:
# cp .env.example .env
# --- Puertos ----------------------------------------------------------------
# Puerto de Open WebUI (interfaz web)
WEBUI_PORT=3000
# Puerto de Ollama (API del motor de IA)
OLLAMA_PORT=11434
# --- Seguridad --------------------------------------------------------------
# Si false, desactiva el login de Open WebUI.
# Recomendado solo para uso personal en local.
# NO expongas el puerto a internet con WEBUI_AUTH=false.
# Valores validos: true | false
WEBUI_AUTH=true
# Clave de sesion de Open WebUI. Cambiala en cualquier despliegue real.
# Genera una con: openssl rand -hex 32
WEBUI_SECRET_KEY=
# --- Modelos ----------------------------------------------------------------
# Modelo que Open WebUI sugiere al usuario al registrarse.
# Requisitos de RAM aproximados (Q4_K_M):
# llama3.2:1b - 1 GB
# llama3.2:3b - 2 GB (por defecto, cualquiera con 8 GB puede)
# qwen2.5:7b - 5 GB
# llama3.1:8b - 5 GB
# codellama:7b - 5 GB
DEFAULT_MODEL=llama3.2:3b
# Tiempo que Ollama mantiene un modelo en memoria tras la ultima peticion.
# Usa '0' para descargar el modelo tras cada uso (libera RAM).
# Usa '-1' para mantenerlo siempre cargado.
OLLAMA_KEEP_ALIVE=5m