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

Using hound client with reverseproxy and https not possible? #482

Open
daenny opened this issue Apr 22, 2024 · 0 comments
Open

Using hound client with reverseproxy and https not possible? #482

daenny opened this issue Apr 22, 2024 · 0 comments

Comments

@daenny
Copy link

daenny commented Apr 22, 2024

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?

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

1 participant