Adding some Agent0 auth stuff
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user