mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-12 12:13:41 +00:00
fix: Stopping service without proxy
This commit is contained in:
1 parent
8fc3760eef
commit
bdf123bf7b
6 files changed
+31
-7
No files matched your search
@@ -33,8 +33,12 @@ export const post: RequestHandler = async (event) => {
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
}
|
||||
await stopTcpHttpProxy(destinationDocker, publicPort);
|
||||
await configureSimpleServiceProxyOff({ domain });
|
||||
try {
|
||||
await stopTcpHttpProxy(destinationDocker, publicPort);
|
||||
await configureSimpleServiceProxyOff({ domain });
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
@@ -27,7 +27,11 @@ export const post: RequestHandler = async (event) => {
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
}
|
||||
await configureSimpleServiceProxyOff({ domain });
|
||||
try {
|
||||
await configureSimpleServiceProxyOff({ domain });
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
@@ -37,7 +37,11 @@ export const post: RequestHandler = async (event) => {
|
||||
console.error(error);
|
||||
}
|
||||
|
||||
await configureSimpleServiceProxyOff({ domain });
|
||||
try {
|
||||
await configureSimpleServiceProxyOff({ domain });
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
@@ -27,7 +27,11 @@ export const post: RequestHandler = async (event) => {
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
}
|
||||
await configureSimpleServiceProxyOff({ domain });
|
||||
try {
|
||||
await configureSimpleServiceProxyOff({ domain });
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
@@ -27,7 +27,11 @@ export const post: RequestHandler = async (event) => {
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
}
|
||||
await configureSimpleServiceProxyOff({ domain });
|
||||
try {
|
||||
await configureSimpleServiceProxyOff({ domain });
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
}
|
||||
}
|
||||
return {
|
||||
status: 200
|
||||
|
||||
@@ -30,7 +30,11 @@ export const post: RequestHandler = async (event) => {
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
}
|
||||
await configureSimpleServiceProxyOff({ domain });
|
||||
try {
|
||||
await configureSimpleServiceProxyOff({ domain });
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
Reference in new issue
Block a user