5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-10-05 06:16:56 +00:00

Merge branch 'distributed-press' into panel.sutty.nl

This commit is contained in:
f 2023-02-09 20:10:31 -03:00
commit 613b40ced3

View file

@ -115,9 +115,11 @@ class DeployDistributedPress < Deploy
# XXX: Esto depende de nuestro DNS actual, cuando lo migremos hay
# que eliminarlo.
self.remote_info['njalla'] = {}
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
unless site.name.end_with? '.'
self.remote_info['njalla'] = {}
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
end