This commit is contained in:
Andras Bacsai
2022-03-01 11:17:34 +01:00
parent 823fe2deb2
commit 76ba338b45
3 changed files with 2 additions and 5 deletions

View File

@@ -1,5 +1,4 @@
import { decrypt, encrypt } from '$lib/crypto'; import { decrypt, encrypt } from '$lib/crypto';
import { removeProxyConfiguration } from '$lib/haproxy';
import { asyncExecShell, getEngine } from '$lib/common'; import { asyncExecShell, getEngine } from '$lib/common';
import { getDomain, removeDestinationDocker } from '$lib/common'; import { getDomain, removeDestinationDocker } from '$lib/common';

View File

@@ -4,7 +4,7 @@ import type { RequestHandler } from '@sveltejs/kit';
import cuid from 'cuid'; import cuid from 'cuid';
import crypto from 'crypto'; import crypto from 'crypto';
import { buildQueue } from '$lib/queues'; import { buildQueue } from '$lib/queues';
import { checkContainer, removeProxyConfiguration } from '$lib/haproxy'; import { checkContainer } from '$lib/haproxy';
import { dev } from '$app/env'; import { dev } from '$app/env';
export const options: RequestHandler = async () => { export const options: RequestHandler = async () => {
@@ -154,7 +154,6 @@ export const post: RequestHandler = async (event) => {
const engine = applicationFound.destinationDocker.engine; const engine = applicationFound.destinationDocker.engine;
await removeDestinationDocker({ id, engine }); await removeDestinationDocker({ id, engine });
await removeProxyConfiguration(fqdn);
} }
return { return {
status: 200, status: 200,

View File

@@ -1,5 +1,5 @@
import { getTeam, getUserDetails, getDomain, removeDestinationDocker } from '$lib/common'; import { getTeam, getUserDetails, getDomain, removeDestinationDocker } from '$lib/common';
import { checkContainer, removeProxyConfiguration } from '$lib/haproxy'; import { checkContainer } from '$lib/haproxy';
import * as db from '$lib/database'; import * as db from '$lib/database';
import type { RequestHandler } from '@sveltejs/kit'; import type { RequestHandler } from '@sveltejs/kit';
import cuid from 'cuid'; import cuid from 'cuid';
@@ -151,7 +151,6 @@ export const post: RequestHandler = async (event) => {
const engine = applicationFound.destinationDocker.engine; const engine = applicationFound.destinationDocker.engine;
await removeDestinationDocker({ id, engine }); await removeDestinationDocker({ id, engine });
await removeProxyConfiguration(fqdn);
} }
return { return {