solid hardened config

This commit is contained in:
Adam Outler
2025-09-27 19:15:07 -04:00
parent c5d7480e6c
commit 46097bb6e8
10 changed files with 50 additions and 98 deletions

View File

@@ -1,5 +1,3 @@
#user nobody;
user netalertx;
# Set number of worker processes automatically based on number of CPU cores.
worker_processes auto;
@@ -95,5 +93,5 @@ http {
# Includes virtual hosts configs.
include /app/services/nginx/netalertx.conf;
include /services/config/nginx/netalertx.conf;
}

0
install/alpine-docker/services/healthcheck.sh Normal file → Executable file
View File

2
install/alpine-docker/services/start-backend.sh Normal file → Executable file
View File

@@ -2,6 +2,6 @@
echo "Starting backend..."
cd "${NETALERTX_APP}" || exit
# Change user to netalertx
export PYTHONPATH="${NETALERTX_SERVER}"
export PYTHONPATH="${NETALERTX_SERVER}:${NETALERTX_APP}"
# Start the backend, teeing stdout and stderr to log files and the container's console
python3 -m server > >(tee /app/log/stdout.log) 2> >(tee /app/log/stderr.log >&2)

0
install/alpine-docker/services/start-crond.sh Normal file → Executable file
View File

0
install/alpine-docker/services/start-nginx.sh Normal file → Executable file
View File

0
install/alpine-docker/services/start-php-fpm.sh Normal file → Executable file
View File