1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-31 15:24:31 +03:00

Added ability to adjust stored IP address precision

Included tests to cover.

For #3560
This commit is contained in:
Dan Brown
2022-07-23 13:41:29 +01:00
parent 67d12cc1df
commit 4e8995c3d0
7 changed files with 150 additions and 3 deletions

View File

@ -357,3 +357,11 @@ API_REQUESTS_PER_MIN=180
# user identifier (Username or email).
LOG_FAILED_LOGIN_MESSAGE=false
LOG_FAILED_LOGIN_CHANNEL=errorlog_plain_webserver
# Alter the precision of IP addresses stored by BookStack.
# Should be a number between 0 and 4, where 4 retains the full IP address
# and 0 completely hides the IP address. As an examples, a value of 2 for the
# IP address '146.191.42.4' would result in '146.191.x.x' being logged.
# For the IP address '2001:db8:85a3:8d3:1319:8a2e:370:7348' this would result as:
# '2001:db8:85a3:8d3:x:x:x:x'
IP_ADDRESS_PRECISION=4