optionally generate traefik files, set cors in config, and set trust proxy in config

This commit is contained in:
Milo Schwartz
2025-01-15 23:26:31 -05:00
parent cb87463a69
commit 1aec431c36
13 changed files with 300 additions and 49 deletions

View File

@@ -235,10 +235,10 @@ PersistentKeepalive = 5`
: "";
// am I at http or https?
let proto = "http:";
if (typeof window !== "undefined") {
proto = window.location.protocol;
}
let proto = "https:";
// if (typeof window !== "undefined") {
// proto = window.location.protocol;
// }
const newtConfig = `newt --id ${siteDefaults?.newtId} --secret ${siteDefaults?.newtSecret} --endpoint ${proto}//${siteDefaults?.endpoint}`;