From 5dabc733134611bd75a2dda0eb4421492fa71c80 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Fri, 13 Oct 2023 18:01:53 +0000 Subject: [PATCH] update readme and db template --- README.md | 17 +++++++++++------ config/template.localdb.json | 2 +- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index bbfb63b..ba5a569 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ In Proxmox VE, follow the following steps: - listenPort - the port you want the API to listen on, ie `8080` - pveAPIToken - the user(name), authentication realm, token id, and token secrey key (uuid) 4. (Optional) In order to allow users to customize instance pcie devices, the API must use the root credentials for privilege elevation. Modify the following values under `pveroot` in order to use this feature: - - username: root user, typically `root@pam` + - username: root user name, typically `root@pam` - password: root user password 5. You may also wish to configure users at this point as well. An example user config is shown in the template. 6. Start the service using `node .`, or call the provided shell script, or use the provided systemctl service script @@ -40,16 +40,21 @@ In Proxmox VE, follow the following steps: ``` server { listen 443 ssl; - server_name dashboard.; + server_name paas.; location / { - proxy_pass http://:80; + return 301 "/dashboard/"; + } + location /dashboard/ { + proxy_pass http://proxmoxaas.dmz:8080/; + proxy_redirect default; } location /api/ { - proxy_pass http://:8080; + proxy_pass http://proxmoxaas.dmz:80/api/; + proxy_redirect default; } } ``` -2. Start nginx with the new configurations by running `systemctl reload nginx` +2. Start nginx with the new configurations ## Result -After these steps, the ProxmoxAAS Dashboard should be available and fully functional at `dashboard.`. \ No newline at end of file +After these steps, the ProxmoxAAS Dashboard should be available and fully functional at `paas.` or `paas./dashboard/`. \ No newline at end of file diff --git a/config/template.localdb.json b/config/template.localdb.json index 7a85892..00b2452 100644 --- a/config/template.localdb.json +++ b/config/template.localdb.json @@ -13,7 +13,7 @@ "password": "rootpassword" }, "listenPort": 80, - "hostname": "dashboard.mydomain.example", + "hostname": "paas.mydomain.example", "domain": "mydomain.example" }, "resources": {