WIP - page layout first version working

This commit is contained in:
Francisco Gaona
2025-12-22 23:48:09 +01:00
parent be6e34914e
commit eff8f32c9d
26 changed files with 2972 additions and 39 deletions

View File

@@ -43,10 +43,13 @@ function decryptPassword(encryptedPassword: string): string {
function createTenantKnexConnection(tenant: any): Knex {
const decryptedPassword = decryptPassword(tenant.dbPassword);
// Replace 'db' hostname with 'localhost' when running outside Docker
const dbHost = tenant.dbHost === 'db' ? 'localhost' : tenant.dbHost;
return knex({
client: 'mysql2',
connection: {
host: tenant.dbHost,
host: dbHost,
port: tenant.dbPort,
user: tenant.dbUsername,
password: decryptedPassword,