Fix: remove non-working pathPrefix option for docker connections

This commit is contained in:
shamoon 2025-05-22 09:45:18 -07:00
parent 6cf3abd45e
commit ee07a7dcbe
No known key found for this signature in database
2 changed files with 2 additions and 7 deletions

View File

@ -79,16 +79,15 @@ my-docker:
Note: This does not require TLS certificates if the proxy handles encryption. Do not use `protocol: https` unless youre sure the target host supports HTTPS.
You can further customize the connection options via `pathPrefix` and `headers`:
You can also include `headers` for the connection, for example, if you are using a reverse proxy that requires authentication:
```yaml
my-docker:
host: dockerproxy
port: 443
protocol: https
pathPrefix: /docker_api/ # If a reverse proxy serves the API on a subpath
headers:
Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ== # Send an authorization header if the API access is secured via basic auth
Authorization: Basic <base64-encoded-credentials>
```
## Using Socket Directly

View File

@ -47,10 +47,6 @@ export default function getDockerArguments(server) {
res.conn.protocol = servers[server].protocol;
}
if (servers[server].pathPrefix) {
res.conn.pathPrefix = servers[server].pathPrefix;
}
if (servers[server].headers) {
res.conn.headers = servers[server].headers;
}