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.

  • lckdscl [they/them]@whiskers.bim.boats
    link
    fedilink
    English
    arrow-up
    9
    ·
    1 年前

    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.

    • HumanPersonOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 年前

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