mirror of
https://github.com/gethomepage/homepage.git
synced 2025-05-24 02:02:35 -04:00
Fix: remove non-working pathPrefix option for docker connections
This commit is contained in:
parent
6cf3abd45e
commit
ee07a7dcbe
@ -79,16 +79,15 @@ my-docker:
|
||||
|
||||
Note: This does not require TLS certificates if the proxy handles encryption. Do not use `protocol: https` unless you’re 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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user