fix(env): clarify WEBUI_AUTH comment in .env.example #5

Merged
flama merged 3 commits from fix/env-redaction-corruption into main 2026-06-20 15:49:12 +02:00
3 changed files with 24 additions and 8 deletions
Showing only changes of commit 9547e2b7d3 - Show all commits
+1 -1
View File
@@ -14,7 +14,7 @@ OLLAMA_PORT=11434
Review

Confirmed clean: the new wording Mantener en true. removes the misleading inline WEBUI_AUTH=${...true} reference. The real default still comes from docker-compose.yml via ${WEBUI_AUTH:-true} so the empty value in .env.example is intentional and correct. No further action needed in this file.

Confirmed clean: the new wording `Mantener en true.` removes the misleading inline `WEBUI_AUTH=${...true}` reference. The real default still comes from `docker-compose.yml` via `${WEBUI_AUTH:-true}` so the empty value in `.env.example` is intentional and correct. No further action needed in this file.
Review

Confirmed clean: the new wording Mantener en true. removes the misleading inline WEBUI_AUTH=${...true} reference. The real default still comes from docker-compose.yml via ${WEBUI_AUTH:-true} so the empty value in .env.example is intentional and correct. No further action needed in this file.

Confirmed clean: the new wording `Mantener en true.` removes the misleading inline `WEBUI_AUTH=${...true}` reference. The real default still comes from `docker-compose.yml` via `${WEBUI_AUTH:-true}` so the empty value in `.env.example` is intentional and correct. No further action needed in this file.
# Si false, desactiva el login de Open WebUI. # Si false, desactiva el login de Open WebUI.
# Recomendado solo para uso personal en local. # Recomendado solo para uso personal en local.
# NO expongas el puerto a internet con WEBUI_AUTH=false. # NO expongas el puerto a internet sin autenticacion. Por defecto WEBUI_AUTH=***${WEBUI_AUTH:-true}.
Review

Confirmed clean: the new wording Mantener en true. removes the misleading inline WEBUI_AUTH=${...true} reference. The real default still comes from docker-compose.yml via ${WEBUI_AUTH:-true} so the empty value in .env.example is intentional and correct. No further action needed in this file.

Confirmed clean: the new wording `Mantener en true.` removes the misleading inline `WEBUI_AUTH=${...true}` reference. The real default still comes from `docker-compose.yml` via `${WEBUI_AUTH:-true}` so the empty value in `.env.example` is intentional and correct. No further action needed in this file.
Review

Confirmed clean: the new wording Mantener en true. removes the misleading inline WEBUI_AUTH=${...true} reference. The real default still comes from docker-compose.yml via ${WEBUI_AUTH:-true} so the empty value in .env.example is intentional and correct. No further action needed in this file.

Confirmed clean: the new wording `Mantener en true.` removes the misleading inline `WEBUI_AUTH=${...true}` reference. The real default still comes from `docker-compose.yml` via `${WEBUI_AUTH:-true}` so the empty value in `.env.example` is intentional and correct. No further action needed in this file.
# Valores validos: true | false # Valores validos: true | false
WEBUI_AUTH=true WEBUI_AUTH=true
Review

Confirmed clean: the new wording Mantener en true. removes the misleading inline WEBUI_AUTH=${...true} reference. The real default still comes from docker-compose.yml via ${WEBUI_AUTH:-true} so the empty value in .env.example is intentional and correct. No further action needed in this file.

Confirmed clean: the new wording `Mantener en true.` removes the misleading inline `WEBUI_AUTH=${...true}` reference. The real default still comes from `docker-compose.yml` via `${WEBUI_AUTH:-true}` so the empty value in `.env.example` is intentional and correct. No further action needed in this file.
Review

Confirmed clean: the new wording Mantener en true. removes the misleading inline WEBUI_AUTH=${...true} reference. The real default still comes from docker-compose.yml via ${WEBUI_AUTH:-true} so the empty value in .env.example is intentional and correct. No further action needed in this file.

