@cloud-cli/px 4.2.0 → 4.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -139,6 +139,7 @@ export class ProxyManager {
139
139
  continue;
140
140
  px.add(new ProxyEntry({
141
141
  domain: t.labels.host,
142
+ path: t.labels.path || '',
142
143
  target: `http://localhost:${t.ports[0].host}`,
143
144
  redirectToHttps: true,
144
145
  cors: true,
@@ -149,8 +150,7 @@ export class ProxyManager {
149
150
  async getRunningContainers() {
150
151
  const ps = await exec("docker", ["ps", "-aq"]);
151
152
  const ids = ps.stdout.trim().split("\n");
152
- const format = '--format="{{.Id}},{{.Name}},{{.State.Status}},{{.Image}}"';
153
- const state = await exec("docker", ["inspect", format, ...ids]);
153
+ const state = await exec("docker", ["inspect", ...ids]);
154
154
  const json = JSON.parse(state.stdout);
155
155
  return json.map(readDockerContainer);
156
156
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloud-cli/px",
3
- "version": "4.2.0",
3
+ "version": "4.2.2",
4
4
  "description": "Reverse Proxy",
5
5
  "main": "./dist/index.js",
6
6
  "type": "module",