forked from mirror/misskey
設定でポートが指定されていない場合、環境変数を参照するように
This commit is contained in:
parent
7dc5009ec7
commit
0ba92a4f29
@ -29,6 +29,8 @@ export default function load() {
|
||||
|
||||
config.url = normalizeUrl(config.url);
|
||||
|
||||
config.port = config.port || parseInt(process.env.PORT, 10);
|
||||
|
||||
mixin.host = url.host;
|
||||
mixin.hostname = url.hostname;
|
||||
mixin.scheme = url.protocol.replace(/:$/, '');
|
||||
|
Loading…
Reference in New Issue
Block a user