mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
postgres db
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
export class DatabaseConfig {
|
||||
public POSTGRES_HOST: string = process.env.POSTGRES_HOST || 'postgres';
|
||||
public POSTGRES_PORT: number = parseInt(process.env.POSTGRES_PORT || '5432');
|
||||
public POSTGRES_DATABASE: string = process.env.POSTGRES_DATABASE || 'knightcrawler';
|
||||
public POSTGRES_DB: string = process.env.POSTGRES_DB || 'knightcrawler';
|
||||
public POSTGRES_USER: string = process.env.POSTGRES_USER || 'postgres';
|
||||
public POSTGRES_PASSWORD: string = process.env.POSTGRES_PASSWORD || 'postgres';
|
||||
|
||||
public get POSTGRES_URI() {
|
||||
return `postgres://${this.POSTGRES_USER}:${this.POSTGRES_PASSWORD}@${this.POSTGRES_HOST}:${this.POSTGRES_PORT}/${this.POSTGRES_DATABASE}`;
|
||||
return `postgres://${this.POSTGRES_USER}:${this.POSTGRES_PASSWORD}@${this.POSTGRES_HOST}:${this.POSTGRES_PORT}/${this.POSTGRES_DB}`;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user