Работа над RemoteLib

This commit is contained in:
Book Pauk
2022-10-07 17:59:34 +07:00
parent 8bec2275ae
commit e6dfe4d221
7 changed files with 155 additions and 66 deletions

View File

@@ -2,7 +2,6 @@ const path = require('path');
const pckg = require('../../package.json');
const execDir = path.resolve(__dirname, '..');
const dataDir = `${execDir}/.${pckg.name}`;
module.exports = {
branch: 'unknown',
@@ -10,10 +9,6 @@ module.exports = {
name: pckg.name,
execDir,
dataDir,
tempDir: `${dataDir}/tmp`,
logDir: `${dataDir}/log`,
publicDir: `${dataDir}/public`,
accessPassword: '',
bookReadLink: '',
@@ -27,6 +22,16 @@ module.exports = {
webConfigParams: ['name', 'version', 'branch', 'bookReadLink'],
allowRemoteLib: false,
remoteLib: false,
/*
allowRemoteLib: true, // на сервере
remoteLib: { // на клиенте
accessPassword: '',
url: 'wss://remoteInpxWeb.ru',
},
*/
server: {
ip: '0.0.0.0',
port: '22380',