Skip to content

Commit

Permalink
Fix: Support Gluetun widget auth (#4034)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarow authored Sep 24, 2024
1 parent 5fc3bde commit 6da46dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions docs/widgets/services/gluetun.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ Learn more about [Gluetun](https://github.com/qdm12/gluetun).

Allowed fields: `["public_ip", "region", "country"]`.

To setup authentication, follow [the official Gluetun documentation](https://github.com/qdm12/gluetun-wiki/blob/main/setup/advanced/control-server.md#authentication).

```yaml
widget:
type: gluetun
url: http://gluetun.host.or.ip:port
key: gluetunkey # Not required if /v1/publicip/ip endpoint is configured with `auth = none`
```
4 changes: 2 additions & 2 deletions src/widgets/gluetun/widget.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import genericProxyHandler from "utils/proxy/handlers/generic";
import credentialedProxyHandler from "utils/proxy/handlers/credentialed";

const widget = {
api: "{url}/v1/{endpoint}",
proxyHandler: genericProxyHandler,
proxyHandler: credentialedProxyHandler,

mappings: {
ip: {
Expand Down

0 comments on commit 6da46dd

Please sign in to comment.