mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-25 07:36:37 +00:00
Fixing lemmy-ui default port.
This commit is contained in:
parent
9d8123eb7d
commit
e152b353d7
|
@ -21,8 +21,9 @@ import { IncomingHttpHeaders } from "http";
|
||||||
import { setOptionalAuth } from "../shared/utils";
|
import { setOptionalAuth } from "../shared/utils";
|
||||||
|
|
||||||
const server = express();
|
const server = express();
|
||||||
const hostname = process.env["LEMMY_UI_HOST"] || "localhost";
|
const [hostname, port] = process.env["LEMMY_INTERNAL_HOST"]
|
||||||
const port = process.env["LEMMY_UI_PORT"] || 1234;
|
? process.env["LEMMY_INTERNAL_HOST"].split(":")
|
||||||
|
: ["0.0.0.0", "1234"];
|
||||||
|
|
||||||
server.use(express.json());
|
server.use(express.json());
|
||||||
server.use(express.urlencoded({ extended: false }));
|
server.use(express.urlencoded({ extended: false }));
|
||||||
|
|
Loading…
Reference in a new issue