diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 61feaefe..28c6f379 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,7 +23,7 @@ repos: # Run the formatter. - id: ruff-format - repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook - rev: v9.22.0 + rev: v9.24.0 hooks: - id: commitlint stages: [ commit-msg, manual ] diff --git a/palvelutarjotin/settings.py b/palvelutarjotin/settings.py index 29c98682..8ca46cb6 100644 --- a/palvelutarjotin/settings.py +++ b/palvelutarjotin/settings.py @@ -447,6 +447,8 @@ def sentry_traces_sampler(sampling_context: SamplingContext) -> float: AXES_FAILURE_LIMIT = 5 AXES_COOLOFF_TIME = 1 # hour after locked out, user will be able to attempt login +AXES_IPWARE_META_PRECEDENCE_ORDER = ["HTTP_X_FORWARDED_FOR", "REMOTE_ADDR"] +AXES_IPWARE_PROXY_COUNT = 1 LOGGING = { "version": 1,