mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Work on reactive design
This commit is contained in:
@@ -37,6 +37,7 @@ module.exports = function (configLocation) {
|
||||
/* Define middleware */
|
||||
app.use(logger('dev'));
|
||||
app.use('/olympus', createProxyMiddleware({ target: `http://${backendAddress === '*'? 'localhost': backendAddress}:${config["backend"]["port"]}`, changeOrigin: true }));
|
||||
app.use('/vite', createProxyMiddleware({ target: `http://localhost:8080/`, ws: true }));
|
||||
app.use(bodyParser.json({ limit: '50mb' }));
|
||||
app.use(bodyParser.urlencoded({ limit: '50mb', extended: true }));
|
||||
app.use(express.static(path.join(__dirname, 'public')));
|
||||
|
||||
@@ -501,7 +501,6 @@ module.exports = function (configLocation) {
|
||||
if (auth) {
|
||||
var username = Buffer.from(auth.replace("Basic ", ""), 'base64').toString('binary').split(":")[0];
|
||||
var password = Buffer.from(auth.replace("Basic ", ""), 'base64').toString('binary').split(":")[1];
|
||||
console.log(password)
|
||||
switch (password) {
|
||||
case "8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918":
|
||||
ret.mission.commandModeOptions.commandMode = "Game master";
|
||||
|
||||
Reference in New Issue
Block a user