Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible to send a header with docker run -i ... typesense/docsearch-scraper ? #45

Open
paulrudy opened this issue Sep 9, 2023 · 2 comments

Comments

@paulrudy
Copy link

paulrudy commented Sep 9, 2023

I'm running typesense on fly.io, and using a github action to run typesense-docsearch-scraper via docker run -i ... typesense/docsearch-scraper.

My typesense app runs on a couple of VM's, which are not an HA cluster, but operate as single-node clusters. I'd like to be able to target a specific VM when I run the scraper. On fly, the way to do that is to send a header with the request: Fly-Prefer-Region: <region-code>

Is there a method to include such a header when running the scraper?

@jasonbosco
Copy link
Member

The scraper doesn't have a way to pass in custom headers. But happy to accept a PR that adds support for this.

@paulrudy
Copy link
Author

paulrudy commented Sep 12, 2023

Thanks. It's far above my ability to code a PR for that functionality, but perhaps headers can be passed in as parameters in a query string added to the start_urls and end_urls in the scraper config?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants