mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-22 19:01:26 +00:00
Using LEMMY_UI_HOST
This commit is contained in:
parent
e152b353d7
commit
6cec37322a
1 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue