Using LEMMY_UI_HOST

This commit is contained in:
Dessalines 2021-03-29 21:46:42 -04:00
parent e152b353d7
commit 6cec37322a

View file

@ -21,8 +21,8 @@ import { IncomingHttpHeaders } from "http";
import { setOptionalAuth } from "../shared/utils"; import { setOptionalAuth } from "../shared/utils";
const server = express(); const server = express();
const [hostname, port] = process.env["LEMMY_INTERNAL_HOST"] const [hostname, port] = process.env["LEMMY_UI_HOST"]
? process.env["LEMMY_INTERNAL_HOST"].split(":") ? process.env["LEMMY_UI_HOST"].split(":")
: ["0.0.0.0", "1234"]; : ["0.0.0.0", "1234"];
server.use(express.json()); server.use(express.json());