mirror of
https://github.com/rommapp/romm.git
synced 2026-06-28 06:46:00 +00:00
fix: respect LOGLEVEL env var for all log output sources
Agent-Logs-Url: https://github.com/rommapp/romm/sessions/0b5ef21c-89e1-4f08-b402-03f3276aab08 Co-authored-by: gantoine <3247106+gantoine@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
cc2dffc6cc
commit
d6036cb5ef
@@ -39,6 +39,16 @@ done
|
||||
export ROMM_BASE_PATH=${ROMM_BASE_PATH:-/romm}
|
||||
export ROMM_PORT=${ROMM_PORT:-8080}
|
||||
|
||||
# Disable nginx access logs when log level is WARNING, ERROR, or CRITICAL
|
||||
case "${LOGLEVEL:-INFO}" in
|
||||
WARNING|ERROR|CRITICAL|warning|error|critical)
|
||||
export NGINX_ACCESS_LOG="access_log off;"
|
||||
;;
|
||||
*)
|
||||
export NGINX_ACCESS_LOG=""
|
||||
;;
|
||||
esac
|
||||
|
||||
# Set IPV6_LISTEN based on IPV4_ONLY
|
||||
if [[ ${IPV4_ONLY} == "true" ]]; then
|
||||
export IPV6_LISTEN="#listen [::]:${ROMM_PORT};"
|
||||
|
||||
Reference in New Issue
Block a user