First commit
This commit is contained in:
66
instances/default/config.json
Normal file
66
instances/default/config.json
Normal 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
3
instances/default/gencert.sh
Executable 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
3
instances/default/start.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
node ../../src/app.js
|
||||
Reference in New Issue
Block a user