Skip to content

Commit 5b51395

Browse files
aarajhlmarini
andauthored
Fix Traefik issue with path prefix (#70)
* Add prefix path to healthcheck url * Updated contributors.md * Updated changelog Co-authored-by: Luigi Marini <[email protected]>
1 parent c23c8b8 commit 5b51395

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1010
- added healtz endpoint that is cheap and quick to return, useful for kubernetes live/ready checks.
1111

1212
### Fixed
13+
- Fixed health check script when using custom path prefix
1314
- proxy will no correctly handle paths that end with a / at the end.
1415
- submitting an extraction will always return a 500 error, see [#84](https://github.com/clowder-framework/clowder/issues/84)
1516

CONTRIBUTORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
Following is a list of contributors in alphabetical order:
22

3+
- Aaraj Habib
34
- Ashwini Vaidya
45
- Avinash Kumar
56
- Ben Galewsky

docker/healthcheck.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
#!/bin/bash
22

3-
curl -s --fail http://localhost:9000/api/status || exit 1
3+
### Add trailing backslash if not in context
4+
[[ "${CLOWDER_CONTEXT}" != */ ]] && CLOWDER_CONTEXT="${CLOWDER_CONTEXT}/"
5+
6+
curl -s --fail http://localhost:8000${CLOWDER_CONTEXT:-/}api/status || exit 1

0 commit comments

Comments
 (0)