runable
This commit is contained in:
@@ -11,7 +11,7 @@ export default registerAs(
|
||||
(): TypeOrmModuleOptions => ({
|
||||
type: 'postgres',
|
||||
host: process.env.DB_HOST || 'localhost',
|
||||
port: parseInt(process.env.DB_PORT, 10) || 5432,
|
||||
port: parseInt(process.env.DB_PORT || '', 10) || 5432,
|
||||
username: process.env.DB_USERNAME || 'postgres',
|
||||
password: process.env.DB_PASSWORD || 'postgres',
|
||||
database: process.env.DB_DATABASE || 'retail_pos',
|
||||
@@ -20,9 +20,6 @@ export default registerAs(
|
||||
logging: process.env.NODE_ENV === 'development',
|
||||
migrations: ['dist/database/migrations/*.js'],
|
||||
migrationsRun: false, // Run migrations manually
|
||||
ssl:
|
||||
process.env.NODE_ENV === 'production'
|
||||
? { rejectUnauthorized: false }
|
||||
: false,
|
||||
ssl: process.env.DB_SSL === 'true' ? { rejectUnauthorized: false } : false,
|
||||
}),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user