don't log an nginx warning for every authenticated request (#24682)

Since 0.18.2, every request that went through /auth logged an uninitialized "go2rtc_stream_proxy" variable warning, because only the go2rtc stream locations set that variable. The warning is now turned off in the /auth location, and the header value sent to /auth is unchanged.
This commit is contained in:
Josh Hawkins 2026-10-16 07:44:39 -05:00 committed by GitHub
parent 698b1ce628
commit aa42b17911
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,6 +5,8 @@ location /auth {
## Essential Proxy Configuration
internal;
proxy_pass $upstream_auth;
# $go2rtc_stream_proxy is only set by the go2rtc stream locations
uninitialized_variable_warn off;
## Headers