mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-04-07 14:04:35 +08:00
[bug] Fix start with production config
This commit is contained in:
@ -32,7 +32,7 @@
|
||||
|
||||
'use strict';
|
||||
|
||||
const config = require("config");
|
||||
const config = require('config');
|
||||
const constants = require('./constants');
|
||||
|
||||
function InputCommand(data, copyExplicit) {
|
||||
|
||||
@ -32,7 +32,7 @@
|
||||
|
||||
'use strict';
|
||||
const express = require('express');
|
||||
const config = require("config");
|
||||
const config = require('config');
|
||||
const operationContext = require('./../../../Common/sources/operationContext');
|
||||
const utils = require('./../../../Common/sources/utils');
|
||||
const storage = require('./../../../Common/sources/storage/storage-base');
|
||||
@ -40,7 +40,7 @@ const urlModule = require("url");
|
||||
const path = require("path");
|
||||
const mime = require("mime");
|
||||
|
||||
const cfgStaticContent = config.has('services.CoAuthoring.server.static_content') ? config.get('services.CoAuthoring.server.static_content') : {};
|
||||
const cfgStaticContent = config.has('services.CoAuthoring.server.static_content') ? config.util.cloneDeep(config.get('services.CoAuthoring.server.static_content')) : {};
|
||||
const cfgCacheStorage = config.get('storage');
|
||||
const cfgPersistentStorage = utils.deepMergeObjects({}, cfgCacheStorage, config.get('persistentStorage'));
|
||||
const cfgForgottenFiles = config.get('services.CoAuthoring.server.forgottenfiles');
|
||||
|
||||
Reference in New Issue
Block a user