From 3cc428df43c677cbfeb905f23be26278dec6c97d Mon Sep 17 00:00:00 2001 From: Alexey Berezhok Date: Tue, 12 May 2026 01:27:01 +0300 Subject: [PATCH] Fixes --- func_ruby/HestiaBunkerWebApi.rb | 4 ++++ func_ruby/ext-modules/bunkerweb_module.mod | 7 ++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/func_ruby/HestiaBunkerWebApi.rb b/func_ruby/HestiaBunkerWebApi.rb index c976b63..889ef27 100644 --- a/func_ruby/HestiaBunkerWebApi.rb +++ b/func_ruby/HestiaBunkerWebApi.rb @@ -230,6 +230,10 @@ class HestiaBunkerWebApi variables["USE_ANTIBOT"] = options[:anti_bot] || "captcha" end + variables["ANTIBOT_IGNORE_URI"] = options[:anti_bot_ignore_uri] || "^/\.well-known/acme-challenge/.+$" + variables["LETS_ENCRYPT_PASSTHROUGH"] = options[:lets_encrypt_passthrough] || "yes" + + service_body = { server_name: service_name, is_draft: false, diff --git a/func_ruby/ext-modules/bunkerweb_module.mod b/func_ruby/ext-modules/bunkerweb_module.mod index b21ded6..fd29f0a 100644 --- a/func_ruby/ext-modules/bunkerweb_module.mod +++ b/func_ruby/ext-modules/bunkerweb_module.mod @@ -46,12 +46,13 @@ class BunkerwebWorker < Kernel::ModuleCoreWorker case m_command when "add" m_domain = args[1].strip unless args[1].nil? - if m_domain.nil? - log_return("Domain should be specified. #{args}") + m_ip = args[2].strip unless args[2].nil? + if m_domain.nil? || m_ip.nil? + log_return("Domain and IP should be specified. #{args}") else log("add domain to bunkerweb protection") - output = `/usr/local/hestia/bin/v-bunkerweb-module add #{m_domain} shell` + output = `/usr/local/hestia/bin/v-bunkerweb-module add #{m_domain} #{m_ip} shell` exit_status = $?.exitstatus if exit_status != 0 log_return("Command failed with status #{exit_status}")