mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 18:56:21 +00:00
fix: no crear subdominios para dominios personalizados
esto es por retrocompatibilidad para sitios que no usan DeployAlternativeDomain
This commit is contained in:
parent
1b5adfb712
commit
4666e67b5d
1 changed files with 5 additions and 3 deletions
|
@ -113,9 +113,11 @@ class DeployDistributedPress < Deploy
|
||||||
|
|
||||||
# XXX: Esto depende de nuestro DNS actual, cuando lo migremos hay
|
# XXX: Esto depende de nuestro DNS actual, cuando lo migremos hay
|
||||||
# que eliminarlo.
|
# que eliminarlo.
|
||||||
self.remote_info['njalla'] = {}
|
unless site.name.end_with? '.'
|
||||||
self.remote_info['njalla']['a'] = njalla.add_record(name: site.name, type: 'CNAME', content: "#{Site.domain}.").to_h
|
self.remote_info['njalla'] = {}
|
||||||
self.remote_info['njalla']['ns'] = njalla.add_record(name: "_dnslink.#{site.name}", type: 'NS', content: "#{publisher.hostname}.").to_h
|
self.remote_info['njalla']['a'] = njalla.add_record(name: site.name, type: 'CNAME', content: "#{Site.domain}.").to_h
|
||||||
|
self.remote_info['njalla']['ns'] = njalla.add_record(name: "_dnslink.#{site.name}", type: 'NS', content: "#{publisher.hostname}.").to_h
|
||||||
|
end
|
||||||
|
|
||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue