5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 21:36: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:
f 2023-02-09 20:08:56 -03:00
parent 1b5adfb712
commit 4666e67b5d

View file

@ -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