cut down on nginx logging

This commit is contained in:
wh1te909 2020-11-21 02:47:23 +00:00
parent 8a10036f32
commit fbec78ede5
1 changed files with 11 additions and 4 deletions

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
SCRIPT_VERSION="18" SCRIPT_VERSION="19"
SCRIPT_URL='https://raw.githubusercontent.com/wh1te909/tacticalrmm/develop/install.sh' SCRIPT_URL='https://raw.githubusercontent.com/wh1te909/tacticalrmm/develop/install.sh'
GREEN='\033[0;32m' GREEN='\033[0;32m'
@ -14,8 +14,9 @@ curl -s -L "${SCRIPT_URL}" > ${TMP_FILE}
NEW_VER=$(grep "^SCRIPT_VERSION" "$TMP_FILE" | awk -F'[="]' '{print $3}') NEW_VER=$(grep "^SCRIPT_VERSION" "$TMP_FILE" | awk -F'[="]' '{print $3}')
if [ "${SCRIPT_VERSION}" -ne "${NEW_VER}" ]; then if [ "${SCRIPT_VERSION}" -ne "${NEW_VER}" ]; then
printf >&2 "${YELLOW}A newer version of this installer script is available.${NC}\n" printf >&2 "${YELLOW}Old install script detected, downloading and replacing with the latest version...${NC}\n"
printf >&2 "${YELLOW}Please download the latest version from ${GREEN}${SCRIPT_URL}${YELLOW} and re-run.${NC}\n" wget -q "${SCRIPT_URL}" -O install.sh
printf >&2 "${YELLOW}Script updated! Please re-run ./install.sh${NC}\n"
rm -f $TMP_FILE rm -f $TMP_FILE
exit 1 exit 1
fi fi
@ -373,7 +374,7 @@ read -n 1 -s -r -p "Press any key to continue..."
uwsgini="$(cat << EOF uwsgini="$(cat << EOF
[uwsgi] [uwsgi]
logto = /rmm/api/tacticalrmm/tacticalrmm/private/log/uwsgi.log # logto = /rmm/api/tacticalrmm/tacticalrmm/private/log/uwsgi.log
chdir = /rmm/api/tacticalrmm chdir = /rmm/api/tacticalrmm
module = tacticalrmm.wsgi module = tacticalrmm.wsgi
home = /rmm/api/env home = /rmm/api/env
@ -422,6 +423,12 @@ upstream tacticalrmm {
server unix:////rmm/api/tacticalrmm/tacticalrmm.sock; server unix:////rmm/api/tacticalrmm/tacticalrmm.sock;
} }
map $http_user_agent $ignore_ua {
"~python-requests.*" 0;
"~go-resty.*" 0;
default 1;
}
server { server {
listen 80; listen 80;
server_name ${rmmdomain}; server_name ${rmmdomain};