mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-19 07:33:12 +09:00
Add master server Web Root config
Add web_root option to the master server and use it create URLs for resources hosted by it. This permits hosting the master server web interface behind reverse proxy under a dedicated path.
This commit is contained in:
1 parent
5e9d9097e1
commit
8ebf0fc754
9 files changed
+27
-15
No files matched your search
@@ -72,6 +72,7 @@ app.set('views', ['views', 'plugins']);
|
||||
|
||||
// give ejs access to some interesting information
|
||||
app.use(function(req, res, next){
|
||||
res.locals.root = masterConfig.get("master.web_root");
|
||||
res.locals.res = res;
|
||||
res.locals.req = req;
|
||||
res.locals.masterPlugins = masterPlugins;
|
||||
|
||||
Reference in new issue
Block a user