aboutsummaryrefslogtreecommitdiff
path: root/src/util/config.ts
diff options
context:
space:
mode:
authorKevin J Hoerr <kjhoerr@protonmail.com>2021-09-17 21:44:24 +0000
committerKevin J Hoerr <kjhoerr@protonmail.com>2021-09-17 21:44:24 +0000
commit67c22d10e4583e29d33933e4b1b88f9d02f3da47 (patch)
tree64e5f31b6564a30a8f1602eafd06506410f9e0d9 /src/util/config.ts
parent3edc57fa22ad378826c1ed35f2cb0e6d657a20d4 (diff)
downloadao-coverage-67c22d10e4583e29d33933e4b1b88f9d02f3da47.tar.gz
ao-coverage-67c22d10e4583e29d33933e4b1b88f9d02f3da47.tar.bz2
ao-coverage-67c22d10e4583e29d33933e4b1b88f9d02f3da47.zip
Optify SSL info for script on index.html
Diffstat (limited to 'src/util/config.ts')
-rw-r--r--src/util/config.ts7
1 files changed, 6 insertions, 1 deletions
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;