mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-03-13 02:50:09 +00:00
Regenerate configs improvements
All checks were successful
Close stale issues and PRs / stale (push) Successful in 33s
All checks were successful
Close stale issues and PRs / stale (push) Successful in 33s
- 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 AccessList from "./access_list.js";
|
||||
import Certificate from "./certificate.js";
|
||||
import now from "./now_helper.js";
|
||||
@@ -73,6 +73,18 @@ class ProxyHost extends Model {
|
||||
return ["domain_names", "meta", "locations"];
|
||||
}
|
||||
|
||||
static get defaultAllowGraph() {
|
||||
return "[owner,access_list.[clients,items],certificate]";
|
||||
}
|
||||
|
||||
static get defaultExpand() {
|
||||
return ["owner", "certificate", "access_list.[clients,items]"];
|
||||
}
|
||||
|
||||
static get defaultOrder() {
|
||||
return [castJsonIfNeed("domain_names"), "ASC"];
|
||||
}
|
||||
|
||||
static get relationMappings() {
|
||||
return {
|
||||
owner: {
|
||||
|
||||
Reference in New Issue
Block a user