mirror of
https://0xacab.org/sutty/sutty
synced 2025-02-21 12:01:47 +00:00
Merge branch 'distributed-press' into panel.sutty.nl
This commit is contained in:
commit
613b40ced3
1 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue