mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 20:36:21 +00:00
fix: crear un registro para www también
This commit is contained in:
parent
57542c92a7
commit
42c7e93ac9
1 changed files with 1 additions and 0 deletions
|
@ -136,6 +136,7 @@ class DeployDistributedPress < Deploy
|
||||||
self.remote_info ||= {}
|
self.remote_info ||= {}
|
||||||
self.remote_info['njalla'] = {}
|
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']['a'] = njalla.add_record(name: site.name, type: 'CNAME', content: "#{Site.domain}.").to_h
|
||||||
|
self.remote_info['njalla']['cname'] = njalla.add_record(name: "www.#{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
|
self.remote_info['njalla']['ns'] = njalla.add_record(name: "_dnslink.#{site.name}", type: 'NS', content: "#{publisher.hostname}.").to_h
|
||||||
end
|
end
|
||||||
rescue HTTParty::Error => e
|
rescue HTTParty::Error => e
|
||||||
|
|
Loading…
Reference in a new issue