mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-06-23 04:40:17 +00:00
c91f8e23d7
Co-authored-by: Michael Genson <71845777+michael-genson@users.noreply.github.com>
13 lines
294 B
Bash
Executable File
13 lines
294 B
Bash
Executable File
#!/bin/bash
|
|
|
|
PORT="${API_PORT:-9000}"
|
|
|
|
if [ -n "$TLS_CERTIFICATE_PATH" ] && [ -n "$TLS_PRIVATE_KEY_PATH" ]; then
|
|
PROTO="https"
|
|
else
|
|
PROTO="http"
|
|
fi
|
|
|
|
# -k: TLS certificate is likely not issued for 127.0.0.1, so don't verify
|
|
curl -fsk "${PROTO}://127.0.0.1:${PORT}/api/app/about" > /dev/null
|