Allow configuring the listen host (#9924)

This commit is contained in:
ledlamp
2023-02-22 00:51:40 -08:00
committed by GitHub
parent f68e13d905
commit 3dfe3aa9a4
5 changed files with 15 additions and 9 deletions

View File

@@ -15,6 +15,7 @@ export type Source = {
feedback_url?: string;
url: string;
port: number;
host: string;
disableHsts?: boolean;
db: {
host: string;
@@ -125,6 +126,7 @@ export function loadConfig() {
config.url = url.origin;
config.port = config.port ?? parseInt(process.env.PORT ?? '', 10);
config.host = config.host ?? process.env.HOST;
mixin.version = meta.version;
mixin.host = url.host;