Closed RealOrangeOne closed 8 months ago
local HAS_ALLOWED_USERS="$(test -s $APP_ROOT/htpasswd || echo "false")"
This variable assignment seems to be wrong.
HAS_ALLOWED_USERS
variable is empty when htpasswd
exists, which is falsey in sigil, and "false"
when it does not exist, which is actually truthy in sigil, so the conditional in template works the other way around.
auth_basic
section is not added to nginx config when it should be.
@Wowu would you be interested in making a pull request to fix the functionality?
Sure, submitted #23
This allows the plugin to function as a simple IP restriction filter.
Fixes #16
Untested, but should work :crossed_fingers: