Fixes
This commit is contained in:
@@ -230,6 +230,10 @@ class HestiaBunkerWebApi
|
|||||||
variables["USE_ANTIBOT"] = options[:anti_bot] || "captcha"
|
variables["USE_ANTIBOT"] = options[:anti_bot] || "captcha"
|
||||||
end
|
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 = {
|
service_body = {
|
||||||
server_name: service_name,
|
server_name: service_name,
|
||||||
is_draft: false,
|
is_draft: false,
|
||||||
|
|||||||
@@ -46,12 +46,13 @@ class BunkerwebWorker < Kernel::ModuleCoreWorker
|
|||||||
case m_command
|
case m_command
|
||||||
when "add"
|
when "add"
|
||||||
m_domain = args[1].strip unless args[1].nil?
|
m_domain = args[1].strip unless args[1].nil?
|
||||||
if m_domain.nil?
|
m_ip = args[2].strip unless args[2].nil?
|
||||||
log_return("Domain should be specified. #{args}")
|
if m_domain.nil? || m_ip.nil?
|
||||||
|
log_return("Domain and IP should be specified. #{args}")
|
||||||
else
|
else
|
||||||
|
|
||||||
log("add domain to bunkerweb protection")
|
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
|
exit_status = $?.exitstatus
|
||||||
if exit_status != 0
|
if exit_status != 0
|
||||||
log_return("Command failed with status #{exit_status}")
|
log_return("Command failed with status #{exit_status}")
|
||||||
|
|||||||
Reference in New Issue
Block a user