fix user-agent not blocking and add documentation on bundle when USE_CUSTOM_HTTPS=yes

This commit is contained in:
bunkerity 2021-05-03 13:59:55 +02:00
parent 062a39c63a
commit 70976d0fbc
No known key found for this signature in database
GPG Key ID: 3D80806F12602A7C
2 changed files with 2 additions and 2 deletions

View File

@ -911,7 +911,7 @@ If set to yes, HTTPS will be enabled with certificate/key of your choice.
Values : *\<any valid path inside the container\>*
Default value :
Context : *global*, *multisite*
Full path of the certificate file to use when `USE_CUSTOM_HTTPS` is set to yes.
Full path of the certificate or bundle file to use when `USE_CUSTOM_HTTPS` is set to yes. If your chain of trust contains one or more intermediate certificate(s), you will need to bundle them into a single file (more info [here](https://nginx.org/en/docs/http/configuring_https_servers.html#chains)).
`CUSTOM_HTTPS_KEY`
Values : *\<any valid path inside the container\>*

View File

@ -96,7 +96,7 @@ end
-- check if user-agent is allowed
if use_user_agent and ngx.var.bad_user_agent == "yes" then
local block = false
local block = true
for k, v in pairs(whitelist_user_agent) do
if string.match(ngx.var.http_user_agent, v) then
ngx.log(ngx.NOTICE, "[ALLOW] User-Agent " .. ngx.var.http_user_agent .. " is whitelisted")