Healthchecks
Enable OIDC for Healthchecks monitoring
Requirements
- Healthchecks.io container self hosted on Docker
- oauth2-proxy reverse proxy container for authentication
- Reverse proxy with SSL termination at the edge (HTTPS)
Pocket ID Setup
- Create a new OIDC client (example:
healthchecks) - Enable the PKCE checkmark for maximum security
- Copy the Client ID and Client Secret for use below
- The Callback URL will be automatically populated at first login (Pocket v.1.2.0+)
Configure oauth2-proxy
In the same docker-compose.yml you use for Healthchecks:
Add a new oauth2-proxy container under the
services:section with the following config:Add the following to the Healthchecks
environment:section:Comment out the
ports:section on Healthchecks, so that oauth2-proxy picks up the authentication request instead of Healthchecks directly.Create a file beside
docker-compose.ymlcalledoauth2-proxy.cfgwith the following config. Make sure to update with your own Client ID, Client Secret, and Pocket ID URL:Update your public facing edge reverse proxy config (Caddy, Nginx, etc.) to forward
https://hc.domain.comto port1234(the external port for the oauth2-proxy)Restart the entire stack with
You can now login to Healthchecks with Pocket ID.