fix: Remove wrong/stuck proxy configurations

This commit is contained in:
Andras Bacsai
2022-02-26 22:01:24 +01:00
parent e0e50b4bd5
commit 4e2026aa2d
10 changed files with 76 additions and 2 deletions

View File

@@ -6,6 +6,7 @@ import type { RequestHandler } from '@sveltejs/kit';
import { letsEncrypt } from '$lib/letsencrypt';
import {
checkHAProxy,
checkProxyConfigurations,
configureSimpleServiceProxyOn,
reloadHaproxy,
setWwwRedirection
@@ -120,6 +121,7 @@ export const post: RequestHandler = async (event) => {
try {
await asyncExecShell(`DOCKER_HOST=${host} docker compose -f ${composeFileDestination} up -d`);
await checkProxyConfigurations();
await configureSimpleServiceProxyOn({ id, domain, port: 80 });
if (isHttps) {