Merge branch 'main' into dev

This commit is contained in:
Owen
2025-08-10 10:16:47 -07:00
43 changed files with 898 additions and 346 deletions

View File

@@ -23,8 +23,8 @@ export default async function migration() {
}
// Read and parse the YAML file
let rawConfig: any;
const fileContents = fs.readFileSync(filePath, "utf8");
let rawConfig: any;
rawConfig = yaml.load(fileContents);
delete rawConfig.server.secure_cookies;

View File

@@ -25,8 +25,8 @@ export default async function migration() {
}
// Read and parse the YAML file
let rawConfig: any;
const fileContents = fs.readFileSync(filePath, "utf8");
let rawConfig: any;
rawConfig = yaml.load(fileContents);
if (!rawConfig.flags) {

View File

@@ -30,8 +30,8 @@ export default async function migration() {
}
// Read and parse the YAML file
let rawConfig: any;
const fileContents = fs.readFileSync(filePath, "utf8");
let rawConfig: any;
rawConfig = yaml.load(fileContents);
const baseDomain = rawConfig.app.base_domain;

View File

@@ -22,8 +22,8 @@ export default async function migration() {
}
// Read and parse the YAML file
let rawConfig: any;
const fileContents = fs.readFileSync(filePath, "utf8");
let rawConfig: any;
rawConfig = yaml.load(fileContents);
// Validate the structure

View File

@@ -22,8 +22,8 @@ export default async function migration() {
}
// Read and parse the YAML file
let rawConfig: any;
const fileContents = fs.readFileSync(filePath, "utf8");
let rawConfig: any;
rawConfig = yaml.load(fileContents);
// Validate the structure

View File

@@ -25,8 +25,8 @@ export default async function migration() {
}
// Read and parse the YAML file
let rawConfig: any;
const fileContents = fs.readFileSync(filePath, "utf8");
let rawConfig: any;
rawConfig = yaml.load(fileContents);
// Validate the structure

View File

@@ -23,8 +23,8 @@ export default async function migration() {
}
// Read and parse the YAML file
let rawConfig: any;
const fileContents = fs.readFileSync(filePath, "utf8");
let rawConfig: any;
rawConfig = yaml.load(fileContents);
// Validate the structure

View File

@@ -58,8 +58,8 @@ export default async function migration() {
}
// Read and parse the YAML file
let rawConfig: any;
const fileContents = fs.readFileSync(filePath, "utf8");
let rawConfig: any;
rawConfig = yaml.load(fileContents);
rawConfig.server.resource_session_request_param =
@@ -122,7 +122,7 @@ export default async function migration() {
const traefikFileContents = fs.readFileSync(traefikPath, "utf8");
const traefikConfig = yaml.load(traefikFileContents) as any;
let parsedConfig: any = schema.safeParse(traefikConfig);
const parsedConfig: any = schema.safeParse(traefikConfig);
if (parsedConfig.success) {
// Ensure websecure entrypoint exists
@@ -179,7 +179,7 @@ export default async function migration() {
const traefikFileContents = fs.readFileSync(traefikPath, "utf8");
const traefikConfig = yaml.load(traefikFileContents) as any;
let parsedConfig: any = schema.safeParse(traefikConfig);
const parsedConfig: any = schema.safeParse(traefikConfig);
if (parsedConfig.success) {
// delete permanent from redirect-to-https middleware

View File

@@ -43,8 +43,8 @@ export default async function migration() {
}
// Read and parse the YAML file
let rawConfig: any;
const fileContents = fs.readFileSync(filePath, "utf8");
let rawConfig: any;
rawConfig = yaml.load(fileContents);
if (!rawConfig.flags) {

View File

@@ -177,7 +177,8 @@ export default async function migration() {
}
const fileContents = fs.readFileSync(filePath, "utf8");
let rawConfig: any = yaml.load(fileContents);
let rawConfig: any;
rawConfig = yaml.load(fileContents);
if (!rawConfig.server.secret) {
rawConfig.server.secret = generateIdFromEntropySize(32);

View File

@@ -44,8 +44,8 @@ export default async function migration() {
}
// Read and parse the YAML file
let rawConfig: any;
const fileContents = fs.readFileSync(filePath, "utf8");
let rawConfig: any;
rawConfig = yaml.load(fileContents);
if (rawConfig.cors?.headers) {

View File

@@ -45,8 +45,8 @@ export default async function migration() {
}
// Read and parse the YAML file
let rawConfig: any;
const fileContents = fs.readFileSync(filePath, "utf8");
let rawConfig: any;
rawConfig = yaml.load(fileContents);
if (rawConfig.server?.trust_proxy) {