Initial commit
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
# server configuration
|
||||
INTERNAL_DB_HOST=selfdev-mariadb
|
||||
INTERNAL_DB_PORT=3306
|
||||
INTERNAL_DASHBOARD_PORT=3001
|
||||
|
||||
# security configuration
|
||||
INTERNAL_SECRET=53638124b089c718137c6f2a91fa2dfa157c0b440a4dcf695b810fc0dd8f2416
|
||||
API_SECRET=19cc352caabec690e55575e339ae2011a7724af85b6cf59e4c4a08b166a6cb8a
|
||||
MASTER_PEPPER=2d49d7e0367bdcbccc6ba063057654121bb41b4fccad8345cb046faab7a9db12
|
||||
MASTER_SALT=51656
|
||||
AUTH_SALT=25066
|
||||
|
||||
# SMPT information
|
||||
SMTP_HOST=smtp.strato.de
|
||||
SMTP_PORT=465
|
||||
SMTP_USER=noreply@lupinexmedia.de
|
||||
SMTP_PASS="Gk70mdF3UaRgWKvxbwP5"
|
||||
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
! /configuration/mapping.js
|
||||
= Central Mapping Configuration
|
||||
*/
|
||||
import path from 'path';
|
||||
import url from 'url';
|
||||
import dotenv from 'dotenv';
|
||||
|
||||
// $ import .env
|
||||
const __filename = url.fileURLToPath(import.meta.url);
|
||||
const __dirname = path.dirname(__filename);
|
||||
dotenv.config({ path: path.resolve(__dirname, '.env') });
|
||||
|
||||
// % declare directories
|
||||
const rootDir = path.resolve(__dirname, '..');
|
||||
const dirs = {
|
||||
rootDir: rootDir,
|
||||
serverDir: path.resolve(rootDir, 'servers'),
|
||||
|
||||
// § data structure directories
|
||||
configDir: path.resolve(rootDir, 'configuration'),
|
||||
dataDir: path.resolve(rootDir, 'database'),
|
||||
|
||||
// § other directories
|
||||
serviceDir: path.resolve(rootDir, 'services'),
|
||||
interfaceDir: path.resolve(rootDir, 'ui'),
|
||||
resourcesDir: path.resolve(rootDir, 'resources')
|
||||
};
|
||||
|
||||
// % set database config
|
||||
const dbConfig = {
|
||||
host: process.env.INTERNAL_DB_HOST,
|
||||
port: process.env.INTERNAL_DB_PORT,
|
||||
databases: {},
|
||||
users: {}
|
||||
};
|
||||
|
||||
export { dirs, dbConfig };
|
||||
Reference in New Issue
Block a user