nix-config/modules/pocket-id.nix
Renovate Bot 3540050284 Update ghcr.io/pocket-id/pocket-id Docker tag to v2.11.0 (#21)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [ghcr.io/pocket-id/pocket-id](https://github.com/pocket-id/pocket-id) | minor | `v2.10.0` → `v2.11.0` |

---

> ⚠️ **Warning**
>
> Some dependencies could not be looked up. Check the [Dependency Dashboard](issues/12) for more information.

---

### Release Notes

<details>
<summary>pocket-id/pocket-id (ghcr.io/pocket-id/pocket-id)</summary>

### [`v2.11.0`](https://github.com/pocket-id/pocket-id/blob/HEAD/CHANGELOG.md#v2110)

[Compare Source](https://github.com/pocket-id/pocket-id/compare/v2.10.0...v2.11.0)

##### Bug Fixes

- postgres migration [`2025082`](20250822) remove public schema references ([#&#8203;1582](https://github.com/pocket-id/pocket-id/pull/1582) by [@&#8203;MarcoScabbiolo](https://github.com/MarcoScabbiolo))
- allow insecure callback URLs by default until next major release ([d9ead47](d9ead47d19) by [@&#8203;stonith404](https://github.com/stonith404))
- sort signup tokens by creation date explicitly ([77398a5](77398a558d) by [@&#8203;stonith404](https://github.com/stonith404))
- login code mobile ux ([#&#8203;1584](https://github.com/pocket-id/pocket-id/pull/1584) by [@&#8203;James18232](https://github.com/James18232))
- `INTERNAL_APP_URL` not reflected in UI URLs ([316cf47](316cf47ceb) by [@&#8203;stonith404](https://github.com/stonith404))
- ignore tab URL hashes in navigation history ([a3f27ec](a3f27ec2ec) by [@&#8203;stonith404](https://github.com/stonith404))
- block link-local addresses in SSRF protection ([9714296](9714296efb) by [@&#8203;stonith404](https://github.com/stonith404))

##### Documentation

- update README ([ff5e565](ff5e565eeb) by [@&#8203;stonith404](https://github.com/stonith404))

##### Features

- add support for CIDR and IP address lists in `TRUST_PROXY` ([187cd8d](187cd8ddcd) by [@&#8203;stonith404](https://github.com/stonith404))

##### Other

- manage instance ID in the KV table ([#&#8203;1579](https://github.com/pocket-id/pocket-id/pull/1579) by [@&#8203;ItalyPaleAle](https://github.com/ItalyPaleAle))
- Bump the "all-dependencies" group with 3 updates across multiple ecosystems ([#&#8203;1578](https://github.com/pocket-id/pocket-id/pull/1578) by [@&#8203;dependabot](https://github.com/dependabot)\[bot])
- remove low demand issue closer ([bb03660](bb03660bd7) by [@&#8203;stonith404](https://github.com/stonith404))

**Full Changelog**: <https://github.com/pocket-id/pocket-id/compare/v2.10.0...v2.11.0>

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xNTAuMSIsInVwZGF0ZWRJblZlciI6IjQzLjE1MC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Reviewed-on: #21
Co-authored-by: Renovate Bot <renovate@jfreudenberger.de>
Co-committed-by: Renovate Bot <renovate@jfreudenberger.de>
2026-07-13 13:13:51 +02:00

58 lines
1.7 KiB
Nix

{
config,
lib,
...
}:
let
cfg = config.services.pocket-id-docker;
pocketidCfg = config.services.pocket-id;
in {
options.services.pocket-id-docker = {
enable = lib.mkEnableOption "Pocket ID server hosted as OCI container";
};
config = lib.mkIf cfg.enable {
virtualisation.oci-containers.containers = {
pocket-id = {
image = "ghcr.io/pocket-id/pocket-id:v2.11.0@sha256:b7c37ab3044e53fd29b5f7295eebff5fdc0367dc043f36b41bcbe1815fcd965d";
autoStart = true;
networks = [
"traefik"
];
environment = {
APP_URL = pocketidCfg.settings.APP_URL;
TRUST_PROXY = lib.boolToString pocketidCfg.settings.TRUST_PROXY;
ANALYTICS_DISABLED = lib.boolToString pocketidCfg.settings.ANALYTICS_DISABLED;
GEOLITE_DB_URL = "https://pkgs.netbird.io/geolocation-dbs/GeoLite2-City/download?suffix=tar.gz";
};
environmentFiles = [ pocketidCfg.environmentFile ];
extraOptions = [
''--mount=type=volume,source=data,target=/app/data,volume-driver=local''
"--health-cmd=/app/pocket-id healthcheck"
"--health-interval=1m30s"
"--health-timeout=5s"
"--health-retries=2"
"--health-start-period=10s"
];
labels = {
"traefik.enable" = "true";
"traefik.http.routers.pocket-id.rule" = "Host(`${lib.removePrefix "https://" pocketidCfg.settings.APP_URL}`)";
"traefik.http.routers.pocket-id.entrypoints" = "websecure";
};
};
};
systemd.services."docker-pocket-id" = {
after = [
"docker-traefik.service"
];
requires = [
"docker-traefik.service"
];
};
};
}