mirror of
https://github.com/mendableai/firecrawl.git
synced 2024-11-16 11:42:24 +08:00
fixes docker-compose and 401 error
This commit is contained in:
parent
50c59b6de9
commit
d316d52c96
|
@ -425,7 +425,7 @@ export async function scrapSingleUrl(
|
||||||
Logger.debug(`⛏️ ${scraper}: Successfully scraped ${urlToScrap} with text length >= 100 or screenshot, breaking`);
|
Logger.debug(`⛏️ ${scraper}: Successfully scraped ${urlToScrap} with text length >= 100 or screenshot, breaking`);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (pageStatusCode && (pageStatusCode == 404 || pageStatusCode == 400 || pageStatusCode == 401)) {
|
if (pageStatusCode && (pageStatusCode == 404 || pageStatusCode == 400)) {
|
||||||
Logger.debug(`⛏️ ${scraper}: Successfully scraped ${urlToScrap} with status code ${pageStatusCode}, breaking`);
|
Logger.debug(`⛏️ ${scraper}: Successfully scraped ${urlToScrap} with status code ${pageStatusCode}, breaking`);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,30 +4,6 @@ x-common-service: &common-service
|
||||||
build: apps/api
|
build: apps/api
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
environment:
|
|
||||||
- REDIS_URL=${REDIS_URL:-redis://redis:6379}
|
|
||||||
- REDIS_RATE_LIMIT_URL=${REDIS_URL:-redis://redis:6379}
|
|
||||||
- PLAYWRIGHT_MICROSERVICE_URL=${PLAYWRIGHT_MICROSERVICE_URL:-http://playwright-service:3000}
|
|
||||||
- USE_DB_AUTHENTICATION=${USE_DB_AUTHENTICATION}
|
|
||||||
- PORT=${PORT:-3002}
|
|
||||||
- NUM_WORKERS_PER_QUEUE=${NUM_WORKERS_PER_QUEUE}
|
|
||||||
- OPENAI_API_KEY=${OPENAI_API_KEY}
|
|
||||||
- OPENAI_BASE_URL=${OPENAI_BASE_URL}
|
|
||||||
- MODEL_NAME=${MODEL_NAME:-gpt-4o}
|
|
||||||
- SLACK_WEBHOOK_URL=${SLACK_WEBHOOK_URL}
|
|
||||||
- LLAMAPARSE_API_KEY=${LLAMAPARSE_API_KEY}
|
|
||||||
- LOGTAIL_KEY=${LOGTAIL_KEY}
|
|
||||||
- BULL_AUTH_KEY=${BULL_AUTH_KEY}
|
|
||||||
- TEST_API_KEY=${TEST_API_KEY}
|
|
||||||
- POSTHOG_API_KEY=${POSTHOG_API_KEY}
|
|
||||||
- POSTHOG_HOST=${POSTHOG_HOST}
|
|
||||||
- SUPABASE_ANON_TOKEN=${SUPABASE_ANON_TOKEN}
|
|
||||||
- SUPABASE_URL=${SUPABASE_URL}
|
|
||||||
- SUPABASE_SERVICE_TOKEN=${SUPABASE_SERVICE_TOKEN}
|
|
||||||
- SCRAPING_BEE_API_KEY=${SCRAPING_BEE_API_KEY}
|
|
||||||
- HOST=${HOST:-0.0.0.0}
|
|
||||||
- SELF_HOSTED_WEBHOOK_URL=${SELF_HOSTED_WEBHOOK_URL}
|
|
||||||
- LOGGING_LEVEL=${LOGGING_LEVEL}
|
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
- "host.docker.internal:host-gateway"
|
- "host.docker.internal:host-gateway"
|
||||||
|
|
||||||
|
@ -46,7 +22,29 @@ services:
|
||||||
api:
|
api:
|
||||||
<<: *common-service
|
<<: *common-service
|
||||||
environment:
|
environment:
|
||||||
<<: *common-service.environment
|
REDIS_URL: ${REDIS_URL:-redis://redis:6379}
|
||||||
|
REDIS_RATE_LIMIT_URL: ${REDIS_URL:-redis://redis:6379}
|
||||||
|
PLAYWRIGHT_MICROSERVICE_URL: ${PLAYWRIGHT_MICROSERVICE_URL:-http://playwright-service:3000}
|
||||||
|
USE_DB_AUTHENTICATION: ${USE_DB_AUTHENTICATION}
|
||||||
|
PORT: ${PORT:-3002}
|
||||||
|
NUM_WORKERS_PER_QUEUE: ${NUM_WORKERS_PER_QUEUE}
|
||||||
|
OPENAI_API_KEY: ${OPENAI_API_KEY}
|
||||||
|
OPENAI_BASE_URL: ${OPENAI_BASE_URL}
|
||||||
|
MODEL_NAME: ${MODEL_NAME:-gpt-4o}
|
||||||
|
SLACK_WEBHOOK_URL: ${SLACK_WEBHOOK_URL}
|
||||||
|
LLAMAPARSE_API_KEY: ${LLAMAPARSE_API_KEY}
|
||||||
|
LOGTAIL_KEY: ${LOGTAIL_KEY}
|
||||||
|
BULL_AUTH_KEY: ${BULL_AUTH_KEY}
|
||||||
|
TEST_API_KEY: ${TEST_API_KEY}
|
||||||
|
POSTHOG_API_KEY: ${POSTHOG_API_KEY}
|
||||||
|
POSTHOG_HOST: ${POSTHOG_HOST}
|
||||||
|
SUPABASE_ANON_TOKEN: ${SUPABASE_ANON_TOKEN}
|
||||||
|
SUPABASE_URL: ${SUPABASE_URL}
|
||||||
|
SUPABASE_SERVICE_TOKEN: ${SUPABASE_SERVICE_TOKEN}
|
||||||
|
SCRAPING_BEE_API_KEY: ${SCRAPING_BEE_API_KEY}
|
||||||
|
HOST: ${HOST:-0.0.0.0}
|
||||||
|
SELF_HOSTED_WEBHOOK_URL: ${SELF_HOSTED_WEBHOOK_URL}
|
||||||
|
LOGGING_LEVEL: ${LOGGING_LEVEL}
|
||||||
FLY_PROCESS_GROUP: app
|
FLY_PROCESS_GROUP: app
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
- redis
|
||||||
|
@ -58,7 +56,29 @@ services:
|
||||||
worker:
|
worker:
|
||||||
<<: *common-service
|
<<: *common-service
|
||||||
environment:
|
environment:
|
||||||
<<: *common-service.environment
|
REDIS_URL: ${REDIS_URL:-redis://redis:6379}
|
||||||
|
REDIS_RATE_LIMIT_URL: ${REDIS_URL:-redis://redis:6379}
|
||||||
|
PLAYWRIGHT_MICROSERVICE_URL: ${PLAYWRIGHT_MICROSERVICE_URL:-http://playwright-service:3000}
|
||||||
|
USE_DB_AUTHENTICATION: ${USE_DB_AUTHENTICATION}
|
||||||
|
PORT: ${PORT:-3002}
|
||||||
|
NUM_WORKERS_PER_QUEUE: ${NUM_WORKERS_PER_QUEUE}
|
||||||
|
OPENAI_API_KEY: ${OPENAI_API_KEY}
|
||||||
|
OPENAI_BASE_URL: ${OPENAI_BASE_URL}
|
||||||
|
MODEL_NAME: ${MODEL_NAME:-gpt-4o}
|
||||||
|
SLACK_WEBHOOK_URL: ${SLACK_WEBHOOK_URL}
|
||||||
|
LLAMAPARSE_API_KEY: ${LLAMAPARSE_API_KEY}
|
||||||
|
LOGTAIL_KEY: ${LOGTAIL_KEY}
|
||||||
|
BULL_AUTH_KEY: ${BULL_AUTH_KEY}
|
||||||
|
TEST_API_KEY: ${TEST_API_KEY}
|
||||||
|
POSTHOG_API_KEY: ${POSTHOG_API_KEY}
|
||||||
|
POSTHOG_HOST: ${POSTHOG_HOST}
|
||||||
|
SUPABASE_ANON_TOKEN: ${SUPABASE_ANON_TOKEN}
|
||||||
|
SUPABASE_URL: ${SUPABASE_URL}
|
||||||
|
SUPABASE_SERVICE_TOKEN: ${SUPABASE_SERVICE_TOKEN}
|
||||||
|
SCRAPING_BEE_API_KEY: ${SCRAPING_BEE_API_KEY}
|
||||||
|
HOST: ${HOST:-0.0.0.0}
|
||||||
|
SELF_HOSTED_WEBHOOK_URL: ${SELF_HOSTED_WEBHOOK_URL}
|
||||||
|
LOGGING_LEVEL: ${LOGGING_LEVEL}
|
||||||
FLY_PROCESS_GROUP: worker
|
FLY_PROCESS_GROUP: worker
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
- redis
|
||||||
|
|
Loading…
Reference in New Issue
Block a user