From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id C82101FF13C for ; Thu, 05 Mar 2026 11:36:51 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 662404918; Thu, 5 Mar 2026 11:37:56 +0100 (CET) From: Maximiliano Sandoval To: Dominik Rusovac Subject: Re: [PATCH datacenter-manager v2] ui: adjust testing description In-Reply-To: <20260305101814.103462-1-d.rusovac@proxmox.com> (Dominik Rusovac's message of "Thu, 5 Mar 2026 11:18:13 +0100") References: <20260305101814.103462-1-d.rusovac@proxmox.com> User-Agent: mu4e 1.12.9; emacs 30.1 Date: Thu, 05 Mar 2026 11:37:21 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1772707015407 X-SPAM-LEVEL: Spam detection results: 0 AWL -1.623 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment NUMERIC_HTTP_ADDR 1.242 Uses a numeric IP address in URL PROLO_LEO1 0.1 Meta Catches all Leo drug variations so far RCVD_IN_VALIDITY_CERTIFIED_BLOCKED 0.018 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_RPBL_BLOCKED 0.703 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_SAFE_BLOCKED 1.386 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record WEIRD_PORT 0.001 Uses non-standard port number for HTTP Message-ID-Hash: OUETB6GPQGXNGLVFTINLGANIMATDXN5F X-Message-ID-Hash: OUETB6GPQGXNGLVFTINLGANIMATDXN5F X-MailFrom: m.sandoval@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: pdm-devel@lists.proxmox.com X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox Datacenter Manager development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Dominik Rusovac writes: > Describe how to use trunk server for testing. > > Signed-off-by: Dominik Rusovac > --- > changes since v1: > * adjusted wording > * added PDM acronym > * added introduction with high-level description > > ui/README.md | 21 +++++++++------------ > 1 file changed, 9 insertions(+), 12 deletions(-) > > diff --git a/ui/README.md b/ui/README.md > index f083ea5..ec9b9d4 100644 > --- a/ui/README.md > +++ b/ui/README.md > @@ -1,21 +1,18 @@ > -# Experimental Yew GUI for Proxmox Datacenter Manager > +# Experimental Yew GUI for Proxmox Datacenter Manager (PDM) > > # Testing > > -1.) start datacenter manager > +For testing changes in the web UI with rapid development workflow, we recommend to: > > -sudo ./target/debug/proxmox-datacenter-privileged-api > -sudo -u www-data ./target/debug/proxmox-datacenter-api > +1. run a PDM daemon, which can be done on a virtual machine or an existing instance; and > +2. use [trunk](https://github.com/trunk-rs/trunk), which builds the web UI upon changes and proxies API calls to the PDM daemon, so the frontend can talk to the PDM during development. > > -2.) either: start local trunk server > +Assuming PDM is reachable via 172.16.254.1:8443. > > - trunk serve --proxy-backend=https://localhost:8443/api2/ --proxy-insecure > +To test on http://localhost:8080, use: > > - then test with url: http://localhost:8080 > + trunk serve --proxy-backend=https://172.16.254.1:8443/api2/ --proxy-insecure > > -2.) or: copy files into pdm js folder: > +To test elsewhere with a secure connection, say https://dev:8080/, generate a cert to obtain `api.key` and `api.pem`, and use: > > - make all > - make install > - > -And test with url https://localhost:8443 > + trunk serve --address 0.0.0.0 --serve-base / --proxy-backend https://172.16.254.1:8443/api2/ --public-url https://dev:8080/ --proxy-insecure --tls-key-path api.key --tls-cert-path api.pem Looks good to me, thanks! Reviewed-by: Maximiliano Sandoval -- Maximiliano