1
0
Fork 0
mirror of synced 2024-10-06 05:04:20 +13:00
appwrite/app/workers/certs.php

39 lines
725 B
PHP
Raw Normal View History

2020-02-20 01:12:48 +13:00
<?php
require_once __DIR__.'/../init.php';
cli_set_process_title('Certs V1 Worker');
echo APP_NAME.' certs worker v1 has started';
class CertsV1
{
public $args = [];
public function setUp()
{
}
public function perform()
{
global $register;
/**
* 1. Get new domain
* 2. Fetch all subdomains
* 3. Check if certificate already exists
* 4. Check if certificate has been changed
* 4.1. Create / Renew certificate
* 4.2. Update loadblancer
* 4.3. Update certificate (domains, change date, expiry)
*/
}
public function tearDown()
{
// ... Remove environment for this job
}
}