diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/util/config.ts | 7 |
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; |
