mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 01:26:11 -08:00
Devcontainer overlay
This commit is contained in:
@@ -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;"
|
||||
Reference in New Issue
Block a user