fix LUA array variables and add LOG_LEVEL to the troubleshooting section

This commit is contained in:
florian 2021-05-19 09:18:38 +02:00
parent 96db3a450d
commit de560490d3
No known key found for this signature in database
GPG Key ID: 3D80806F12602A7C
2 changed files with 8 additions and 6 deletions

View File

@ -26,23 +26,23 @@ local use_antibot_captcha = %USE_ANTIBOT_CAPTCHA%
local use_antibot_recaptcha = %USE_ANTIBOT_RECAPTCHA%
-- resolvers
local dns_resolvers = %DNS_RESOLVERS%
local dns_resolvers = {%DNS_RESOLVERS%}
-- whitelist
local use_whitelist_ip = %USE_WHITELIST_IP%
local use_whitelist_reverse = %USE_WHITELIST_REVERSE%
local whitelist_ip_list = %WHITELIST_IP_LIST%
local whitelist_reverse_list = %WHITELIST_REVERSE_LIST%
local whitelist_ip_list = {%WHITELIST_IP_LIST%}
local whitelist_reverse_list = {%WHITELIST_REVERSE_LIST%}
-- blacklist
local use_blacklist_ip = %USE_BLACKLIST_IP%
local use_blacklist_reverse = %USE_BLACKLIST_REVERSE%
local blacklist_ip_list = %BLACKLIST_IP_LIST%
local blacklist_reverse_list = %BLACKLIST_REVERSE_LIST%
local blacklist_ip_list = {%BLACKLIST_IP_LIST%}
local blacklist_reverse_list = {%BLACKLIST_REVERSE_LIST%}
-- dnsbl
local use_dnsbl = %USE_DNSBL%
local dnsbl_list = %DNSBL_LIST%
local dnsbl_list = {%DNSBL_LIST%}
-- bad behavior
local use_bad_behavior = %USE_BAD_BEHAVIOR%

View File

@ -4,6 +4,8 @@
When troubleshooting, the logs are your best friends. We try our best to provide user-friendly logs to help you understand what happened. Please note that we don't store the logs inside the container, they are all displayed on stdout/stderr so Docker can capture them. They can be displayed using the [docker logs](https://docs.docker.com/engine/reference/commandline/logs/) command.
You can edit the `LOG_LEVEL` environment variable to increase or decrease the verbosity of logs with the following values : `debug`, `info`, `notice`, `warn`, `error`, `crit`, `alert` or `emerg`.
## Permissions
Don't forget that bunkerized-nginx runs as an unprivileged user with UID/GID 101. Double check the permissions of files and folders for each volumes (see the [volumes list](https://bunkerized-nginx.readthedocs.io/en/latest/volumes.html)).