From fa29785a5882f45867c9ae97066cd38979a38795 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Fri, 27 Sep 2024 09:25:29 +0200 Subject: [PATCH] Fix connection to local http server and typesense server --- .github/workflows/typesense-scrape.yml | 6 +++--- config/typesense-scraper-config.json | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/typesense-scrape.yml b/.github/workflows/typesense-scrape.yml index c45657450..24daf8f94 100644 --- a/.github/workflows/typesense-scrape.yml +++ b/.github/workflows/typesense-scrape.yml @@ -37,8 +37,8 @@ jobs: run: | docker run -i \ -e TYPESENSE_API_KEY=${{ secrets.TYPESENSE_API_KEY }} \ - -e TYPESENSE_HOST="typesense.slint.dev" \ - -e TYPESENSE_PORT="8101" \ - -e TYPESENSE_PROTOCOL="http" \ + -e TYPESENSE_HOST="062ykax5pgwon3q7p-1.a1.typesense.net" \ + -e TYPESENSE_PORT="443" \ + -e TYPESENSE_PROTOCOL="https" \ -e CONFIG="$(cat config/typesense-scraper-config.json | jq -r tostring)" \ typesense/docsearch-scraper:0.10.0 diff --git a/config/typesense-scraper-config.json b/config/typesense-scraper-config.json index 0957e188b..8c5a9e261 100644 --- a/config/typesense-scraper-config.json +++ b/config/typesense-scraper-config.json @@ -2,12 +2,12 @@ "index_name": "$TYPESENSE_INDEX_NAME", "start_urls": [ { - "url": "http://localhost:80", + "url": "http://host.docker.internal:80", "selectors_key": "docs" } ], "sitemap_urls": [ - "http://localhost:80/sitemap.xml" + "http://host.docker.internal:80/sitemap.xml" ], "selectors": { "docs": {