Adding some Agent0 auth stuff

This commit is contained in:
2026-04-11 14:26:19 +02:00
parent 014ff8f8ed
commit a086899ea4
2 changed files with 20 additions and 0 deletions
+17
View File
@@ -50,6 +50,13 @@ prompt "Enter Gitea personal access token (needs repo read access — create at
read -r -s GITEA_TOKEN_BOOTSTRAP read -r -s GITEA_TOKEN_BOOTSTRAP
echo "" echo ""
echo ""
prompt "Enter Agent0 login username: "
read -r AUTH_LOGIN
prompt "Enter Agent0 login password: "
read -r -s AUTH_PASSWORD
echo ""
info "Credentials collected" info "Credentials collected"
# ── Ollama ──────────────────────────────────────────────────────────────────── # ── Ollama ────────────────────────────────────────────────────────────────────
@@ -231,6 +238,16 @@ fi
section "Docker containers" section "Docker containers"
cd "$REPO_DIR" cd "$REPO_DIR"
if [[ ! -f "${REPO_DIR}/.env" ]]; then
cat > "${REPO_DIR}/.env" << EOF
AUTH_LOGIN=${AUTH_LOGIN}
AUTH_PASSWORD=${AUTH_PASSWORD}
EOF
info "Agent0 .env created"
else
info "Agent0 .env already exists"
fi
info "Building glitch-tunnel image..." info "Building glitch-tunnel image..."
docker compose build --quiet docker compose build --quiet
+3
View File
@@ -8,6 +8,9 @@ services:
volumes: volumes:
- ./agent-zero-data:/a0/usr - ./agent-zero-data:/a0/usr
restart: unless-stopped restart: unless-stopped
environment:
AUTH_LOGIN: ${AUTH_LOGIN}
AUTH_PASSWORD: ${AUTH_PASSWORD}
extra_hosts: extra_hosts:
- "host.docker.internal:host-gateway" # reach host Ollama at http://host.docker.internal:11434 - "host.docker.internal:host-gateway" # reach host Ollama at http://host.docker.internal:11434