From d8f02f433676713713f90ce4ba6254b7708fe403 Mon Sep 17 00:00:00 2001 From: Michal Fox Date: Sat, 3 Oct 2026 01:25:27 +0200 Subject: [PATCH] fix #4588: ui: acme: allow setting the alias of DNS domains Domains validated with the DNS challenge can have an alias, so that the challenge record is created on another domain, which the '_acme-challenge' record of the domain points to with a CNAME. This is useful if the DNS plugin should not be able to update the zone of the domain itself. But the alias could only be set on the CLI, as the edit window only kept an existing one in a hidden field. Show it as a text field for domains with the DNS challenge type, like the plugin. Signed-off-by: Michal Fox --- www/manager6/node/ACME.js | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/www/manager6/node/ACME.js b/www/manager6/node/ACME.js index 773d0d2..7194fd0 100644 --- a/www/manager6/node/ACME.js +++ b/www/manager6/node/ACME.js @@ -332,16 +332,14 @@ Ext.define('PVE.node.ACMEDomainEdit', { change: function (cb, value) { let me = this; let view = me.up('pveACMEDomainEdit'); - let pluginField = view.down('field[name=plugin]'); - pluginField.setDisabled(value !== 'dns'); - pluginField.setHidden(value !== 'dns'); + for (const name of ['plugin', 'alias']) { + let field = view.down(`field[name=${name}]`); + field.setDisabled(value !== 'dns'); + field.setHidden(value !== 'dns'); + } }, }, }, - { - xtype: 'hidden', - name: 'alias', - }, { xtype: 'pveACMEPluginSelector', name: 'plugin', @@ -357,6 +355,14 @@ Ext.define('PVE.node.ACMEDomainEdit', { value: '', fieldLabel: gettext('Domain'), }, + { + xtype: 'proxmoxtextfield', + name: 'alias', + disabled: true, + hidden: true, + fieldLabel: gettext('Alias'), + emptyText: Proxmox.Utils.noneText, + }, ], }, ],