This commit is contained in:
2024-10-29 19:49:24 +02:00
commit 11eb888b9c
42 changed files with 7877 additions and 0 deletions
+41
View File
@@ -0,0 +1,41 @@
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 };