migrate secrets into the database

the infra version is bumped because the nginx's dhparams path has changed
and the sftp server key path has changed.
This commit is contained in:
Girish Ramakrishnan
2021-05-02 23:28:41 -07:00
parent 4015f8fdf2
commit c17743d869
19 changed files with 195 additions and 99 deletions

View File

@@ -7,6 +7,7 @@ exports = module.exports = {
let assert = require('assert'),
async = require('async'),
blobs = require('./blobs.js'),
cloudron = require('./cloudron.js'),
constants = require('./constants.js'),
database = require('./database.js'),
@@ -18,6 +19,7 @@ let assert = require('assert'),
routes = require('./routes/index.js'),
settings = require('./settings.js'),
users = require('./users.js'),
util = require('util'),
ws = require('ws');
let gHttpServer = null;
@@ -367,6 +369,7 @@ function start(callback) {
async.series([
database.initialize,
settings.initCache, // pre-load very often used settings
blobs.initSecrets,
cloudron.initialize,
gHttpServer.listen.bind(gHttpServer, constants.PORT, '127.0.0.1'),
eventlog.add.bind(null, eventlog.ACTION_START, { userId: null, username: 'boot' }, { version: constants.VERSION })