mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-04-05 12:35:35 -04:00
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
|