From: Dessalines Date: Tue, 30 Mar 2021 01:46:42 +0000 (-0400) Subject: Using LEMMY_UI_HOST X-Git-Url: http://these/git/%22https:/nerdica.net/README.md?a=commitdiff_plain;h=6cec37322a319a69a9cbe1e4845f4b2babcc5ba2;p=lemmy-ui.git Using LEMMY_UI_HOST --- diff --git a/src/server/index.tsx b/src/server/index.tsx index 551fd74..1c58ca8 100644 --- a/src/server/index.tsx +++ b/src/server/index.tsx @@ -21,8 +21,8 @@ import { IncomingHttpHeaders } from "http"; import { setOptionalAuth } from "../shared/utils"; const server = express(); -const [hostname, port] = process.env["LEMMY_INTERNAL_HOST"] - ? process.env["LEMMY_INTERNAL_HOST"].split(":") +const [hostname, port] = process.env["LEMMY_UI_HOST"] + ? process.env["LEMMY_UI_HOST"].split(":") : ["0.0.0.0", "1234"]; server.use(express.json());