Edit: For anyone with this issue, stopping and starting the Openmetrics plugin after saving the password in XO fixed it.
I keep getting the {"error":"Query authentication does not match server setting"} problem, is there something I'm missing? I run XO proxied through Nginx with HTTPS, is there some additional config required to get it working? I have set the key with openssl rand -hex 32 and have verified that is saved correctly in the plugin, and that I am using the same key for curl. I am able to obtain the /health endpoint as expected, I just cannot obtain the full metrics, only returns that error.
Command:
curl --insecure -H "Authorization: Bearer mytoken" https://xo.mydomain.local/openmetrics/metrics
XO commit:
91c5d
I should note that running the command inside my Docker container returns only the error, including the health endpoint. Do I need to expose 9004?