1
0

First commit

This commit is contained in:
2024-10-27 04:43:07 +01:00
parent 1dae13fe7e
commit 35f37491af
20 changed files with 2120 additions and 0 deletions

View File

@@ -0,0 +1,66 @@
{
"servers": [
{
"features": {
"api": false,
"client": true,
"create": true,
"createPath": "/"
},
"http": {
"port": 3080
},
"https": {
"cert": "./cert.crt",
"key": "./cert.key",
"port": 3443
}
},
{
"features": {
"api": true,
"client": false,
"create": true
},
"http": {
"port": 3081
},
"https": {
"cert": "./cert.crt",
"key": "./cert.key",
"port": 3444
}
}
],
"vault": {
"db": {
"type": "file",
"filename": "./vault.json"
},
"crypto": {
"method": "aes-256-gcm",
"key": "Djblt6b8RQ+mQC6/ilpjC6y9bkfUEzkt",
"iv": "dsfnuo3"
},
"publicID": {
"minLength": 37,
"maxLength": 45
},
"otLinkID": {
"minLength": 37,
"maxLength": 45,
"timeout": 360
}
},
"mailer": {
"sender": "Secret Sender <me@domain>",
"server": {
"host": "127.0.0.1",
"port": 25,
"secure": false,
"tls": {
"rejectUnauthorized": false
}
}
}
}

3
instances/default/gencert.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
openssl req -new -newkey ec -pkeyopt ec_paramgen_curve:prime256v1 -x509 -nodes -days 3650 -out ./cert.crt -keyout ./cert.key -subj "/C=/ST=/L=/O=/OU=/CN="

3
instances/default/start.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
node ../../src/app.js