websu
websu copied to clipboard
Error when using caddy reverse proxy for basicauth simple authentication
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.
I have seen jwt.go.Maybe i can reduce all jwt code. Also, I can configuring caddy2 authentication on jwt.