mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
solid hardened config
This commit is contained in:
0
install/alpine-docker/app/services/nginx/netalertx.conf → install/alpine-docker/services/config/nginx/netalertx.conf
Executable file → Normal file
0
install/alpine-docker/app/services/nginx/netalertx.conf → install/alpine-docker/services/config/nginx/netalertx.conf
Executable file → Normal 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
0
install/alpine-docker/services/healthcheck.sh
Normal file → Executable file
2
install/alpine-docker/services/start-backend.sh
Normal file → Executable file
2
install/alpine-docker/services/start-backend.sh
Normal file → Executable 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
0
install/alpine-docker/services/start-crond.sh
Normal file → Executable file
0
install/alpine-docker/services/start-nginx.sh
Normal file → Executable file
0
install/alpine-docker/services/start-nginx.sh
Normal file → Executable file
0
install/alpine-docker/services/start-php-fpm.sh
Normal file → Executable file
0
install/alpine-docker/services/start-php-fpm.sh
Normal file → Executable file
Reference in New Issue
Block a user