mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 19:56:21 +00:00
18 lines
241 B
Ruby
18 lines
241 B
Ruby
# frozen_string_literal: true
|
|
|
|
# Genera una versión onion
|
|
class DeployHiddenService < DeployWww
|
|
def deploy(**)
|
|
return true if fqdn.blank?
|
|
|
|
super
|
|
end
|
|
|
|
def fqdn
|
|
values[:onion]
|
|
end
|
|
|
|
def url
|
|
"http://#{fqdn}"
|
|
end
|
|
end
|