hound
hound copied to clipboard
Using `hound` client with reverseproxy and `https` not possible?
We are hosting the hound server behind a reverse proxy. At the moment all end-points are using https.
The webinterface works fine, but using the hound cli client does not work.
./hound/hound -host codesearch.our-server.com "test"
2024/04/22 11:03:48 invalid character '<' looking for beginning of value
panic: invalid character '<' looking for beginning of val
Trying to give the full address results in:
./hound/hound -host https://codesearch.our-server.com "test"
2024/04/22 11:04:39 Get "http://https//codesearch.our-server.com/api/v1/search?ctx=2&files=&i=false&q=test&repos=%2A&stats=false": dial tcp: lookup https on 127.0.0.53:53: server misbehaving
panic:
I looked a bit in the code, and http seems to be hardcoded, e.g.:
https://github.com/hound-search/hound/blob/main/client/client.go#L95
Is there a reason for this?