Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

CF_UNIVERSALSSL_OFF Not working! #1352

Closed
IzumiSenaSora opened this issue Dec 30, 2021 · 4 comments · Fixed by #1358
Closed

CF_UNIVERSALSSL_OFF Not working! #1352

IzumiSenaSora opened this issue Dec 30, 2021 · 4 comments · Fixed by #1358

Comments

@IzumiSenaSora
Copy link

IzumiSenaSora commented Dec 30, 2021

// UniversalSSL Off For Entire Domain:
var CF_UNIVERSALSSL_OFF = { 'cloudflare_universalssl': 'off' };
// UniversalSSL On For Entire Domain:
var CF_UNIVERSALSSL_ON = { 'cloudflare_universalssl': 'on' };

D('example.org', REG_NONE, DnsProvider(CLOUDFLARE), CF_UNIVERSALSSL_OFF,
    A('@', 10.0.0.1), // The Naked Or 'APEX' Domain.
    A('www', 10.0.0.1)
);

Can anyone help me? .... I can change proxy on/off but can't change universalssl on/off help please!
DNSControl Version: 3:13:1

@tlimoncelli
Copy link
Contributor

These constants are already defined for you: (see helpers.js in the source code)

// UniversalSSL off for entire domain:
var CF_UNIVERSALSSL_OFF = { cloudflare_universalssl: 'off' };
// UniversalSSL on for entire domain:
var CF_UNIVERSALSSL_ON = { cloudflare_universalssl: 'on' };

Does it work if you remove the var CF_UNI.... lines in your example?

@IzumiSenaSora
Copy link
Author

IzumiSenaSora commented Dec 31, 2021

These constants are already defined for you: (see helpers.js in the source code)

// UniversalSSL off for entire domain:
var CF_UNIVERSALSSL_OFF = { cloudflare_universalssl: 'off' };
// UniversalSSL on for entire domain:
var CF_UNIVERSALSSL_ON = { cloudflare_universalssl: 'on' };

Does it work if you remove the var CF_UNI.... lines in your example?

No! Its not working!... I just tried!
I removed var CF_UNI.... lines but nothing happening!

D('example.org', REG_NONE, DnsProvider(CLOUDFLARE), CF_UNIVERSALSSL_OFF,
    A('@', 10.0.0.1), // The Naked Or 'APEX' Domain.
    A('www', 10.0.0.1)
);

Do i need some extra API edit permission to use CF_UNIVERSALSSL_OFF function? I am using new cloudflare provider guide from DNSControl website!

Edit: As i thought!... I need to add Zone → SSL and Certificates → Edit Permission to edit SSL/TLS settings from cloudflare which provide universal ssl settings! ... Please update Cloudflare Provider Docs!

@tlimoncelli
Copy link
Contributor

@IzumiSena Would you look at #1358 please?

@IzumiSenaSora
Copy link
Author

@IzumiSena Would you look at #1358 please?

Looks good!...

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants