Created envars and updated config flow
This commit is contained in:
parent
0e424ec5fa
commit
d4b5a555b9
12 changed files with 56 additions and 62 deletions
|
@ -1,10 +0,0 @@
|
|||
const express = require("express");
|
||||
const { createProxyMiddleware } = require("http-proxy-middleware");
|
||||
const port = process.env.PORT || 52026;
|
||||
const cairoUrl = process.env.CAIRO_URL || "http://cairo.dunestorm.net:52000";
|
||||
const nubianUrl = process.env.NUBIAN_URL || "http://nubian.dunestorm.net:52001";
|
||||
const app = express();
|
||||
app.use("/", express.static("build"));
|
||||
app.use("/api/cairo", createProxyMiddleware({ target: cairoUrl }));
|
||||
app.use("/api/nubian", createProxyMiddleware({ target: nubianUrl }));
|
||||
app.listen(port, () => console.log(`🌴 Nile server started on ${port}! 🌴`));
|
Reference in a new issue