From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id 9D62A1FF0E9 for ; Thu, 16 Jul 2026 10:49:55 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id A6D9C214B9; Thu, 16 Jul 2026 10:49:50 +0200 (CEST) From: Thomas Ellmenreich To: pve-devel@lists.proxmox.com Subject: [PATCH cluster/manager 0/2] Configurable window titles for nodes Date: Thu, 16 Jul 2026 10:48:05 +0200 Message-ID: <20260716084807.77400-1-t.ellmenreich@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1784191736362 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.259 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_LOW -0.7 Sender listed at https://www.dnswl.org/, low trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: PH3KZFHLQVV5UERMMN2U2F4TGBCU5SAW X-Message-ID-Hash: PH3KZFHLQVV5UERMMN2U2F4TGBCU5SAW X-MailFrom: t.ellmenreich@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Thomas Ellmenreich X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Thank you @Dominik Csapak for your comments. Configurable window titles for nodes ==================================== Currently the window title is fixed to the following string: $nodename - Proxmox Virtual Environment This has become problematic for users with multiple clusters, each containing the same node name. To help distinguish between tabs, it has been requested [1] that the window title be made configurable with the fqdn as an option. [1] https://bugzilla.proxmox.com/show_bug.cgi?id=5475 Implementation -------------- After considering the different options, I have deemed a server side implementation, through the datacenter.cfg, to be the better option. Specifically because of its durability across sessions and because it automatically configures the title for all users and all nodes across the cluster. The config file stores an enum string that will then be converted to a window title and inserted in the index.html.tpl file on every request. The current enum options are: - default - Displays the default '$nodename - Proxmox Virtual Environment' string if the config enum is not present - 'node-and-cluster' - Displays the nodename and then the clustername in the following style: '$nodename - $clustername - Proxmox Virtual Environment' - 'fqdn' - Displays the current fqdn as returned by `PVE::Tools::get_fqdn()` like so: '$fqdn - Proxmox Virtual Environment' Possible future extensions -------------------------- - If proper cross-node user settings are implemented in the future, they could be used to allow users to define their own window title settings and have these settings be persisted across sessions - One of the selection options for window titles could be a user defined template string which would allow users of PVE to define their own window titles. Changes since RFC ----------------- - change of the `datacenter.cfg` setting title from "windowtitle" to "window-title" - renamed `nodeandcluster` to `node-and-cluster` - added the " - Proxmox Virtual Environment" trailer to all titles - removed the questions from this text and added the "Possible future extensions" section pve-manager: Thomas Ellmenreich (1): fix #5475: configurable window title PVE/Service/pveproxy.pm | 21 +++++++++++++++++++++ www/index.html.tpl | 2 +- www/manager6/Utils.js | 11 +++++++++++ www/manager6/dc/OptionView.js | 6 ++++++ 4 files changed, 39 insertions(+), 1 deletion(-) pve-cluster: Thomas Ellmenreich (1): fix #5475: configurable window title src/PVE/DataCenterConfig.pm | 7 +++++++ 1 file changed, 7 insertions(+) Summary over all repositories: 5 files changed, 46 insertions(+), 1 deletions(-) -- Generated by murpp 0.12.0