Use name of the cluster as web title

Set the title attribute of the web interface page to the name of the
cluster.
This commit is contained in:
Hornwitser committed 2022-06-08 21:01:36 +02:00
1 parent 8742b4127c
commit 48a57bf16c
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -641,6 +641,7 @@ class Master {
fs.readFile(path.join(__dirname, "..", "web", "index.html"), "utf8").then((content) => {
res.type("text/html");
res.send(content
.replace(/__CLUSTER_NAME__/g, res.app.locals.master.config.get("master.name"))
.replace(/__WEB_ROOT__/g, webRoot)
.replace(/__STATIC_ROOT__/g, staticRoot)
.replace(/__MAIN_BUNDLE__/g, mainBundle)