Closed
Description
The environment variable OAUTH2_PROXY_SHOW_DEBUG_ON_ERROR
is not working.
Expected Behavior
The environment variable OAUTH2_PROXY_SHOW_DEBUG_ON_ERROR
should affect whether a detailed error is showed on the error page or not.
Current Behavior
The environment variable OAUTH2_PROXY_SHOW_DEBUG_ON_ERROR
has no effect, while the --show-debug-on-error
command-line argument works as expected.
Possible Solution
Golang isn't really my specialty, but the issue might be here, perhaps the cfg value should be with underscores instead of dashes.
Your Environment
- Version used: 7.1.3
Activity
NickMeves commentedon May 3, 2021
Yup! That's definitely the error -- good catch. Do you want to open a PR with a fix?
fix: SHOW_DEBUG_ON_ERROR environment variable not working
iTaybb commentedon May 4, 2021
I did. Thanks
fix: SHOW_DEBUG_ON_ERROR environment variable not working
fix: SHOW_DEBUG_ON_ERROR environment variable not working
fix: SHOW_DEBUG_ON_ERROR environment variable not working
fix: SHOW_DEBUG_ON_ERROR environment variable not working
fix: SHOW_DEBUG_ON_ERROR environment variable not working
feat: 🎸 frontend-gray plugin support cdn type deploy (oauth2-proxy#1178)