From: Dessalines Date: Tue, 30 Mar 2021 01:17:19 +0000 (-0400) Subject: Fixing lemmy-ui default port. X-Git-Url: http://these/git/%22%7Burl%7D/static/%7Bpost_view.post.url%7D?a=commitdiff_plain;h=e152b353d78a9e88371c1394ae48c384c1867df1;p=lemmy-ui.git Fixing lemmy-ui default port. --- diff --git a/src/server/index.tsx b/src/server/index.tsx index 7873db3..551fd74 100644 --- a/src/server/index.tsx +++ b/src/server/index.tsx @@ -21,8 +21,9 @@ import { IncomingHttpHeaders } from "http"; import { setOptionalAuth } from "../shared/utils"; const server = express(); -const hostname = process.env["LEMMY_UI_HOST"] || "localhost"; -const port = process.env["LEMMY_UI_PORT"] || 1234; +const [hostname, port] = process.env["LEMMY_INTERNAL_HOST"] + ? process.env["LEMMY_INTERNAL_HOST"].split(":") + : ["0.0.0.0", "1234"]; server.use(express.json()); server.use(express.urlencoded({ extended: false }));