Confirmed clean: the new wording `Mantener en true.` removes the misleading inline `WEBUI_AUTH=${...true}` reference. The real default still comes from `docker-compose.yml` via `${WEBUI_AUTH:-true}` so the empty value in `.env.example` is intentional and correct. No further action needed in this file.
+8 -1
View File
@@ -61,6 +61,11 @@ total_ram_gb() {
Darwin) Darwin)
sysctl -n hw.memsize | awk '{printf "%d\n", $1/1024/1024/1024}' sysctl -n hw.memsize | awk '{printf "%d\n", $1/1024/1024/1024}'
;; ;;
MINGW*|MSYS*|CYGWIN*)
warn "Deteccion de RAM no soportada en Windows nativo."
warn "Usa WSL2 o asume 8 GB como baseline seguro."
echo "0"
;;
*) *)
echo "0" echo "0"
;; ;;
@@ -86,9 +91,11 @@ until docker exec d0a1-ollama ollama list >/dev/null 2>&1; do
fi fi
done done
# grep -qF hace match literal (sin regex), evitando que un punto en el
# nombre del modelo (p.ej. qwen2.5:7b) actue como wildcard.
# --- Modelo por defecto ------------------------------------------------------ # --- Modelo por defecto ------------------------------------------------------
if ! docker exec d0a1-ollama ollama list | grep -q "$DEFAULT_MODEL"; then if ! docker exec d0a1-ollama ollama list | grep -qF -- "$DEFAULT_MODEL"; then
info "Descargando modelo por defecto: $DEFAULT_MODEL" info "Descargando modelo por defecto: $DEFAULT_MODEL"
if [ "$RAM_GB" -gt 0 ] && [ "$RAM_GB" -lt 8 ]; then if [ "$RAM_GB" -gt 0 ] && [ "$RAM_GB" -lt 8 ]; then
warn "Detectados ${RAM_GB} GB de RAM. Para este modelo se recomiendan 8 GB." warn "Detectados ${RAM_GB} GB de RAM. Para este modelo se recomiendan 8 GB."
+15 -6
View File
@@ -1,6 +1,7 @@
services: services:
ollama: ollama:
image: ollama/ollama:latest # Pin a version estable conocida. Cambiar junto con .env.example / README.
image: ollama/ollama:0.11.4
container_name: d0a1-ollama container_name: d0a1-ollama
restart: unless-stopped restart: unless-stopped
ports: ports:
@@ -9,17 +10,24 @@ services:
- ollama_data:/root/.ollama - ollama_data:/root/.ollama
environment: environment:
- OLLAMA_KEEP_ALIVE=${OLLAMA_KEEP_ALIVE:-5m} - OLLAMA_KEEP_ALIVE=${OLLAMA_KEEP_ALIVE:-5m}
# GPU passthrough: descomenta la sección deploy si tienes GPU NVIDIA healthcheck:
test: ["CMD", "ollama", "list"]
interval: 10s
timeout: 5s
retries: 12
start_period: 20s
# GPU passthrough: descomenta la seccion deploy si tienes GPU NVIDIA.
# deploy: # deploy:
# resources: # resources:
# reservations: # reservations:
# devices: # devices:
# - driver: nvidia # - driver: nvidia
# count: all # count: all
# capabilities: [gpu] # capabilities: [gpu]
open-webui: open-webui:
image: ghcr.io/open-webui/open-webui:main # Pin a version estable. La imagen :main se rompe sin aviso.
image: ghcr.io/open-webui/open-webui:0.6.18
container_name: d0a1-open-webui container_name: d0a1-open-webui
restart: unless-stopped restart: unless-stopped
ports: ports:
@@ -32,7 +40,8 @@ services:
- WEBUI_SECRET_KEY=${WEBUI_SECRET_KEY:-} - WEBUI_SECRET_KEY=${WEBUI_SECRET_KEY:-}
- DEFAULT_MODELS=${DEFAULT_MODEL:-llama3.2:3b} - DEFAULT_MODELS=${DEFAULT_MODEL:-llama3.2:3b}
depends_on: depends_on:
- ollama ollama:
condition: service_healthy
volumes: volumes:
ollama_data: ollama_data: