[PHP-FPM] Increase PHP memory limit for "web" to 512M

[Helper] Nextcloud 14
[Rspamd] Fix KEEP_SPAM lua script: skip check if ip is false
This commit is contained in:
André
2018-09-11 19:35:21 +02:00
parent a5488d4ba6
commit 1499094b61
3 changed files with 10 additions and 2 deletions

View File

@@ -26,7 +26,7 @@ listen = [::]:9002
access.log = /proc/self/fd/2
clear_env = no
catch_workers_output = yes
php_admin_value[memory_limit] = 256M
php_admin_value[memory_limit] = 512M
php_admin_value[max_execution_time] = 1200
php_admin_value[max_input_time] = 1200

View File

@@ -15,13 +15,21 @@ rspamd_config:register_symbol({
local rspamd_logger = require "rspamd_logger"
local rspamd_ip = require 'rspamd_ip'
local uname = task:get_user()
if uname then
return false
end
local redis_params = rspamd_parse_redis_server('keep_spam')
local ip = task:get_from_ip()
if not ip then
return false
end
local from_ip_string = ip:to_string()
ip_check_table = {from_ip_string}
local maxbits = 128
local minbits = 32
if ip:get_version() == 4 then