mirror of
https://github.com/fosrl/pangolin.git
synced 2025-12-15 12:36:36 +00:00
Adjust const one more time
This commit is contained in:
@@ -37,8 +37,7 @@ export default async function migration() {
|
||||
|
||||
// Read and parse the YAML file
|
||||
const fileContents = fs.readFileSync(filePath, "utf8");
|
||||
const rawConfig: any;
|
||||
rawConfig = yaml.load(fileContents);
|
||||
const rawConfig = yaml.load(fileContents) as any;
|
||||
|
||||
if (rawConfig.server?.trust_proxy) {
|
||||
rawConfig.server.trust_proxy = 1;
|
||||
|
||||
@@ -24,8 +24,7 @@ export default async function migration() {
|
||||
|
||||
// Read and parse the YAML file
|
||||
const fileContents = fs.readFileSync(filePath, "utf8");
|
||||
const rawConfig: any;
|
||||
rawConfig = yaml.load(fileContents);
|
||||
const rawConfig = yaml.load(fileContents) as any;
|
||||
|
||||
delete rawConfig.server.secure_cookies;
|
||||
|
||||
|
||||
@@ -26,8 +26,7 @@ export default async function migration() {
|
||||
|
||||
// Read and parse the YAML file
|
||||
const fileContents = fs.readFileSync(filePath, "utf8");
|
||||
const rawConfig: any;
|
||||
rawConfig = yaml.load(fileContents);
|
||||
const rawConfig = yaml.load(fileContents) as any;
|
||||
|
||||
if (!rawConfig.flags) {
|
||||
rawConfig.flags = {};
|
||||
|
||||
@@ -31,8 +31,7 @@ export default async function migration() {
|
||||
|
||||
// Read and parse the YAML file
|
||||
const fileContents = fs.readFileSync(filePath, "utf8");
|
||||
const rawConfig: any;
|
||||
rawConfig = yaml.load(fileContents);
|
||||
const rawConfig = yaml.load(fileContents) as any;
|
||||
|
||||
const baseDomain = rawConfig.app.base_domain;
|
||||
const certResolver = rawConfig.traefik.cert_resolver;
|
||||
|
||||
@@ -23,8 +23,7 @@ export default async function migration() {
|
||||
|
||||
// Read and parse the YAML file
|
||||
const fileContents = fs.readFileSync(filePath, "utf8");
|
||||
const rawConfig: any;
|
||||
rawConfig = yaml.load(fileContents);
|
||||
const rawConfig = yaml.load(fileContents) as any;
|
||||
|
||||
// Validate the structure
|
||||
if (!rawConfig.app || !rawConfig.app.base_url) {
|
||||
|
||||
@@ -23,8 +23,7 @@ export default async function migration() {
|
||||
|
||||
// Read and parse the YAML file
|
||||
const fileContents = fs.readFileSync(filePath, "utf8");
|
||||
const rawConfig: any;
|
||||
rawConfig = yaml.load(fileContents);
|
||||
const rawConfig = yaml.load(fileContents) as any;
|
||||
|
||||
// Validate the structure
|
||||
if (!rawConfig.gerbil) {
|
||||
|
||||
@@ -26,8 +26,7 @@ export default async function migration() {
|
||||
|
||||
// Read and parse the YAML file
|
||||
const fileContents = fs.readFileSync(filePath, "utf8");
|
||||
const rawConfig: any;
|
||||
rawConfig = yaml.load(fileContents);
|
||||
const rawConfig = yaml.load(fileContents) as any;
|
||||
|
||||
// Validate the structure
|
||||
if (!rawConfig.server) {
|
||||
|
||||
@@ -24,8 +24,7 @@ export default async function migration() {
|
||||
|
||||
// Read and parse the YAML file
|
||||
const fileContents = fs.readFileSync(filePath, "utf8");
|
||||
const rawConfig: any;
|
||||
rawConfig = yaml.load(fileContents);
|
||||
const rawConfig = yaml.load(fileContents) as any;
|
||||
|
||||
// Validate the structure
|
||||
if (!rawConfig.server) {
|
||||
|
||||
@@ -59,8 +59,7 @@ export default async function migration() {
|
||||
|
||||
// Read and parse the YAML file
|
||||
const fileContents = fs.readFileSync(filePath, "utf8");
|
||||
const rawConfig: any;
|
||||
rawConfig = yaml.load(fileContents);
|
||||
const rawConfig = yaml.load(fileContents) as any;
|
||||
|
||||
rawConfig.server.resource_session_request_param =
|
||||
"p_session_request";
|
||||
|
||||
@@ -44,8 +44,7 @@ export default async function migration() {
|
||||
|
||||
// Read and parse the YAML file
|
||||
const fileContents = fs.readFileSync(filePath, "utf8");
|
||||
const rawConfig: any;
|
||||
rawConfig = yaml.load(fileContents);
|
||||
const rawConfig = yaml.load(fileContents) as any;
|
||||
|
||||
if (!rawConfig.flags) {
|
||||
rawConfig.flags = {};
|
||||
|
||||
@@ -177,8 +177,7 @@ export default async function migration() {
|
||||
}
|
||||
|
||||
const fileContents = fs.readFileSync(filePath, "utf8");
|
||||
const rawConfig: any;
|
||||
rawConfig = yaml.load(fileContents);
|
||||
const rawConfig = yaml.load(fileContents) as any;
|
||||
|
||||
if (!rawConfig.server.secret) {
|
||||
rawConfig.server.secret = generateIdFromEntropySize(32);
|
||||
|
||||
@@ -45,8 +45,7 @@ export default async function migration() {
|
||||
|
||||
// Read and parse the YAML file
|
||||
const fileContents = fs.readFileSync(filePath, "utf8");
|
||||
const rawConfig: any;
|
||||
rawConfig = yaml.load(fileContents);
|
||||
const rawConfig = yaml.load(fileContents) as any;
|
||||
|
||||
if (rawConfig.cors?.headers) {
|
||||
const headers = JSON.parse(
|
||||
|
||||
@@ -46,8 +46,7 @@ export default async function migration() {
|
||||
|
||||
// Read and parse the YAML file
|
||||
const fileContents = fs.readFileSync(filePath, "utf8");
|
||||
const rawConfig: any;
|
||||
rawConfig = yaml.load(fileContents);
|
||||
const rawConfig = yaml.load(fileContents) as any;
|
||||
|
||||
if (rawConfig.server?.trust_proxy) {
|
||||
rawConfig.server.trust_proxy = 1;
|
||||
|
||||
Reference in New Issue
Block a user