You are here

function hosting_letsencrypt_hosting_queues in Aegir HTTPS 7.3

Implements hook_hosting_queues().

Return a list of queues that this module needs to manage.

File

submodules/letsencrypt/hosting_letsencrypt.module, line 20
LetsEncrypt certificate generation service.

Code

function hosting_letsencrypt_hosting_queues() {
  $queues = array();
  $queues['lets_encrypt'] = array(
    'name' => t("Let's Encrypt"),
    'description' => t("Refresh expiring Let's Encrypt certificates for HTTPS-enabled sites."),
    'type' => HOSTING_QUEUE_TYPE_SPREAD,
    'frequency' => strtotime("7 days", 0),
    'min_threads' => 1,
    'max_threads' => 5,
    'count' => 5,
    'threshold' => 100,
    'total_items' => count(hosting_letsencrypt_get_sites(TRUE)),
    'singular' => t('certificate renewal'),
    'plural' => t('certificate renewals'),
  );
  return $queues;
}