make path to audit log configurable (#19173)

This commit is contained in:
Mikael Schirén 2025-11-13 22:48:00 +01:00 committed by GitHub
parent 2bec5c5a5c
commit 7e05cf4e21
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -721,7 +721,9 @@ if OFFLINE_MODE:
# AUDIT LOGGING
####################################
# Where to store log file
AUDIT_LOGS_FILE_PATH = f"{DATA_DIR}/audit.log"
# Defaults to the DATA_DIR/audit.log. To set AUDIT_LOGS_FILE_PATH you need to
# provide the whole path, like: /app/audit.log
AUDIT_LOGS_FILE_PATH = os.getenv("AUDIT_LOGS_FILE_PATH", f"{DATA_DIR}/audit.log")
# Maximum size of a file before rotating into a new log file
AUDIT_LOG_FILE_ROTATION_SIZE = os.getenv("AUDIT_LOG_FILE_ROTATION_SIZE", "10MB")