fix(ssl): improve SSL cert file mounts

- If SSL is disabled, delete the SSL crt and file mounts in the DB
- If SSL is disabled, delete the SSL folder
- If SSL is enabled, make sure the file mounts are added inside the helper
- remove old file mounts first to make sure the ssl crt content is always up to date and no duplicates are added
This commit is contained in:
peaklabs-dev committed 2025-02-04 16:34:24 +01:00
1 parent 6de76ca3f8
commit 3c62130e86
5 files changed
+71 -28

No files matched your search

+1
View File
@@ -9,6 +9,7 @@ class SslCertificate extends Model
protected $fillable = [
'ssl_certificate',
'ssl_private_key',
'configuration_dir',
'resource_type',
'resource_id',
'server_id',