websu-io / websu

Website Speed and Performance Optimization and monitoring
https://websu.io
Apache License 2.0
106 stars 10 forks source link

Error when using caddy reverse proxy for basicauth simple authentication #26

Open abolast opened 1 year ago

abolast commented 1 year ago

I encountered an error while trying to set up basic authentication using Caddy's reverse proxy and basicauth module. Specifically, the error message stated that the authorization header format must be "Bearer {token}." My deployment is using Docker Compose locally, and I'm attempting to provide simple authentication for the Web-UI. Interestingly, I tried running the "https://github.com/websu-io/websu-ui" project locally and Caddy was able to provide authentication through the basicauth module without issue. I'm curious to know what the difference is between the Docker and Yarn build versions of websu-ui.

abolast commented 1 year ago

I have seen jwt.go.Maybe i can reduce all jwt code. Also, I can configuring caddy2 authentication on jwt.