diff --git a/config.json b/config.json index ce6ea2e9..c57d5b9f 100644 --- a/config.json +++ b/config.json @@ -3,7 +3,7 @@ "factorioDirectory": "factorio", "__comment": "IP players should connect to to join your servers, should be portforwarded and stuff", - "publicIP": "192.168.10.1", + "publicIP": "localhost", "__comment": "IP the master web server runs at, can be ignored on the master system", "masterIP": "localhost", diff --git a/master.js b/master.js index 0867dce5..aad0e7fc 100644 --- a/master.js +++ b/master.js @@ -28,7 +28,8 @@ app.use(fileUpload()); // dynamic HTML generations with EJS app.set('views', path.join(__dirname, 'static')); -app.set('view engine', 'ejs'); +app.set('view engine', 'html'); +app.engine('html', ejs.renderFile); var routes = require("./routes.js"); routes(app); diff --git a/static/index.ejs b/static/index.html similarity index 100% rename from static/index.ejs rename to static/index.html diff --git a/static/nodeDetails.ejs b/static/nodeDetails.html similarity index 78% rename from static/nodeDetails.ejs rename to static/nodeDetails.html index 32ce63eb..e4080b1e 100644 --- a/static/nodeDetails.ejs +++ b/static/nodeDetails.html @@ -1,6 +1,8 @@
<%- include("head.html") %> + + diff --git a/static/nodes.ejs b/static/nodes.html similarity index 100% rename from static/nodes.ejs rename to static/nodes.html diff --git a/static/settings.ejs b/static/settings.html similarity index 100% rename from static/settings.ejs rename to static/settings.html