coddingtonbear / obsidian-local-rest-api

Unlock your automation needs by interacting with your notes in Obsidian over a secure REST API.
MIT License
607 stars 56 forks source link

Ability to specify a different auth header? #59

Closed derekantrican closed 1 year ago

derekantrican commented 1 year ago

I'm looking to use this on my home server and put it behind nginx as a reverse proxy (I already use nginx to expose a bunch of other services on my local network). On nginx, I have defined a username & password so I can auth with it as Authorization: Basic [base64 username & password]. But nginx does not support multiple Authorization headers, so it looks like I can't use this plugin behind nginx.

I would like the ability, in the plugin settings, to specify my own header (say X-API-KEY) that I can pass the API key on, instead of the Authorization: Bearer [key]