diff --git a/confs/site/main-lua.conf b/confs/site/main-lua.conf index 9db9caa..3fe5f0a 100644 --- a/confs/site/main-lua.conf +++ b/confs/site/main-lua.conf @@ -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% diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md index 74ae77f..8e47356 100644 --- a/docs/troubleshooting.md +++ b/docs/troubleshooting.md @@ -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)).