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

[Feature request] Add in settings 'Binding Host' and "Api key" for autorization header #396

Closed
azdolinski opened this issue Sep 17, 2024 · 2 comments

Comments

@azdolinski
Copy link

Is your feature request related to a problem? Please describe.
Im using obsidian inside docker.
Omnisearch accept only HTTP API request on 127..1 so it is impossible to map port from outside docker to localhost.
In setting section there is no option to change binding host to 0.0.0.0.

Describe the solution you'd like
As in title: Add in settings 'Binding Host' and "Api key" for autorization header (as this will be now in on external interface so some base auth would be nice option).
Do not need for now any SSL / just pure HTTP with basic Authentication would be ok.

Describe alternatives you've considered
N/A

Additional context
Im using now standard search 'Local REST API' plugin for search content of my obsidian note by llm agent.
It would be nice to have option to do same via omnisearch plugin.

@scambier
Copy link
Owner

scambier commented Sep 18, 2024

You can edit the file .obsidian/plugins/omnisearch/data.json and manually set the value "DANGER_httpHost": "0.0.0.0". It's not supported from the settings page because I don't want to be responsible for users who may accidentally expose their entire vault through this.

No support yet for auth (or other) headers though.

@azdolinski
Copy link
Author

Thank you, that is sufficient for my needs. I can configure additional proxy settings and expose them with authentication. I quickly scanned the code for 'httpApiHost/Bind' and didn't find it, which is why I asked.

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

2 participants