azibai / certificate
v1.10.14
2021-11-15 06:46 UTC
Requires
- acmephp/core: 2.0.1
This package is auto-updated.
Last update: 2024-09-17 16:40:00 UTC
README
创建 modules/azibai
拉取证书
添加 composer
"require": {
"azibai/certificate":"*@dev"
},
"repositories": [
{
"type": "path",
"url": "./modules/azibai/certificate"
}
]
composer install
php artisan vendor:publish --provider="Azibai\Certificate\Providers\CertificateServiceProvider" --tag="azibai-certificate"
php artisan migrate
运行作业批量
php artisan queue:work
nginx 默认设置允许所有域名
server_name _;
创建新的 SSL 和 nginx 配置
php artisan certificate:free -d mydomain.com
使用
# Job
LetsEncrypt::create('mydomain.com);
# now
LetsEncrypt::createNow('mydomain.com);
续订证书
protected function schedule(Schedule $schedule)
{
$schedule->job(new \Azibai\Certificate\Jobs\LetsEncrypt\RenewExpiringCertificates)->daily();
}