mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-01-22 21:08:13 -05:00
Fix conditionals in the liquid template for OpenID Connect conf.
This commit is contained in:
parent
9f2d3a1737
commit
87d9babbd3
@ -1,4 +1,4 @@
|
|||||||
{% if openidc_enabled -%}
|
{% if openidc_enabled == 1 or openidc_enabled == true -%}
|
||||||
access_by_lua_block {
|
access_by_lua_block {
|
||||||
local openidc = require("resty.openidc")
|
local openidc = require("resty.openidc")
|
||||||
local opts = {
|
local opts = {
|
||||||
@ -18,7 +18,7 @@
|
|||||||
ngx.exit(ngx.HTTP_INTERNAL_SERVER_ERROR)
|
ngx.exit(ngx.HTTP_INTERNAL_SERVER_ERROR)
|
||||||
end
|
end
|
||||||
|
|
||||||
{% if openidc_restrict_users_enabled -%}
|
{% if openidc_restrict_users_enabled == 1 or openidc_restrict_users_enabled == true -%}
|
||||||
local function contains(table, val)
|
local function contains(table, val)
|
||||||
for i=1,#table do
|
for i=1,#table do
|
||||||
if table[i] == val then
|
if table[i] == val then
|
||||||
|
Loading…
Reference in New Issue
Block a user