mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-19 16:38:11 +01:00
Regenerate configs improvements
- Fix certificates - Adds dry run - code cleanup
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
import { Model } from "objection";
|
||||
import db from "../db.js";
|
||||
import { convertBoolFieldsToInt, convertIntFieldsToBool } from "../lib/helpers.js";
|
||||
import { castJsonIfNeed, convertBoolFieldsToInt, convertIntFieldsToBool } from "../lib/helpers.js";
|
||||
import Certificate from "./certificate.js";
|
||||
import now from "./now_helper.js";
|
||||
import User from "./user.js";
|
||||
@@ -70,6 +70,18 @@ class RedirectionHost extends Model {
|
||||
return ["domain_names", "meta"];
|
||||
}
|
||||
|
||||
static get defaultAllowGraph() {
|
||||
return "[owner,certificate]";
|
||||
}
|
||||
|
||||
static get defaultExpand() {
|
||||
return ["certificate", "owner"];
|
||||
}
|
||||
|
||||
static get defaultOrder() {
|
||||
return [castJsonIfNeed("domain_names"), "ASC"];
|
||||
}
|
||||
|
||||
static get relationMappings() {
|
||||
return {
|
||||
owner: {
|
||||
|
||||
Reference in New Issue
Block a user