From: Dominik Rusovac <d.rusovac@proxmox.com>
To: pdm-devel@lists.proxmox.com
Subject: [PATCH datacenter-manager] ui: adjust testing description
Date: Wed, 4 Mar 2026 08:04:22 +0100 [thread overview]
Message-ID: <20260304070422.17185-1-d.rusovac@proxmox.com> (raw)
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.
-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
--
2.47.3
next reply other threads:[~2026-03-04 7:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-04 7:04 Dominik Rusovac [this message]
2026-03-04 8:32 ` Maximiliano Sandoval
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=20260304070422.17185-1-d.rusovac@proxmox.com \
--to=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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox