chore(dasuten): Actualizaciones migración SQL, W-Zombi y scripts
This commit is contained in:
@@ -7,9 +7,10 @@ module WZombi
|
||||
@config = config
|
||||
end
|
||||
|
||||
def call(_req, res)
|
||||
# Priorizamos host desde variable de entorno, sino usamos la IP Tailscale conocida
|
||||
host = ENV.fetch("WZ_HOST", "100.111.195.4:#{@config.puerto}")
|
||||
def call(req, res)
|
||||
# Priorizamos host desde variable de entorno, luego el header Host (soporte relay), sino fallback a env/tailscale
|
||||
req_host = req.host ? "#{req.host}:#{req.port}" : nil
|
||||
host = ENV["WZ_HOST"] || req_host || "100.111.195.4:#{@config.puerto}"
|
||||
res.body = Engine::PS1Builder.build(host: host)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user