1
0
angie-conv-image/image-entry.d/01-defaults.envsh
2024-07-11 13:37:35 +03:00

40 lines
1.0 KiB
Bash
Executable File

#!/bin/sh
## NB: NGX_DEBUG is set via image build script
set -a
NGX_HTTP=$(gobool_to_int "${NGX_HTTP:-1}" 1)
NGX_MAIL=$(gobool_to_int "${NGX_MAIL:-0}" 0)
NGX_STREAM=$(gobool_to_int "${NGX_STREAM:-0}" 0)
NGX_STRICT_LOAD=$(gobool_to_int "${NGX_STRICT_LOAD:-1}" 1)
NGX_CORE_MODULES="${NGX_CORE_MODULES:-}"
NGX_CORE_EVENTS_SNIPPETS="${NGX_CORE_EVENTS_SNIPPETS:-}"
NGX_CORE_SNIPPETS="${NGX_CORE_SNIPPETS:-}"
NGX_CORE_ENV="${NGX_CORE_ENV:-}"
NGX_PROCESS_STATIC=$(gobool_to_int "${NGX_PROCESS_STATIC:-0}" 0)
NGX_ENVSUBST_SUFFIX="${NGX_ENVSUBST_SUFFIX:-.in}"
case "${NGX_ENVSUBST_SUFFIX}" in
.* ) ;;
* ) NGX_ENVSUBST_SUFFIX=".${NGX_ENVSUBST_SUFFIX}" ;;
esac
NGX_JINJA_SUFFIX="${NGX_JINJA_SUFFIX:-.j2}"
case "${NGX_JINJA_SUFFIX}" in
.* ) ;;
* ) NGX_JINJA_SUFFIX=".${NGX_JINJA_SUFFIX}" ;;
esac
set +a
if [ "${NGX_HTTP}${NGX_MAIL}${NGX_STREAM}" = '000' ] ; then
log_always '======================================'
log_always 'WARNING!'
log_always 'Angie is almost completely TURNED OFF'
log_always '======================================'
fi