Update envar flow
This commit is contained in:
parent
e02f48f358
commit
c524c985c1
6 changed files with 12 additions and 34 deletions
|
@ -1,2 +0,0 @@
|
||||||
PORT=52026
|
|
||||||
REACT_APP_CAIRO_URL=http://localhost:52000
|
|
|
@ -1 +0,0 @@
|
||||||
REACT_APP_CAIRO_URL=http://cairo.dunestorm.net:52000
|
|
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -2,3 +2,6 @@
|
||||||
build/
|
build/
|
||||||
node_modules/
|
node_modules/
|
||||||
package-lock.json
|
package-lock.json
|
||||||
|
# Env files
|
||||||
|
.env
|
||||||
|
.env.development
|
||||||
|
|
|
@ -1,34 +1,12 @@
|
||||||
version: "3"
|
version: "3"
|
||||||
services:
|
services:
|
||||||
cairo.dunestorm.net:
|
|
||||||
image: cairo.dunestorm.net
|
|
||||||
ports:
|
|
||||||
- "52000:52000"
|
|
||||||
environment:
|
|
||||||
- ALEXANDRIA_DATABASE_PASSWORD=${ALEXANDRIA_DATABASE_PASSWORD}
|
|
||||||
|
|
||||||
nubian.dunestorm.net:
|
|
||||||
image: nubian.dunestorm.net
|
|
||||||
ports:
|
|
||||||
- "52001:52001"
|
|
||||||
environment:
|
|
||||||
- ALEXANDRIA_DATABASE_PASSWORD=${ALEXANDRIA_DATABASE_PASSWORD}
|
|
||||||
- CAIRO_URL=http://cairo.dunestorm.net:52000
|
|
||||||
|
|
||||||
khufu.dunestorm.net:
|
khufu.dunestorm.net:
|
||||||
image: khufu.dunestorm.net
|
image: khufu.dunestorm.net
|
||||||
build: .
|
build: .
|
||||||
ports:
|
ports:
|
||||||
- "80:52026"
|
- "80:52026"
|
||||||
|
networks:
|
||||||
alexandria.dunestorm.net:
|
- dunestorm_dev
|
||||||
image: mongo
|
networks:
|
||||||
environment:
|
dunestorm_dev:
|
||||||
- MONGO_INITDB_ROOT_USERNAME=admin
|
external: true
|
||||||
- MONGO_INITDB_ROOT_PASSWORD=${ALEXANDRIA_DATABASE_PASSWORD}
|
|
||||||
volumes:
|
|
||||||
- /home/dunemask/Documents/dev/Dunestorm/mongodb/database:/data/db
|
|
||||||
ports:
|
|
||||||
- "27017:27017"
|
|
||||||
restart: unless-stopped
|
|
||||||
command: --quiet
|
|
||||||
|
|
|
@ -46,8 +46,8 @@
|
||||||
},
|
},
|
||||||
"nodemonConfig": {
|
"nodemonConfig": {
|
||||||
"env": {
|
"env": {
|
||||||
"CAIRO_URL": "http://localhost:52000",
|
"CAIRO_PUBLIC_URL": "http://localhost:52000",
|
||||||
"NUBIAN_URL": "http://localhost:52001"
|
"NUBIAN_INTERNAL_URL": "http://localhost:52001"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
const { createProxyMiddleware } = require("http-proxy-middleware");
|
const { createProxyMiddleware } = require("http-proxy-middleware");
|
||||||
const cairoUrl = process.env.CAIRO_URL ?? "http://cairo.dunestorm.net:52000";
|
const cairoUrl = process.env.REACT_APP_CAIRO_PUBLIC_URL;
|
||||||
const nubianUrl = process.env.NUBIAN_URL ?? "http://nubian.dunestorm.net:52001";
|
const nubianUrl = process.env.NUBIAN_INTERNAL_URL;
|
||||||
module.exports = (app) => {
|
module.exports = (app) => {
|
||||||
// Cairo Proxy
|
// Cairo Proxy
|
||||||
app.use("/cairo", createProxyMiddleware({ target: cairoUrl }));
|
app.use("/cairo", createProxyMiddleware({ target: cairoUrl }));
|
||||||
|
|
Reference in a new issue