mirror of
https://github.com/Alvin-Zilverstand/nginx-proxy-manager.git
synced 2026-11-25 07:33:07 +01:00
Certificates into their own section
This commit is contained in:
1 parent
1c57ccdc87
commit
c749a22b52
41 files changed
+599
-385
No files matched your search
@@ -13,6 +13,10 @@ class Certificate extends Model {
|
||||
$beforeInsert () {
|
||||
this.created_on = Model.raw('NOW()');
|
||||
this.modified_on = Model.raw('NOW()');
|
||||
|
||||
if (typeof this.expires_on === 'undefined') {
|
||||
this.expires_on = Model.raw('NOW()');
|
||||
}
|
||||
}
|
||||
|
||||
$beforeUpdate () {
|
||||
@@ -28,7 +32,7 @@ class Certificate extends Model {
|
||||
}
|
||||
|
||||
static get jsonAttributes () {
|
||||
return ['meta'];
|
||||
return ['domain_names', 'meta'];
|
||||
}
|
||||
|
||||
static get relationMappings () {
|
||||
|
||||
Reference in new issue
Block a user