all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Maximiliano Sandoval <m.sandoval@proxmox.com>
To: Dominik Rusovac <d.rusovac@proxmox.com>
Cc: pdm-devel@lists.proxmox.com
Subject: Re: [PATCH datacenter-manager] ui: adjust testing description
Date: Wed, 04 Mar 2026 09:32:32 +0100	[thread overview]
Message-ID: <s8otsuwj8pr.fsf@toolbox> (raw)
In-Reply-To: <20260304070422.17185-1-d.rusovac@proxmox.com> (Dominik Rusovac's message of "Wed, 4 Mar 2026 08:04:22 +0100")

Dominik Rusovac <d.rusovac@proxmox.com> writes:

> Describe how to use trunk server for testing.
>
> Signed-off-by: Dominik Rusovac <d.rusovac@proxmox.com>
> ---
>  ui/README.md | 18 +++++-------------
>  1 file changed, 5 insertions(+), 13 deletions(-)
>
> diff --git a/ui/README.md b/ui/README.md
> index f083ea5..05d8ae6 100644
> --- a/ui/README.md
> +++ b/ui/README.md
> @@ -2,20 +2,12 @@
>  
>  # Testing
>  
> -1.) start datacenter manager
> +Assuming pdm is running on, for example, 172.16.254.1:8443.

I would say this is a missing an "at" before the address.

> -sudo ./target/debug/proxmox-datacenter-privileged-api
> -sudo -u www-data ./target/debug/proxmox-datacenter-api 
> +To test on http://localhost:8080, use:
>  
> -2.) either: start local trunk server
> +    trunk serve --proxy-backend=https://172.16.254.1:8443/api2/ --proxy-insecure
>  
> - trunk serve --proxy-backend=https://localhost:8443/api2/ --proxy-insecure
> +To test elsewhere, say https://dev:8080/, generate a cert to obtain `api.key` and `api.pem`, and use:
>  
> - then test with url: http://localhost:8080
> -
> -2.) or: copy files into pdm js folder:
> -
> -    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

This is an improvement compared to the current state.

As a side note, I would like to see an introduction with a high-level
description of the process, something along the lines of "For testing
changes in the web UI, we recommend to run a Datacenter Manager daemon,
which can be done on a virtual machine or an existing instance, build
the web UI with your changes and proxy the API calls to the previously
mentioned daemon, this can be done via...".

-- 
Maximiliano




      reply	other threads:[~2026-03-04  8:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-04  7:04 Dominik Rusovac
2026-03-04  8:32 ` Maximiliano Sandoval [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=s8otsuwj8pr.fsf@toolbox \
    --to=m.sandoval@proxmox.com \
    --cc=d.rusovac@proxmox.com \
    --cc=pdm-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal