From 67c22d10e4583e29d33933e4b1b88f9d02f3da47 Mon Sep 17 00:00:00 2001 From: Kevin J Hoerr Date: Fri, 17 Sep 2021 21:44:24 +0000 Subject: Optify SSL info for script on index.html --- src/util/config.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/util') diff --git a/src/util/config.ts b/src/util/config.ts index 3692d8a..3b09590 100644 --- a/src/util/config.ts +++ b/src/util/config.ts @@ -72,7 +72,12 @@ export const handleStartup = async ( await persistTemplate({ inputFile: path.join(publicDir, "templates", "index.html.template"), outputFile: path.join(hostDir, "index.html"), - context: { TARGET_URL: targetUrl } + context: { + TARGET_URL: targetUrl, + CURL_HTTPS: targetUrl.includes("https") + ? "--proto '=https' --tlsv1.2 " + : "" + } } as Template); return mongo; -- cgit