Commit Graph

6 Commits (c89dfce61a0495d2218e20a6725563b17497a524)

Author SHA1 Message Date
James Elliott c789955a88
fix: healthcheck always exit 0 (#2250) 2021-08-05 21:44:49 +10:00
James Elliott c5c6bda8b0
refactor: configuration agnostic healthcheck (#2231)
This makes the healthcheck simple and configured directly by Authelia's configuration on startup.
2021-08-05 14:02:07 +10:00
Amir Zarrinkafsh ac92643212
test(handlers): add health check to coverage build (#1684)
* test(handlers): add health check to coverage build

This change ensures that the integration test container also utilises the health check script to ensure coverage for this area of code.

* update health check script for coverage container

* remove start period and ignore cert check
2021-02-03 10:17:46 +11:00
Amir Zarrinkafsh f1ecc5b82a
[FEATURE] Create dedicated health endpoint (#1489)
This change points the Docker containers healthcheck to the dedicated `/api/health` endpoint and also includes support for Authelia running with a path prefix.
2020-11-25 10:20:52 +11:00
Amir Zarrinkafsh 1ed59957a3
[BUGFIX] Fix Docker healthcheck script (#1485)
* [MISC] Update Docker healthcheck script

This change now determines the host for Docker healthcheck from the `configuration.yml` that Authelia is started with.

The script has also been run through shellcheck and terminated with a newline in hopes to resolve a number of unreproducible issues.

* Fix healthcheck failing because of CRLF in configuration.yml (#1483)

The configuration.yml might contain CRLF characters. If that's the case, they are included in the results of sed, which breaks the healthcheck, so remove any CR characters in the host/port variables.

Co-authored-by: Berisan <berisan@berisan.dev>
2020-11-24 13:04:06 +11:00
Amir Zarrinkafsh 423cd09f26
[BUGFIX] Dynamically determine healthcheck URL (#1444) 2020-11-11 15:22:09 +11:00