1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00

Use HTTP_HOST env variable as default host address

This commit is contained in:
Ivar Conradi Østhus 2018-05-06 13:01:28 +02:00
parent c1956ac623
commit 206b1445ef

View File

@ -8,7 +8,7 @@ const THIRTY_DAYS = 30 * 24 * 60 * 60 * 1000;
const DEFAULT_OPTIONS = {
databaseUrl: process.env.DATABASE_URL,
port: process.env.HTTP_PORT || process.env.PORT || 4242,
host: undefined,
host: process.env.HTTP_HOST,
baseUriPath: process.env.BASE_URI_PATH || '',
serverMetrics: true,
enableLegacyRoutes: true,