Coderabit

This commit is contained in:
Adam Outler
2025-10-03 00:08:26 +00:00
parent 33aa8492bb
commit c81a054d89
13 changed files with 51 additions and 28 deletions

View File

@@ -37,7 +37,12 @@
"jeff-hykin.better-dockerfile-syntax",
"GitHub.codespaces",
"ms-azuretools.vscode-containers",
"ms-python.vscode-python-envs"
"ms-python.vscode-python-envs",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"eamodio.gitlens",
"alexcvzz.vscode-sqlite",
"yzhang.markdown-all-in-one"
]
,
"settings": {

View File

@@ -10,7 +10,6 @@ server {
index index.php;
add_header X-Forwarded-Prefix "/netalertx" always;
proxy_set_header X-Forwarded-Prefix "/netalertx";
location ~* \.php$ {
add_header Cache-Control "no-store";

View File

@@ -1 +1 @@
-m debugpy --listen 0.0.0.0:5678
-m debugpy --listen 0.0.0.0:5678

View File

@@ -79,10 +79,9 @@ configure_source() {
sudo mount -o uid=$(id -u netalertx),gid=$(id -g netalertx),mode=775 -t tmpfs -o size=256M tmpfs "${NETALERTX_API}"
mkdir -p ${NETALERTX_PLUGINS_LOG}
touch ${NETALERTX_PLUGINS_LOG}/.git-placeholder ${NETALERTX_API}/.git-placeholder
# mount tmpfs with root:root ownership and 755 permissions
# tmpfs mounts configured with netalertx ownership and 775 permissions above
touch /app/log/nginx_error.log
echo " -> Empty log"|tee ${INSTALL_DIR}/log/app.log \
${INSTALL_DIR}/log/app_front.log \
${INSTALL_DIR}/log/stdout.log

View File

@@ -1,4 +1,5 @@
#!/bin/bash
#create /services/nginx directory for nginx system files
nginx -c "/services/nginx/nginx.conf" -g "daemon off;" 2>&1 >/app/log/app_front.log
#Logging handled in nginx.conf
nginx -c "/services/nginx/nginx.conf" -g "daemon off;" 2>&1 >/dev/null