Devcontainer overlay

This commit is contained in:
Adam Outler
2025-09-30 01:55:26 +00:00
parent dc4848acd0
commit 044035ef62
19 changed files with 577 additions and 53 deletions

View File

@@ -1,5 +1,14 @@
#!/bin/bash
echo "Starting nginx..."
LOG_DIR=${NETALERTX_APP}
RUN_DIR=${SYSTEM_SERVICES_RUN}
TMP_DIR=${SYSTEM_SERVICES_RUN_TMP}
NGINX_CONFIG_FILE=${NGINX_CONFIG_FILE}
# Create directories if they don't exist
mkdir -p "${LOG_DIR}" "${RUN_DIR}" "${TMP_DIR}"
# Execute nginx with overrides
exec nginx \
-p "${RUN_DIR}/" \
-c "${NGINX_CONFIG_FILE}" \
-g "daemon off;" >> "${LOG_APP_FRONT}" 2>&1
-g "error_log ${LOG_DIR}/nginx.error.log; pid ${RUN_DIR}/nginx.pid; daemon off;"