mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-23 09:16:54 +00:00
feat: Implement Digital Ocean DNS email entries
This commit is contained in:
parent
3b962c5f5a
commit
841aee73e8
|
@ -229,22 +229,22 @@ class DigitalOceanDnsApi extends DnsProviderApi {
|
||||||
description: 'record.vpn',
|
description: 'record.vpn',
|
||||||
displayName: 'vpn.$domainName',
|
displayName: 'vpn.$domainName',
|
||||||
),
|
),
|
||||||
DesiredDnsRecord(
|
const DesiredDnsRecord(
|
||||||
name: domainName,
|
name: '@',
|
||||||
content: domainName,
|
content: '@',
|
||||||
description: 'record.mx',
|
description: 'record.mx',
|
||||||
type: 'MX',
|
type: 'MX',
|
||||||
category: DnsRecordsCategory.email,
|
category: DnsRecordsCategory.email,
|
||||||
),
|
),
|
||||||
DesiredDnsRecord(
|
const DesiredDnsRecord(
|
||||||
name: '_dmarc.$domainName',
|
name: '_dmarc',
|
||||||
content: 'v=DMARC1; p=none',
|
content: 'v=DMARC1; p=none',
|
||||||
description: 'record.dmarc',
|
description: 'record.dmarc',
|
||||||
type: 'TXT',
|
type: 'TXT',
|
||||||
category: DnsRecordsCategory.email,
|
category: DnsRecordsCategory.email,
|
||||||
),
|
),
|
||||||
DesiredDnsRecord(
|
DesiredDnsRecord(
|
||||||
name: domainName,
|
name: '@',
|
||||||
content: 'v=spf1 a mx ip4:$ipAddress -all',
|
content: 'v=spf1 a mx ip4:$ipAddress -all',
|
||||||
description: 'record.spf',
|
description: 'record.spf',
|
||||||
type: 'TXT',
|
type: 'TXT',
|
||||||
|
@ -252,7 +252,7 @@ class DigitalOceanDnsApi extends DnsProviderApi {
|
||||||
),
|
),
|
||||||
if (dkimPublicKey != null)
|
if (dkimPublicKey != null)
|
||||||
DesiredDnsRecord(
|
DesiredDnsRecord(
|
||||||
name: 'selector._domainkey.$domainName',
|
name: 'selector._domainkey',
|
||||||
content: dkimPublicKey,
|
content: dkimPublicKey,
|
||||||
description: 'record.dkim',
|
description: 'record.dkim',
|
||||||
type: 'TXT',
|
type: 'TXT',
|
||||||
|
|
Loading…
Reference in a new issue