diff --git a/config/config.example.js b/config/config.example.js index a49d66d90..6a8422b0c 100644 --- a/config/config.example.js +++ b/config/config.example.js @@ -46,7 +46,7 @@ module.exports = { * cryptpad/docs/example.nginx.conf (see the $main_domain variable) * */ - httpUnsafeOrigin: 'http://localhost:3000/', + httpUnsafeOrigin: 'http://127.0.0.1:3000/ http://localhost:3000', /* httpSafeOrigin is the URL that is used for the 'sandbox' described above. * If you're testing or developing with CryptPad on your local machine then diff --git a/scripts/migrations/migrate-tasks-v1.js b/scripts/migrations/migrate-tasks-v1.js index 40b8d7a87..a093f9799 100644 --- a/scripts/migrations/migrate-tasks-v1.js +++ b/scripts/migrations/migrate-tasks-v1.js @@ -8,14 +8,14 @@ var config = require("../../lib/load-config"); // but the API requires it, and I don't feel like changing that // --ansuz var FileStorage = require("../../lib/storage/file"); - var tasks; nThen(function (w) { Logger.create(config, w(function (_log) { config.log = _log; })); }).nThen(function (w) { - FileStorage.create(config, w(function (_store) { + FileStorage.create(config, w(function (err, _store) { + if (err) { throw err; } config.store = _store; })); }).nThen(function (w) {