I have a SearXNG instance running locally, and I have a proxy entry for this (search.home). When I go to https://search.home in Firefox, it works as expected and brings me to SearXNG, however if I try adding this as my default search, it instead resolves to the IP and not the hostname, which fails because the IP does not have a cert on it and it tries to hit it with https (as would work with the hostname).

This works in Firefox mobile, and every other web browser I’ve tried on desktop, just not Firefox for some reason. I’ve tried various about:config changes but so far no luck. Anyone else have a workaround for this? It would be nice if Firefox showed you what it actually has saved for the url/hostname/IP of the search engine in the Search section of the Settings, but sadly it just has the name and shortcut listed.

  • @rootOP
    link
    310 days ago

    Thanks! The output of the xml is as follows

    <OpenSearchDescription>
    <ShortName>SearXNG</ShortName>
    <LongName>SearXNG metasearch</LongName>
    <Description>
    SearXNG is a metasearch engine that respects your privacy.
    </Description>
    <InputEncoding>UTF-8</InputEncoding>
    <Image type="image/png">
    https://192.168.2.20:8080/static/themes/simple/img/favicon.png?60321eeb6e2f478f0e5704529308c594d5924246
    </Image>
    <Url rel="results" type="text/html" method="GET" template="https://192.168.2.20:8080/search?q={searchTerms}"/>
    <Url rel="suggestions" type="application/x-suggestions+json" method="GET" template="https://192.168.2.20:8080/autocompleter?q={searchTerms}"/>
    <Url rel="self" type="application/opensearchdescription+xml" method="GET" template="https://192.168.2.20:8080/opensearch.xml"/>
    <Query role="example" searchTerms="SearXNG"/>
    <moz:SearchForm>https://192.168.2.20:8080/search</moz:SearchForm>
    </OpenSearchDescription>
    

    It looks like it’s set to use https://192.168.2.20:8080 for some reason. https://search.home will resolve fine but using https with the underlying IP will not.