Cloudflare\Zone\Settings::change_ssl PHP Метод

change_ssl() публичный Метод

Requires CloudFlare active on your root domain or www domain. Off: no SSL between the visitor and CloudFlare, and no SSL between CloudFlare and your web server (all HTTP traffic). Flexible: SSL between the visitor and CloudFlare -- visitor sees HTTPS on your site, but no SSL between CloudFlare and your web server. You don't need to have an SSL cert on your web server, but your vistors will still see the site as being HTTPS enabled. Full: SSL between the visitor and CloudFlare -- visitor sees HTTPS on your site, and SSL between CloudFlare and your web server. You'll need to have your own SSL cert or self-signed cert at the very least. Full (Strict): SSL between the visitor and CloudFlare -- visitor sees HTTPS on your site, and SSL between CloudFlare and your web server. You'll need to have a valid SSL certificate installed on your web server. This certificate must be signed by a certificate authority, have an expiration date in the future, and respond for the request domain name (hostname). (https://support.cloudflare.com/hc/en-us/articles/200170416)
public change_ssl ( string $zone_identifier, string | null $value = null )
$zone_identifier string API item identifier tag
$value string | null Value of the zone setting (default: off)
    public function change_ssl($zone_identifier, $value = null)
    {
        $data = ['value' => $value];
        return $this->patch('zones/' . $zone_identifier . '/settings/ssl', $data);
    }