From b3815d221f988190503a0f414024beb579727d91 Mon Sep 17 00:00:00 2001 From: Adam Malczewski Date: Sat, 23 May 2026 03:54:07 +0900 Subject: bind API to 0.0.0.0:31329 for direct Tailscale access, fix prod_secrets prompts --- README.md | 2 +- bin/prod_secrets | 22 +++++++++++++++------- bin/test | 4 ++-- docker-compose.yml | 8 ++++---- 4 files changed, 22 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 9aba8cc..d6f5ce6 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ Rather than forking both repos, this repo contains only the compose file, a Sear ``` ┌──────────────────────────┐ - Internet ──► Traefik ──► Firecrawl API (:3002) + Internet ──► Traefik ──► Firecrawl API (:31329) │ │ │ │ ▼ ▼ │ Playwright Redis diff --git a/bin/prod_secrets b/bin/prod_secrets index e409a56..5c6f34a 100755 --- a/bin/prod_secrets +++ b/bin/prod_secrets @@ -13,27 +13,35 @@ function get_or_gen_secret() { local val=$(openssl rand -hex 32) gopass insert -f "$path" <<< "$val" else - echo >&2 "Missing required secret: $description ($path)" - echo >&2 "Please enter the value:" - read -rs val + echo >&2 "$description" + echo >&2 "Enter value (leave empty to skip):" + read -r val gopass insert -f "$path" <<< "$val" fi fi gopass show -o "$path" } -FIRECRAWL_DOMAIN=$(get_or_gen_secret "projects/firecrawl-dokploy/prod/firecrawl_domain" false "Firecrawl domain (e.g. firecrawl.yourdomain.com)") TEST_API_KEY=$(get_or_gen_secret "projects/firecrawl-dokploy/prod/api_key" true "Firecrawl API Key") BULL_AUTH_KEY=$(get_or_gen_secret "projects/firecrawl-dokploy/prod/bull_auth_key" true "Bull Auth Key") POSTGRES_PASSWORD=$(get_or_gen_secret "projects/firecrawl-dokploy/prod/postgres_password" true "PostgreSQL Password") SEARXNG_SECRET_KEY=$(get_or_gen_secret "projects/firecrawl-dokploy/prod/searxng_secret_key" true "SearXNG Secret Key") -OPENAI_API_KEY=$(get_or_gen_secret "projects/firecrawl-dokploy/prod/openai_api_key" false "OpenAI API Key (optional, press enter to skip)") + +# FIRECRAWL_DOMAIN is only needed if you use Traefik routing (not required for direct IP access). +FIRECRAWL_DOMAIN=$(gopass show -o "projects/firecrawl-dokploy/prod/firecrawl_domain" 2>/dev/null || echo "") +# OPENAI_API_KEY is only needed for /extract features. Add it directly in Dokploy if needed. +OPENAI_API_KEY=$(gopass show -o "projects/firecrawl-dokploy/prod/openai_api_key" 2>/dev/null || echo "") cat <