10
submitted 8 months ago* (last edited 8 months ago) by HumanPerson to c/[email protected]

I know this sounds like more of a "how do I use computes" question than a legitimate selfhosting question, but I think it fits here. My LibreX instance is hosted and appears to be fully functional, but when I try to add it to my browser it reports its url as 127.0.0.1:8080 instead of the actual address. I tried to get it to work with chromium as a troubleshooting step, and while it did let me change the address, it had some other stuff after the search.php?q= that made it return a 404. Does anyone know how to fix this?

edit: run with -e OPEN_SEARCH_HOST="https://yourdomain.tld" to get it to report the correct thing. You also have to remove and add it back in your search engine.

top 2 comments
sorted by: hot top controversial new old
[-] [email protected] 9 points 8 months ago

This might be an issue with opensearch.xml, which is a standard for how browsers recognise search engines.

See here:

https://github.com/hnhx/librex/blob/main/opensearch.xml.example

I don't know how you're hosting it, but when I was hosting LibreX, I had to make an opensearch.xml with the correct domain and bind mount it to the correct location. I don't exactly remember the details since I moved to Searxng.

Also, if you're not aware, LibreX was forked to LibreY, which is the updated repo.

[-] HumanPerson 1 points 8 months ago

Thanks for letting me know about LibreY. I switched it over now.

this post was submitted on 30 Oct 2023
10 points (81.2% liked)

Selfhosted

37923 readers
441 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS