reference servefiles
This commit is contained in:
parent
7209cce6ee
commit
1878319717
@ -4,7 +4,7 @@
|
||||
"respawn": false
|
||||
},
|
||||
"serverOptions": {
|
||||
"serveFiles": "/files",
|
||||
"serveFiles": "./files",
|
||||
"callbackURL": "/api/login",
|
||||
"http": {
|
||||
"port": 4000
|
||||
|
@ -44,6 +44,8 @@ class Server extends EventEmitter {
|
||||
if (!httpOpts?.port) return Util.fatal(new Error(`Missing http.port in server options`));
|
||||
this.port = httpOpts.port + this._shardId;
|
||||
this.domain = NODE_ENV === 'development' ? `localhost:${this.port}` : options.domain;
|
||||
this.serveFiles = null;
|
||||
if (options.serveFiles) this.serveFiles = path.resolve(options.serveFiles);
|
||||
|
||||
this.server = null;
|
||||
this.app = express();
|
||||
|
Loading…
Reference in New Issue
Block a user