I would propose better domain regexp as one presented in README .*example.com could match any-example.com or suffix that really does not fit domain based hierarchy.
Usually people would use exact domains and subdomains, or wildcard.
domain ALLOWED_DOMAINS=example.com
subdomains ALLOWED_DOMAINS=(www|api).example.com
wildcard ALLOWED_DOMAINS=([a-z]+.)?example.com
Also it would be good to explain how lua handles unicode strings. From http://lua-users.org/wiki/LuaUnicode you can get that it would be better to replace .* with [a-z]+
I would propose better domain regexp as one presented in README
.*example.com
could matchany-example.com
or suffix that really does not fit domain based hierarchy. Usually people would use exact domains and subdomains, or wildcard. domainALLOWED_DOMAINS=example.com
subdomainsALLOWED_DOMAINS=(www|api).example.com
wildcardALLOWED_DOMAINS=([a-z]+.)?example.com
Also it would be good to explain how lua handles unicode strings. From http://lua-users.org/wiki/LuaUnicode you can get that it would be better to replace.*
with[a-z]+