mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
fix(healthcheck): use address configured if not empty (#2938)
This commit is contained in:
parent
70c826133b
commit
81cd8fc6d3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user