Skip to content

Commit

Permalink
fix(healthcheck): use address configured if not empty (#2938)
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed Jan 30, 2024
1 parent 70c8261 commit 81cd8fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion healthcheck.sh
@@ -1,3 +1,5 @@
#!/bin/sh
PORT=${FB_PORT:-$(jq .port /.filebrowser.json)}
curl -f http://localhost:$PORT/health || exit 1
ADDRESS=${FB_ADDRESS:-$(jq .address /.filebrowser.json)}
ADDRESS=${ADDRESS:-localhost}
curl -f http://$ADDRESS:$PORT/health || exit 1

0 comments on commit 81cd8fc

Please sign in to comment.