2019-08-27 11:23:55 +02:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
|
|
|
|
if [ -z "$ROCKET_TLS"]
|
|
|
|
then
|
2019-09-04 09:12:53 +02:00
|
|
|
curl --fail http://localhost:${ROCKET_PORT:-"80"}/alive || exit 1
|
2019-08-27 11:23:55 +02:00
|
|
|
else
|
2019-09-11 22:01:42 +02:00
|
|
|
curl --insecure --fail https://localhost:${ROCKET_PORT:-"80"}/alive || exit 1
|
2019-08-27 11:23:55 +02:00
|
|
|
fi
|