Force SSL and Multi SSL (#456)

This commit is contained in:
Saeed Vaziry
2025-02-01 01:33:04 +01:00
committed by GitHub
parent ea396786e4
commit 262c5e040d
14 changed files with 161 additions and 73 deletions

View File

@ -75,6 +75,7 @@ class Site extends AbstractModel
'port',
'progress',
'user',
'force_ssl',
];
protected $casts = [
@ -84,6 +85,7 @@ class Site extends AbstractModel
'progress' => 'integer',
'aliases' => 'array',
'source_control_id' => 'integer',
'force_ssl' => 'boolean',
];
public static array $statusColors = [
@ -227,6 +229,7 @@ public function activeSsl(): HasOne
return $this->hasOne(Ssl::class)
->where('expires_at', '>=', now())
->where('status', SslStatus::CREATED)
->where('is_active', true)
->orderByDesc('id');
}