mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-23 04:18:45 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
@@ -49,11 +49,11 @@ export const deleteAllMiddlewares = async (application: ApplicationNested) => {
|
|||||||
const { security, appName, redirects, serverId } = application;
|
const { security, appName, redirects, serverId } = application;
|
||||||
let config: FileConfig;
|
let config: FileConfig;
|
||||||
|
|
||||||
if (serverId) {
|
if (serverId) {
|
||||||
config = await loadRemoteMiddlewares(serverId);
|
config = await loadRemoteMiddlewares(serverId);
|
||||||
} else {
|
} else {
|
||||||
config = loadMiddlewares<FileConfig>();
|
config = loadMiddlewares<FileConfig>();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config.http?.middlewares) {
|
if (config.http?.middlewares) {
|
||||||
if (security.length > 0) {
|
if (security.length > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user