Skip to content

Commit

Permalink
Update default.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasleplus committed May 6, 2024
1 parent 5674985 commit 7c879c1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions openid-connect-provider-debugger/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -63,35 +63,35 @@ server {
ngx.log(ngx.DEBUG, 'using oidc_client_id URL parameter value: ' .. ngx.var.arg_oidc_client_id)
opts.client_id = ngx.unescape_uri(ngx.var.arg_oidc_client_id)
elseif (os.getenv('oidc_client_id')) then
ngx.log(ngx.DEBUG, 'using oidc_client_id environment variable value: ' .. os.getenv('oidc_client_id')
ngx.log(ngx.DEBUG, 'using oidc_client_id environment variable value: ' .. os.getenv('oidc_client_id'))
opts.client_id = os.getenv('oidc_client_id')
end
if (ngx.var.arg_oidc_client_secret) then
ngx.log(ngx.DEBUG, 'using oidc_client_secret URL parameter value: ' .. ngx.var.arg_oidc_client_secret)
opts.client_secret = ngx.unescape_uri(ngx.var.arg_oidc_client_secret)
elseif (os.getenv('oidc_client_secret')) then
ngx.log(ngx.DEBUG, 'using oidc_client_secret environment variable value: ' .. os.getenv('oidc_client_secret')
ngx.log(ngx.DEBUG, 'using oidc_client_secret environment variable value: ' .. os.getenv('oidc_client_secret'))
opts.client_secret = os.getenv('oidc_client_secret')
end
if (ngx.var.arg_oidc_discovery) then
ngx.log(ngx.DEBUG, 'using oidc_discovery URL parameter value: ' .. ngx.var.arg_oidc_discovery)
opts.discovery = ngx.unescape_uri(ngx.var.arg_oidc_discovery)
elseif (os.getenv('oidc_discovery')) then
ngx.log(ngx.DEBUG, 'using oidc_discovery environment variable value: ' .. os.getenv('oidc_discovery')
ngx.log(ngx.DEBUG, 'using oidc_discovery environment variable value: ' .. os.getenv('oidc_discovery'))
opts.discovery = os.getenv('oidc_discovery')
end
if (ngx.var.arg_oidc_redirect_uri) then
ngx.log(ngx.DEBUG, 'using oidc_redirect_uri URL parameter value: ' .. ngx.var.arg_oidc_redirect_uri)
opts.redirect_uri = ngx.unescape_uri(ngx.var.arg_oidc_redirect_uri)
elseif (os.getenv('oidc_redirect_uri')) then
ngx.log(ngx.DEBUG, 'using oidc_redirect_uri environment variable value: ' .. os.getenv('oidc_redirect_uri')
ngx.log(ngx.DEBUG, 'using oidc_redirect_uri environment variable value: ' .. os.getenv('oidc_redirect_uri'))
opts.redirect_uri = os.getenv('oidc_redirect_uri')
end
if (ngx.var.arg_oidc_ssl_verify) then
ngx.log(ngx.DEBUG, 'using oidc_ssl_verify URL parameter value: ' .. ngx.var.arg_oidc_ssl_verify)
opts.ssl_verify = ngx.unescape_uri(ngx.var.arg_oidc_ssl_verify)
elseif (os.getenv('oidc_ssl_verify')) then
ngx.log(ngx.DEBUG, 'using oidc_ssl_verify environment variable value: ' .. os.getenv('oidc_ssl_verify')
ngx.log(ngx.DEBUG, 'using oidc_ssl_verify environment variable value: ' .. os.getenv('oidc_ssl_verify'))
opts.ssl_verify = os.getenv('oidc_ssl_verify')
else
opts.ssl_verify = 'no'
Expand Down

0 comments on commit 7c879c1

Please sign in to comment.