Files
pronature-platform/backend/app/Config.js
T
2024-10-29 19:49:24 +02:00

41 lines
818 B
JavaScript

import path from 'path'
class Config{
name = 'config';
fs = {
repo: null
}
db = {
name:'pronature',
url: "mongodb://127.0.0.1:27017/pronature"
}
site = {
host:'https://localhost:5173',
ssl: true,
port: 3000,
certificate: {
key: './.cert/dev-key.pem',
cert: './.cert/dev-cert.pem',
passphrase: 'parola'
}
}
am = {
salt : 'P@ssSal7y!!',
cookie: {
secret: 'S3cret4C00k!ie$',
maxAge: 1000 * 60 * 60 * 24 * 7
}
}
async init(app){
if (!this.fs.repo){
this.fs.repo = path.resolve(`${app.root}/repo`) + '/';
}
}
async start(app){
}
}
export { Config };